[Csnd] mdelay
Date | 2012-02-25 16:02 |
From | Dennis Raddle |
Subject | [Csnd] mdelay |
I'm trying to make something like a "midi effect" -- a csound program that receives midi events and retransmits them multiple times or with modification. I'm reading about the mdelay opcode (here is the manual linik): <http://www.csounds.com/manual/html/mdelay.html> I don't understand where kstatus comes from in this example. I assume it is the status byte of the note on message, but I don't understand how it gets set to that eventually. Or is it something else? Dennis |
Date | 2012-02-25 17:36 |
From | Giorgio Zucco |
Subject | [Csnd] Re: mdelay |
Hi,quote from the manual : "....Each time that kstatus is other than zero, mdelay outputs a MIDI message to the MIDI out port after kdelay seconds..." then... kstatus init 0 kstatus = kstatus + 1 Note that this opcode is not working with an internal csound instrument, but trigger an external instrument via MIDI "-Q" (I tried with NI Kontakt), to explore the topic I suggest you read "MIDI Instruments Designs for real-time performance" of G . Maldonado on Csound Book,bye -- View this message in context: http://csound.1045644.n5.nabble.com/mdelay-tp5515337p5515514.html Sent from the Csound - General mailing list archive at Nabble.com. |
Date | 2012-02-25 18:26 |
From | Tito Latini |
Subject | Re: [Csnd] Re: mdelay |
Attachments | None |
Date | 2012-02-25 18:42 |
From | Dennis Raddle |
Subject | Re: [Csnd] Re: mdelay |
Yes, I understand that basics of MIDI usage in Csound -- at least I've made a few instruments that are triggered by MIDI -- but, there is something invisible going on in this example. "kstatus" is described as the status byte but nothing ever sets it to a MIDI status byte! It's either 0, or incremented on every k-pass. I don't get it. Does one of the other opcodes "invisibily" set kstatus? I can't find anything about that in the documentation. Also, to produce the real MIDI data does mdelay sum the status byte and the channel? Normally the channel is considered part of the status byte, so it is not unambiguous how that is handled here. Dennis On Sat, Feb 25, 2012 at 9:36 AM, Giorgio Zucco <giorgiobrx@libero.it> wrote: Hi,quote from the manual : |
Date | 2012-02-26 11:50 |
From | Tito Latini |
Subject | Re: [Csnd] Re: mdelay |
Attachments | None |