Csound Csound-dev Csound-tekno Search About

[Csnd] mdelay

Date2012-02-25 16:02
FromDennis 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

Date2012-02-25 17:36
FromGiorgio 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.

Date2012-02-25 18:26
FromTito Latini
SubjectRe: [Csnd] Re: mdelay
AttachmentsNone  

Date2012-02-25 18:42
FromDennis Raddle
SubjectRe: [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 :

"....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"



Date2012-02-26 11:50
FromTito Latini
SubjectRe: [Csnd] Re: mdelay
AttachmentsNone