[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sc-users] OSC Pattern Scheduling
Any way to loop the block of OSC commands?. Maybe a sched to run the
block every n'th beat?
SynthDef("tutorial-sine", { arg out=0, amp=1.0, freq=140, i_dur=0.3;
var env, sine;
env = Line.kr(1, 0, i_dur, doneAction: 2, mul: amp);
sine = SinOsc.ar(freq, mul: env);
Out.ar(0, [sine, sine]);
}).send(s);
c = OSCSched.new;
Tempo.bpm = 90;
(
c.sched(0.0,s,i,{Synth("tutorial-sine",[\gate,1]); });
c.sched(3.0,s,i,{Synth("tutorial-sine",[\gate,1]); });
c.sched(4.0,s,i,{Synth("tutorial-sine",[\gate,1]); });
)
--
Esben Stien is b0ef@e s a
http://www. s t n m
irc://irc. b - i . e/%23contact
[sip|iax]: e e
jid:b0ef@ n n