Skip to content

Commit

Permalink
Set DirtFreqScale default factor to 1 (#280)
Browse files Browse the repository at this point in the history
accelerate is on by default now.
  • Loading branch information
wimmers authored Oct 15, 2023
1 parent 3b1f872 commit c7f3299
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/SuperDirtUGens.sc
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ DirtFreqScale : UGen {
*kr { |speed = 1, accelerate = 0, sustain = 1, speedFreq|
var speedTerm;
speed = speed.abs;
speedFreq = speedFreq ?? { \speedFreq.ir(0) };
speedFreq = speedFreq ?? { \speedFreq.ir(1) };
speedTerm = Line.kr(speed, speed * (accelerate + 1), sustain);
// linear interpolation between a factor of 1 (speedFreq = 0) and of speedTerm (speedFreq = 1)
^speedFreq * (speedTerm - 1) + 1
Expand Down

0 comments on commit c7f3299

Please sign in to comment.