Re: Changing timingOffset parameter per event
[email protected] Mon, 3 May 2021 14:34:31 +0100
| Newsgroups | gmane.comp.audio.supercollider.user |
|---|---|
| Message-ID | <CAP6e+ZzL8w0VAhchjy6zduBPqK5aOhWvTwv6=wBPphi4_me=2w@mail.gmail.com> |
Nice! Works perfectly, way more elegant and flexible. Thank you! On Mon, May 3, 2021 at 2:25 PM <[email protected]> wrote: > what you want is \strum > > ( > Pdef(\perc, Pbind( > //\instrument, \perc, > \out, [0, 1], > \dur, 1, > \strum, Pseq([0, 0.1, 0.2, 0.3, 0.4], inf), > )).play > ) > > when strum is 0 then both are played together. > _f > > > 3 maj 2021 kl. 15:14 skrev [email protected]: > > > > 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 > > > > > #| > fredrikolofsson.com musicalfieldsforever.com > |# > > > _______________________________________________ > sc-users mailing list > > info (subscription, etc.): > http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx > archive: http://www.listarc.bham.ac.uk/marchives/sc-users/ > search: http://www.listarc.bham.ac.uk/lists/sc-users/search/ > -- www.jeremykeenan.info www.callandresponse.org.uk