[Csnd] Re: Re: xtratim
| Date | 2011-01-11 18:22 |
| From | "Art Hunkins" |
| Subject | [Csnd] Re: Re: xtratim |
You shouldn't need to do anything. A score event normally terminates a note at the end of p3; a MIDI note terminates at MIDI off. In either case, an "r" envelope simply extends note duration (prior to "off") by the length of the release segment. Art Hunkins ----- Original Message ----- From: "Enrico Francioni" |
| Date | 2011-01-11 18:32 |
| From | Enrico Francioni |
| Subject | [Csnd] Re: Re: xtratim |
this instrument is called (Called), in turn, by another (call) instrument
that contains schedkwhen (with kdur = 86400);
why would that the instrument is turned off and check that it really
happened…
--
View this message in context: http://csound.1045644.n5.nabble.com/xtratim-tp3336641p3337008.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:41 |
| From | francesco |
| Subject | [Csnd] Re: Re: xtratim |
If i'm not wrong You can use a negative p1, i.e send messages to instr 1 with i-1, or, maybe better, You can use turnoff2, that send a turn off message to another instrument. Hope i'm right... ciao, francesco |
| Date | 2011-01-11 18:45 |
| From | francesco |
| Subject | [Csnd] Re: Re: xtratim |
... and active opcode return the number of instances of an instrument, i.e if instrument is off, i suppose return 0. ciao, francesco |
| Date | 2011-01-11 20:26 |
| From | Enrico Francioni |
| Subject | [Csnd] Re: Re: xtratim |
;this is the relevant passage of the code: ;======================= instr 1 ; call schedkwhen gktrigger, -1, 1, 2, 0, 86400 ; call endin ;======================= instr 2 ; called if gktrigger == 0 then ; xtratim .5 (?) itime = 1 kenv linsegr 1, p3, 1, itime, 0 turnoff elseif gktrigger != 0 then kenv linen 1, .5, p3, .5 endif a1 diskin "called.wav", 1 ;a1 oscili 1, 600, 1 out a1*kenv endin ;======================= |