[Csnd] xtratim
Date | 2011-01-11 15:46 |
From | Enrico Francioni |
Subject | [Csnd] xtratim |
Hello everyone! I've seen other examples xtratim on Nabble-Csound but have not found anything that makes my case. I'd like that when I turn off an instrument, before the time specified, activate a fadeout to avoid the click. The instrument contains an audio signal. I decided to extend the life of the instrument (p3) by use of xtratim; the problem is that then I can not make that happen, the fadeout (envelope \) during the time that I added with xtratim. I would also like that the unit off when the turnoff with fadeout reached the value 0. Can anyone help me? Thanks, greetings e ;======================= something like this (for example): ;======================= ;======================= instr 1 ;======================= ;======================= if gktrigger == 0 then xtratim 1 ; fadeout (how to apply it?) ; turnoff (how to apply it?) elseif gktrigger != 0 then kenv linen 1, .5, p3, .5 endif a1 oscili kenv, 600, 1 outs a1*0, a1 endin ;======================= ;======================= |
Date | 2011-01-11 17:27 |
From | francesco |
Subject | [Csnd] Re: xtratim |
Hi Mr. Enrico, You can use linsegr, that is like linseg (line segment) but the last segment is applied when the instrument is in release state. xtratim itime kenv linsegr 0, 0.1, iamp, p3-0.2, iamp, itime, 0 in this way when instrument end (p3) there will be an extra time of itime and a fade out (last segment in linsegr) of the same time (if You want same time for fade out). Hope this is what You mean ciao, francesco. |
Date | 2011-01-11 17:41 |
From | Enrico Francioni |
Subject | [Csnd] Re: xtratim |
yes, I seems to work - I never used! >From the manual it seems that we can even omit xtratim if using linsegr. In fact, in linsegr and how long the last segment (irel). Grazie mille francesco, e |
Date | 2011-01-11 17:43 |
From | Enrico Francioni |
Subject | [Csnd] Re: xtratim |
…to manual: You can use other pre-made envelopes which start a release segment upon recieving a note off message, like linenr and expsegr, or you can construct more complex envelopes using xtratim and release. Note that you don't need to use xtratim if you are using linsegr, since the time is extended automatically. -- View this message in context: http://csound.1045644.n5.nabble.com/xtratim-tp3336641p3336922.html Sent from the Csound - General mailing list archive at Nabble.com. Send bugs reports to the Sourceforge bug tracker https://sourceforge.net/tracker/?group_id=81968&atid=564599 Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2011-01-11 18:11 |
From | Enrico Francioni |
Subject | [Csnd] Re: xtratim |
…now the last step that should be solved is: do so when kenv goes to 0 the instrument is turned off (turnoff) … e -- View this message in context: http://csound.1045644.n5.nabble.com/xtratim-tp3336641p3336971.html Sent from the Csound - General mailing list archive at Nabble.com. Send bugs reports to the Sourceforge bug tracker https://sourceforge.net/tracker/?group_id=81968&atid=564599 Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2011-01-11 18:29 |
From | francesco |
Subject | [Csnd] Re: xtratim |
i think that the instrument end after p3 time, but i'm not sure. Anyway You can use release opcode that tell You if the instrument is in the release state. release go to 1 when instr is off, i.e begin the release phase, otherwise is 0. Maybe is this that You can use. And see for example xtratim-2 (the second example in manual page). ciao, francesco. |