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
This commit is contained in:
Gustavo Goretkin 2014-11-12 17:24:07 -05:00 committed by goretkin
parent 569cdf0d73
commit a55b59d481

View file

@ -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)