kstatus is like a counter in mdelay.csd kstatus + 1 = 1 kstatus + 1 = 2 kstatus + 1 = 3 ... kstatus + 1 = 128 writes in the internal buffer ksattus + 1 = 129 ... kstatus + 1 = 144 writes in the internal buffer kstatus + 1 = 145 ... and the output of mdelay (after the delay) is note off (turn off the current note on, I don't think that it is what you want) note on note off note on note off note on note off note on note off when you release the key (again, I don't think that it is what you want). My previous msg contains the explanation and a variation of the example. > 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. status and channel are separate for convenience (see also `midiin' and `midiout' opcodes), the (real) bytes of the sent midi message are byte1 = status | chan byte2 = data1 byte3 = data2 tito On Sat, Feb 25, 2012 at 10:42:32AM -0800, Dennis Raddle wrote: > 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 wrote: > > > 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. > > > > > > 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" > > > > > > 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" >