Fixed phase bugs in position control synths
parent
d0be4a3b67
commit
3ddc8cff47
|
@ -2,22 +2,22 @@
|
||||||
|
|
||||||
SynthDef(\pos_sine, {
|
SynthDef(\pos_sine, {
|
||||||
arg out, speed=1;
|
arg out, speed=1;
|
||||||
Out.kr(out, 0.5 + SinOsc.kr(speed * 0.5, 0, 0.5));
|
Out.kr(out, 0.5 + SinOsc.kr(speed * 0.5, -0.5pi, 0.5));
|
||||||
}).add;
|
}).add;
|
||||||
|
|
||||||
SynthDef(\pos_saw, {
|
SynthDef(\pos_saw, {
|
||||||
arg out, speed=1;
|
arg out, speed=1;
|
||||||
Out.kr(out, 0.5 + LFSaw.kr(speed, 0, 0.5, 0));
|
Out.kr(out, 0.5 + LFSaw.kr(speed, 1, 0.5, 0));
|
||||||
}).add;
|
}).add;
|
||||||
|
|
||||||
SynthDef(\pos_reverse, {
|
SynthDef(\pos_reverse, {
|
||||||
arg out, speed=1;
|
arg out, speed=1;
|
||||||
Out.kr(out, 0.5 - LFSaw.kr(speed, 0, 0.5, 0));
|
Out.kr(out, 0.5 - LFSaw.kr(speed, 1, 0.5, 0));
|
||||||
}).add;
|
}).add;
|
||||||
|
|
||||||
SynthDef(\pos_step, {
|
SynthDef(\pos_step, {
|
||||||
arg out, speed=1, steps=8;
|
arg out, speed=1, steps=8;
|
||||||
var stepwise = LFSaw.kr(speed, 0.0, 0.5 * steps, 0.5 * steps).floor;
|
var stepwise = LFSaw.kr(speed, 1, 0.5 * steps, 0.5 * steps).floor;
|
||||||
Out.kr(out, stepwise / steps);
|
Out.kr(out, stepwise / steps);
|
||||||
}).add;
|
}).add;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue