Use Non-Frames Version Previous Page Next Page
MIDI Support: Generic I/O

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:

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 when MIDI data are present in the MIDI IN buffer, is kstatus set to the type of the relevant messages.

Author

Gabriel Maldonado
Italy
1998 (New in Csound version 3.492)


Use Non-Frames Version Previous Page Next Page
MIDI Support: Generic I/O