package llama_midi

  1. Overview
  2. Docs
type note_event = {
  1. note : int;
  2. velocity : int;
}
type polyphonic_key_pressure = {
  1. note : int;
  2. pressure : int;
}
type control_change = {
  1. controller : int;
  2. value : int;
}
type program_change = {
  1. program : int;
}
type channel_pressure = {
  1. pressure : int;
}
type pitch_wheel_change = {
  1. signed_value : int;
}
type message =
  1. | Note_off of note_event
  2. | Note_on of note_event
  3. | Polyphonic_key_pressure of polyphonic_key_pressure
  4. | Control_change of control_change
  5. | Program_change of program_change
  6. | Channel_pressure of channel_pressure
  7. | Pitch_wheel_change of pitch_wheel_change
type t = {
  1. channel : int;
  2. message : message;
}
val message_to_string : message -> string
val to_string : t -> string