[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] Legato, Gates, ADSRs, and Pbinds.



Thanks for the tip, Paul - that Release Node was exactly what I was looking for.

I am still wondering, though - how might someone signal the length a
gate is open for, from a Pbind?
I was hoping the legato key would do it, but no such luck yet.


On Sun, Dec 2, 2018 at 2:05 PM <paul@xxxxxxxxxxxxxxxxxxxx> wrote:
>
> Hi,
>
> See the Env help file for the Env.new method - it has an argument:
> "releaseNode : an Integer or nil. The envelope will sustain at the release node until released."
>
> So adding it to your envelope which has a release node at index 3:
>
> Env.new([0, aLev, dLev, sLev, rLev], [aRate*4, dRate*4, sRate*4, rRate*4], releaseNode:3);
>
> // Example - 2-second gate
> (
> a = {
>     var gateTime = 2;
>     var gate = Trig1.kr(1, gateTime);
>     var env = Env.new([0, 1, 0.5, 0.5, 0], [0.05, 0.1, 0.1, 0.1], releaseNode:3);
>     var envgen = EnvGen.ar(env, gate, doneAction: 2);
>     SinOsc.ar(
>         envgen * 1000 + 440
>     ) * envgen * 0.1
> };
> a.play;
> )
>
> Best,
> Paul
>
> On 2 Dec 2018, at 08:54, geoffbaltan@xxxxxxxxx wrote:
>
> > Hi All -
> >
> > I am trying to make a particular type of envelope, though it does not
> > exactly conform to the "adsr" form, it is still quite similar. The
> > main difference is that a user can control where the levels of each
> > envelope segment are.
> >
> > So, it's like this:
> > Env.new([0, aLev, dLev, sLev, rLev], [aRate*4, dRate*4, sRate*4, rRate*4]);
> >
> > The issue is that this envelope is inside a SynthDef and I need it to
> > function like an ADSR, insomuch as when a gate is released, I would
> > like the sustain and release part of the envelope to kick in. As it is
> > now, it just plays through the entire envelope, as triggered.
> >
> > Finally, I would like to control the duration of the gate via a Pbind.
> > Is that a matter of a legato key or a gate key?
> >
> > Does anyone have an experience with this? Or can suggest where to look?
> >
> > _______________________________________________
> > sc-users mailing list
> >
> > info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
> > archive: https://listarc.bham.ac.uk/marchives/sc-users/
> > search: https://listarc.bham.ac.uk/lists/sc-users/search/
>
>
> _______________________________________________
> sc-users mailing list
>
> info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
> archive: https://listarc.bham.ac.uk/marchives/sc-users/
> search: https://listarc.bham.ac.uk/lists/sc-users/search/

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/