problem with MIDI input and variable types

"Mark Fletcher" <[email protected]>
Newsgroups gmane.comp.audio.csound.tekno
Message-ID <002801c3b787$8581a540$dd5dfea9@p4>
Hello all,

I am designing an instrument that uses real-time MIDI control, and I am trying to add support for MIDI program change.  To get the program change information, I have considered using the midiin or midiprogramchange opcodes.  These opcodes return a-rate or k-rate variables.  However, I need this information in an i-variable, because I am passing the program number to the grain opcode as the igfn parameter (waveform function table).

I can get real-time MIDI controller data as an i-rate variable (which incidentally doesn't make a lot of sense), so it seems like it should be possible to get an i-rate program change number.  Any ideas?  I would appreciate any assistance.

Thank you,
Mark Fletcher
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.