Tportmidi.Events
Buffers of events
The type for MIDI messages. These are structured by portmidi
as follows:
(m land 0xFF)
is the MIDI status byte.(m lsr 8) land 0xFF
is first data byte.(m lsr 16) land 0xFF
is the second data byte.Consult this document for the semantics of messages.
TODO. Should we try to get ints for easier OCaml manipulation ?
val create : int -> t
create count
is a buffer with count
events.
val count : t -> int
count evs
is the number of events in evs
.
set_msg evs i msg
sets the message of the ith
event in evs
to msg
.