From a55b59d4817f1ece6dc27c0fd7b35122c1224182 Mon Sep 17 00:00:00 2001 From: Gustavo Goretkin Date: Wed, 12 Nov 2014 17:24:07 -0500 Subject: [PATCH] fix constant addition due to julia> s = 1.0 + SinOsc() ERROR: `convert` has no method matching convert(::Type{AudioNode{T<:AudioRenderer}}, ::Float64) in OffsetRenderer at /Users/goretkin/.julia/v0.3/AudioIO/src/nodes.jl:178 in + at /Users/goretkin/.julia/v0.3/AudioIO/src/operators.jl:16 --- src/operators.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/operators.jl b/src/operators.jl index 4a1f483..1dbb6e7 100644 --- a/src/operators.jl +++ b/src/operators.jl @@ -13,4 +13,4 @@ +(in1::AudioNode, in2::NullNode) = in1 +(in1::NullNode, in2::AudioNode) = in2 +(in1::AudioNode, in2::Real) = Offset(in1, in2) -+(in1::Real, in2::AudioNode) = Offset(in1, in2) ++(in1::Real, in2::AudioNode) = Offset(in2, in1)