Fixed quantspeed

bugfix-looptober-cleanup
Mike Lynch 2023-09-23 15:05:33 +10:00
parent 932c04717a
commit 3ac1c3cd47
1 changed files with 3 additions and 1 deletions

View File

@ -27,13 +27,15 @@ OSCdef.freeAll;
});
});
~quantspeed = { |v| 2.pow((v * 4).round - 5) };
~quantspeed = { |v| 2.pow((v * 4 + 0.5).round - 5) };
// control ganging is hella laggy, do it in TouchOSC
~setspeed = { | track, v |
var speed, qv = if(~speedquant > 0, { ~quantspeed.value(v) }, { v });
speed = qv / ~buflen;
[ "setspeed", v, qv, speed ].postln;
if(~speedlock > 0, {
(0..3).do({|n|
~possynths[n].set(\speed, speed);