[Csnd] turning a real-time midi instrument off..?
Date | 2009-08-17 18:43 |
From | Jason Timm |
Subject | [Csnd] turning a real-time midi instrument off..? |
I have a midi controller that sends "drum-notes" that, when played polyphonically, don't finish the trigger with a note off - resulting in stuck notes. Is there a way to tell a real-time midi instrument to turn itself off after the amp envelope has finished its cycle? J.
|
Date | 2009-08-17 19:03 |
From | Michael Gogins |
Subject | [Csnd] Re: turning a real-time midi instrument off..? |
Set p3 to the duration you want. Or use the turnoff opcode. hope this helps, Mike On 8/17/09, Jason Timm |
Date | 2009-08-17 22:10 |
From | Jason Timm |
Subject | [Csnd] Re: Re: turning a real-time midi instrument off..? |
Attachments | overlap.csd |
Def points in the right direction. What I may need to know is, if I use a conditional, how do I query the duration the instrument's been active? Here's relevant code: J.
On Mon, Aug 17, 2009 at 2:03 PM, Michael Gogins <michael.gogins@gmail.com> wrote: Set p3 to the duration you want. Or use the turnoff opcode. |
Date | 2009-08-17 23:33 |
From | Mike Moser-Booth |
Subject | [Csnd] Re: Re: Re: turning a real-time midi instrument off..? |
instr 1 kcps init 0 kvel init 0 timout 0, 2, KeepPlaying turnoff KeepPlaying: midinoteoncps kcps, kvel kamp expseg .001, .001, 1, 1,
.001 asig oscil kamp*kvel, kcps, gitri
endin
Jason Timm wrote: Def points in the right direction. What I may need to know is, if I use a conditional, how do I query the duration the instrument's been active? |
Date | 2009-08-18 01:19 |
From | Jason Timm |
Subject | [Csnd] Re: Re: Re: Re: turning a real-time midi instrument off..? |
Works a charm! Much appreciated. J.
On Mon, Aug 17, 2009 at 6:33 PM, Mike Moser-Booth <mmoserbooth@gmail.com> wrote:
|