Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
type bpm_operation = Scene_format_t.bpm_operation
type id = Scene_format_t.id
type event = Scene_format_t.event =
| Track_ends of id
| Track_starts of id
| Midi_input of midi_event
type action = Scene_format_t.action =
| Raw_midi of midi_event
| Track_on of id * int
| Track_off of id
| Bpm_operation of bpm_operation
| Add_event_handler of event_handler
| Remove_event_handler of event_handler
| Remove_event_handler_by_event of event
| All_tracks_off
| Stop
type track = Scene_format_t.track = {
id : id;
events : ticked_action list;
length : int;
name : string;
}
type scene = Scene_format_t.scene = {
active : id list;
handlers : event_handler list;
bpm : int;
ppqn : int;
tracks : track list;
}
val bpm_operation_tag : Bi_io.node_tag
Tag used by the writers for type bpm_operation
. Readers may support more than just this tag.
val write_untagged_bpm_operation : Bi_outbuf.t -> bpm_operation -> unit
Output an untagged biniou value of type bpm_operation
.
val write_bpm_operation : Bi_outbuf.t -> bpm_operation -> unit
Output a biniou value of type bpm_operation
.
val string_of_bpm_operation : ?len:int -> bpm_operation -> string
Serialize a value of type bpm_operation
into a biniou string.
val get_bpm_operation_reader : Bi_io.node_tag -> Bi_inbuf.t -> bpm_operation
Return a function that reads an untagged biniou value of type bpm_operation
.
val read_bpm_operation : Bi_inbuf.t -> bpm_operation
Input a tagged biniou value of type bpm_operation
.
val bpm_operation_of_string : ?pos:int -> string -> bpm_operation
Deserialize a biniou value of type bpm_operation
.
val id_tag : Bi_io.node_tag
Tag used by the writers for type id
. Readers may support more than just this tag.
val write_untagged_id : Bi_outbuf.t -> id -> unit
Output an untagged biniou value of type id
.
val write_id : Bi_outbuf.t -> id -> unit
Output a biniou value of type id
.
val get_id_reader : Bi_io.node_tag -> Bi_inbuf.t -> id
Return a function that reads an untagged biniou value of type id
.
val read_id : Bi_inbuf.t -> id
Input a tagged biniou value of type id
.
val midi_event_tag : Bi_io.node_tag
Tag used by the writers for type midi_event
. Readers may support more than just this tag.
val write_untagged_midi_event : Bi_outbuf.t -> midi_event -> unit
Output an untagged biniou value of type midi_event
.
val write_midi_event : Bi_outbuf.t -> midi_event -> unit
Output a biniou value of type midi_event
.
val string_of_midi_event : ?len:int -> midi_event -> string
Serialize a value of type midi_event
into a biniou string.
val get_midi_event_reader : Bi_io.node_tag -> Bi_inbuf.t -> midi_event
Return a function that reads an untagged biniou value of type midi_event
.
val read_midi_event : Bi_inbuf.t -> midi_event
Input a tagged biniou value of type midi_event
.
val midi_event_of_string : ?pos:int -> string -> midi_event
Deserialize a biniou value of type midi_event
.
val event_tag : Bi_io.node_tag
Tag used by the writers for type event
. Readers may support more than just this tag.
val write_untagged_event : Bi_outbuf.t -> event -> unit
Output an untagged biniou value of type event
.
val write_event : Bi_outbuf.t -> event -> unit
Output a biniou value of type event
.
val string_of_event : ?len:int -> event -> string
Serialize a value of type event
into a biniou string.
val get_event_reader : Bi_io.node_tag -> Bi_inbuf.t -> event
Return a function that reads an untagged biniou value of type event
.
val read_event : Bi_inbuf.t -> event
Input a tagged biniou value of type event
.
val action_tag : Bi_io.node_tag
Tag used by the writers for type action
. Readers may support more than just this tag.
val write_untagged_action : Bi_outbuf.t -> action -> unit
Output an untagged biniou value of type action
.
val write_action : Bi_outbuf.t -> action -> unit
Output a biniou value of type action
.
val string_of_action : ?len:int -> action -> string
Serialize a value of type action
into a biniou string.
val get_action_reader : Bi_io.node_tag -> Bi_inbuf.t -> action
Return a function that reads an untagged biniou value of type action
.
val read_action : Bi_inbuf.t -> action
Input a tagged biniou value of type action
.
val event_handler_tag : Bi_io.node_tag
Tag used by the writers for type event_handler
. Readers may support more than just this tag.
val write_untagged_event_handler : Bi_outbuf.t -> event_handler -> unit
Output an untagged biniou value of type event_handler
.
val write_event_handler : Bi_outbuf.t -> event_handler -> unit
Output a biniou value of type event_handler
.
val string_of_event_handler : ?len:int -> event_handler -> string
Serialize a value of type event_handler
into a biniou string.
val get_event_handler_reader : Bi_io.node_tag -> Bi_inbuf.t -> event_handler
Return a function that reads an untagged biniou value of type event_handler
.
val read_event_handler : Bi_inbuf.t -> event_handler
Input a tagged biniou value of type event_handler
.
val event_handler_of_string : ?pos:int -> string -> event_handler
Deserialize a biniou value of type event_handler
.
val ticked_action_tag : Bi_io.node_tag
Tag used by the writers for type ticked_action
. Readers may support more than just this tag.
val write_untagged_ticked_action : Bi_outbuf.t -> ticked_action -> unit
Output an untagged biniou value of type ticked_action
.
val write_ticked_action : Bi_outbuf.t -> ticked_action -> unit
Output a biniou value of type ticked_action
.
val string_of_ticked_action : ?len:int -> ticked_action -> string
Serialize a value of type ticked_action
into a biniou string.
val get_ticked_action_reader : Bi_io.node_tag -> Bi_inbuf.t -> ticked_action
Return a function that reads an untagged biniou value of type ticked_action
.
val read_ticked_action : Bi_inbuf.t -> ticked_action
Input a tagged biniou value of type ticked_action
.
val ticked_action_of_string : ?pos:int -> string -> ticked_action
Deserialize a biniou value of type ticked_action
.
val track_tag : Bi_io.node_tag
Tag used by the writers for type track
. Readers may support more than just this tag.
val write_untagged_track : Bi_outbuf.t -> track -> unit
Output an untagged biniou value of type track
.
val write_track : Bi_outbuf.t -> track -> unit
Output a biniou value of type track
.
val string_of_track : ?len:int -> track -> string
Serialize a value of type track
into a biniou string.
val get_track_reader : Bi_io.node_tag -> Bi_inbuf.t -> track
Return a function that reads an untagged biniou value of type track
.
val read_track : Bi_inbuf.t -> track
Input a tagged biniou value of type track
.
val scene_tag : Bi_io.node_tag
Tag used by the writers for type scene
. Readers may support more than just this tag.
val write_untagged_scene : Bi_outbuf.t -> scene -> unit
Output an untagged biniou value of type scene
.
val write_scene : Bi_outbuf.t -> scene -> unit
Output a biniou value of type scene
.
val string_of_scene : ?len:int -> scene -> string
Serialize a value of type scene
into a biniou string.
val get_scene_reader : Bi_io.node_tag -> Bi_inbuf.t -> scene
Return a function that reads an untagged biniou value of type scene
.
val read_scene : Bi_inbuf.t -> scene
Input a tagged biniou value of type scene
.