io:midi-in

(io:midi-in device-id type channel a b)


Description:

define io:midi-in to start recieving midi messages.  Some constants are available for event types *io:midi-on* (note one) *io:midi-off* (note off) *io:midi-pc* (program change) *io:midi-cc* (control change)


Arguments:

              a -- byte 1

        channel -- channel number

              b -- byte 2

      device-id -- a unique id for the device that sent this message

           type -- the type of the midi message (i.e. #x9 for note-on).


Returns: boolean


Examples:

; recieve midi events

(define io:midi-in 

   (lambda (device-id type channel a b)

      (cond ((= type *io:midi-on*) (my-note-on a b))

            ((= type *io:midi-off*) (my-note-off a b)))))



Back to index