Hi,
I’m trying something like this but the tempo is not doing what I wanted.
(
p = ProxySpace(
server: s.boot,
clock: t = TempoClock(90/60).permanent_(true)
).push;
)
(
SynthDef(\a, {arg freq = 200;
var sig = SinOsc.ar(freq);
sig = sig * EnvGen.kr(Env.perc(0.001, 0.10), doneAction: 2);
Out.ar(\out.ir(0), sig !2/5);
}).add;
)
(
~pat = Pbind(
\instrument, \a,
\dur, Prand([0.25, 0.125], inf),
\freq, Pseq([50, 75, 100, 125], inf)
)
)
~pat.fadeTime_(1.5)
~pat.play
Can you describe what is different from your desire? For me this is behaving as expected:
(
p = ProxySpace(
server: s.boot,
clock: t = TempoClock(90/60).permanent_(true)
).push;
)
(
SynthDef(\a, {arg freq = 200;
var sig = SinOsc.ar(freq);
sig = sig * EnvGen.kr(Env.perc(0.001, 0.10), doneAction: 2);
Out.ar(\out.ir(0), sig !2/5);
}).add;
)
(
// metronome
~pat = Pbind(
\instrument, \a,
\dur, 1,
\freq, Pseq([50, 75, 100, 125], inf)
)
)
~pat.fadeTime_(1.5)
~pat.play
// change tempo
t.tempo = 1
t.tempo = 5
Thanks,I didn’t know how to change the tempo. I had just assumed that it would respond at 90 bpm. For whatever reason it defaults much faster than just a regular pbind at the usual default timing which I assume is 120/60
I’m trying to incorporate patterns into a more live coding path.
thisProcess.recompile; // start from scratch
TempoClock.tempo;
-> 1.0
The default tempo is one beat per second, or 60 BPM.
hjh
Thanks.
Recompile is great for my unexpected issues.