Skip to content

Commit

Permalink
Ugens: LinLin/LinExp fixes
Browse files Browse the repository at this point in the history
LinLin and LinExp ugens expects that the rate of the first input matches
the computation rate

Signed-off-by: Tim Blechmann <tim@klingt.org>

git-svn-id: https://supercollider.svn.sourceforge.net/svnroot/supercollider/branches/3.4@10414 a380766d-ff14-0410-b294-a243070f3f08
  • Loading branch information
Tim Blechmann committed Oct 19, 2010
1 parent c9d8b68 commit 9ec2cac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions common/build/SCClassLibrary/Common/Audio/Line.sc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ XLine : UGen {
}

LinExp : UGen {
checkInputs { ^this.checkSameRateAsFirstInput }
*ar { arg in=0.0, srclo = 0.0, srchi = 1.0, dstlo = 1.0, dsthi = 2.0;
^this.multiNew('audio', in, srclo, srchi, dstlo, dsthi)
}
Expand All @@ -26,6 +27,7 @@ LinExp : UGen {
}

LinLin : UGen {
checkInputs { ^this.checkSameRateAsFirstInput }
*ar { arg in=0.0, srclo = 0.0, srchi = 1.0, dstlo = 1.0, dsthi = 2.0;
^this.multiNew('audio', in, srclo, srchi, dstlo, dsthi)
}
Expand Down

0 comments on commit 9ec2cac

Please sign in to comment.