Csound Csound-dev Csound-tekno Search About

Triggerable envelopes

Date2016-10-17 16:06
FromEduardo Moguillansky
SubjectTriggerable envelopes
In csound there is a pletora of envelope generators, linsegxxx, expsegxxx with release and without, etc. Having written a lot of faust code in the last time, I got really used to envelopes which can ge retriggered with a gate argument. I assume that there is something like this possible in csound with reinit, but the dark art of reinit is not part of my knowledge base. Is there a simple and readable way to do something like:

aenv gated_linseg kgate, 0, 0.5, 1, 2, 0

which will start over whenever kgate changes from not possitive (kgate <= 0) to possitive (kgate > 0)

best,
Eduardo Moguillansky
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2016-10-17 16:58
FromTarmo Johannes
SubjectRe: Triggerable envelopes

Hi,

Would loopseg http://www.csounds.com/manualOLPC/loopseg.html helo you?

Probably you need to put freq to 1/p3 if you want one pass per instrument call.

Tarmo


17.10.2016 18:06 kirjutas kuupƤeval "Eduardo Moguillansky" <eduardo.moguillansky@gmail.com>:
In csound there is a pletora of envelope generators, linsegxxx, expsegxxx with release and without, etc. Having written a lot of faust code in the last time, I got really used to envelopes which can ge retriggered with a gate argument. I assume that there is something like this possible in csound with reinit, but the dark art of reinit is not part of my knowledge base. Is there a simple and readable way to do something like:

aenv gated_linseg kgate, 0, 0.5, 1, 2, 0

which will start over whenever kgate changes from not possitive (kgate <= 0) to possitive (kgate > 0)

best,
Eduardo Moguillansky
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2016-10-17 17:01
FromSteven Yi
SubjectRe: Triggerable envelopes
Hi Eduardo,

I wrote a UDO called adsr140 a while ago, based upon the Doepfer A-140
module. It has a gate and retrig signal arguments.  It uses a-rate
signals though, which may require some processing to work with k-rate
signals.

The UDO is here:
https://github.com/kunstmusik/libsyi/blob/master/adsr140.udo

A test CSD is here:
https://github.com/kunstmusik/libsyi/blob/master/tests/adsr140.csd

And the blog post that describes it and has an audio example is here:
http://kunstmusik.com/2015/02/09/csound-adsr140/

Not sure that's exactly what you need, but, if not, the code may be
useful as a starting point to create something more specific to your
requirements.

steven


On Mon, Oct 17, 2016 at 11:06 AM, Eduardo Moguillansky
 wrote:
> In csound there is a pletora of envelope generators, linsegxxx, expsegxxx
> with release and without, etc. Having written a lot of faust code in the
> last time, I got really used to envelopes which can ge retriggered with a
> gate argument. I assume that there is something like this possible in csound
> with reinit, but the dark art of reinit is not part of my knowledge base. Is
> there a simple and readable way to do something like:
>
> aenv gated_linseg kgate, 0, 0.5, 1, 2, 0
>
> which will start over whenever kgate changes from not possitive (kgate <= 0)
> to possitive (kgate > 0)
>
> best,
> Eduardo Moguillansky
> Csound mailing list Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> https://github.com/csound/csound/issues Discussions of bugs and features can
> be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-10-17 17:07
FromVictor Lazzarini
SubjectRe: Triggerable envelopes
this is also a gate sig-based envelope udo

http://www.csounds.com/udo/displayOpcode.php?opcode_id=131

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 17 Oct 2016, at 16:59, Tarmo Johannes <tarmo.johannes@OTSAKOOL.EDU.EE> wrote:

Hi,

Would loopseg http://www.csounds.com/manualOLPC/loopseg.html helo you?

Probably you need to put freq to 1/p3 if you want one pass per instrument call.

Tarmo


17.10.2016 18:06 kirjutas kuupäeval "Eduardo Moguillansky" <eduardo.moguillansky@gmail.com>:
In csound there is a pletora of envelope generators, linsegxxx, expsegxxx with release and without, etc. Having written a lot of faust code in the last time, I got really used to envelopes which can ge retriggered with a gate argument. I assume that there is something like this possible in csound with reinit, but the dark art of reinit is not part of my knowledge base. Is there a simple and readable way to do something like:

aenv gated_linseg kgate, 0, 0.5, 1, 2, 0

which will start over whenever kgate changes from not possitive (kgate <= 0) to possitive (kgate > 0)

best,
Eduardo Moguillansky
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2016-10-17 21:47
Frommoguillansky
SubjectRe: Triggerable envelopes

Loopseg works ok, I hadnt realized that it can be "misused" for retriggering. Thanks for all the suggestions.


Am 17.10.2016 6:08 nachm. schrieb "Victor Lazzarini [via Csound]" <[hidden email]>:
this is also a gate sig-based envelope udo

http://www.csounds.com/udo/displayOpcode.php?opcode_id=131

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 17 Oct 2016, at 16:59, Tarmo Johannes <[hidden email]> wrote:

Hi,

Would loopseg http://www.csounds.com/manualOLPC/loopseg.html helo you?

Probably you need to put freq to 1/p3 if you want one pass per instrument call.

Tarmo


17.10.2016 18:06 kirjutas kuupƤeval "Eduardo Moguillansky" <[hidden email]>:
In csound there is a pletora of envelope generators, linsegxxx, expsegxxx with release and without, etc. Having written a lot of faust code in the last time, I got really used to envelopes which can ge retriggered with a gate argument. I assume that there is something like this possible in csound with reinit, but the dark art of reinit is not part of my knowledge base. Is there a simple and readable way to do something like:

aenv gated_linseg kgate, 0, 0.5, 1, 2, 0

which will start over whenever kgate changes from not possitive (kgate <= 0) to possitive (kgate > 0)

best,
Eduardo Moguillansky
Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here


If you reply to this email, your message will be added to the discussion below:
http://csound.1045644.n5.nabble.com/Csnd-Triggerable-envelopes-tp5752122p5752129.html
To start a new topic under Csound - General, email [hidden email]
To unsubscribe from Csound, click here.
NAML


View this message in context: Re: [Csnd] Triggerable envelopes
Sent from the Csound - General mailing list archive at Nabble.com.
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here