| Josep M Comajuncosas wrote:
>
> Well, I´d really like to see Csound recognizing midi pitch bend messages
Paul Winkler wrote:
>
> How about patch change messages?
Sorry if I raise your hopes unrightly, but couldn't
the opcode midiin by G Maldonado be used for these things?
It was added in 3.492, it's doc'd in the latest version3_49x.Notes
on the server. There's a corresponding opcode midiout too.
I can't test it since midi doesn't work on my machine, but
you might want to try.
re
*snip*
------------------------------
midiin
kstatus, kchan, kdata1, kdata2 midiin
DESCRIPTION
returns a generic midi message received by the midi in port
PERFORMANCE
kstatus - the type of midi message. Can be:
128 (note off),
144 (note on),
160 (polyphonic aftertouch),
176 (control change),
192 (program change),
208 (channel aftertouch),
224 (pitch bend)
or 0 if no midi message are pending in the MIDI IN
buffer.
kchan - midi channel (1-16)
kdata1, kdata2 - message-dependent data values
midiin has no input arguments, because it reads at the midi in port
implicitly. It works at k-rate. Normally (i.e. when no messages are
pending) kstatus is zero, only each time midi data are present in the
midi in buffer, kstatus is set to the type of the relative messages.
|