Changing timingOffset parameter per event

[email protected] Mon, 3 May 2021 14:14:07 +0100
Newsgroups gmane.comp.audio.supercollider.user
Message-ID <CAP6e+ZzJO5fhrBMZecTyka4vRsFymnSWWbov-XkJWrtMWPChsg@mail.gmail.com>
Hello,

I am trying to change the \timingOffset parameter between steps in a Pbind
- I am delaying the onset of one synth in relation to another, and I would
like for this offset time to change between events.

I can't delay the event using DelayC.ar or similar for memory reasons - I'm
on a Pi and it doesn't like it at all, especially when I play the events
fast.

This works:

 Pdef(\perc, Pbind(
\instrument, \perc,
\out, [0, 1],
\dur, Pseq([Pwhite(4, 40, ~randTimes), Rest(~randTimes), Pgeom(6.0, 0.99,
inf).clip(0.1, 6.0)]),
\timingOffset, [0, ~timingOffset],
)).play

But I have to stop the sequence, update the ~timingOffset variable, and
restart.

I've tried doing things like:

\timingOffset, [0, Pwhite(4, 10)]

But no luck there. I've also tried using Pkey, and doing something like
this:
\double, Pfunc({~timingOffset = rrand(1, 10)}),
\timingOffset, [0, ~timingOffset],

But that also doesn't seem to work.

Any suggestions?

Best,

Jeremy



-- 
www.jeremykeenan.info
www.callandresponse.org.uk