package vecosek-scene

  1. Overview
  2. Docs

Module Vecosek_scene.Scene_format_bSource

Sourcetype midi_event = Scene_format_t.midi_event = {
  1. port : int;
  2. status : int;
  3. channel : int;
  4. data1 : int;
  5. data2 : int option;
}
Sourcetype event = Scene_format_t.event =
  1. | Track_ends of id
  2. | Track_starts of id
  3. | Midi_input of midi_event
Sourcetype action = Scene_format_t.action =
  1. | Raw_midi of midi_event
  2. | Track_on of id * int
  3. | Track_off of id
  4. | Bpm_operation of bpm_operation
  5. | Add_event_handler of event_handler
  6. | Remove_event_handler of event_handler
  7. | Remove_event_handler_by_event of event
  8. | All_tracks_off
  9. | Stop
Sourceand event_handler = Scene_format_t.event_handler = {
  1. name : string;
  2. events : event list;
  3. actions : action list;
}
Sourcetype ticked_action = Scene_format_t.ticked_action = {
  1. tick : int;
  2. action : action;
}
Sourcetype track = Scene_format_t.track = {
  1. id : id;
  2. events : ticked_action list;
  3. length : int;
  4. name : string;
}
Sourcetype scene = Scene_format_t.scene = {
  1. active : id list;
  2. handlers : event_handler list;
  3. bpm : int;
  4. ppqn : int;
  5. tracks : track list;
}
Sourceval bpm_operation_tag : Bi_io.node_tag

Tag used by the writers for type bpm_operation. Readers may support more than just this tag.

Sourceval write_untagged_bpm_operation : Bi_outbuf.t -> bpm_operation -> unit

Output an untagged biniou value of type bpm_operation.

Sourceval write_bpm_operation : Bi_outbuf.t -> bpm_operation -> unit

Output a biniou value of type bpm_operation.

Sourceval string_of_bpm_operation : ?len:int -> bpm_operation -> string

Serialize a value of type bpm_operation into a biniou string.

Sourceval 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.

Sourceval read_bpm_operation : Bi_inbuf.t -> bpm_operation

Input a tagged biniou value of type bpm_operation.

Sourceval bpm_operation_of_string : ?pos:int -> string -> bpm_operation

Deserialize a biniou value of type bpm_operation.

  • parameter pos

    specifies the position where reading starts. Default: 0.

Sourceval id_tag : Bi_io.node_tag

Tag used by the writers for type id. Readers may support more than just this tag.

Sourceval write_untagged_id : Bi_outbuf.t -> id -> unit

Output an untagged biniou value of type id.

Sourceval write_id : Bi_outbuf.t -> id -> unit

Output a biniou value of type id.

Sourceval string_of_id : ?len:int -> id -> string

Serialize a value of type id into a biniou string.

Sourceval get_id_reader : Bi_io.node_tag -> Bi_inbuf.t -> id

Return a function that reads an untagged biniou value of type id.

Sourceval read_id : Bi_inbuf.t -> id

Input a tagged biniou value of type id.

Sourceval id_of_string : ?pos:int -> string -> id

Deserialize a biniou value of type id.

  • parameter pos

    specifies the position where reading starts. Default: 0.

Sourceval midi_event_tag : Bi_io.node_tag

Tag used by the writers for type midi_event. Readers may support more than just this tag.

Sourceval write_untagged_midi_event : Bi_outbuf.t -> midi_event -> unit

Output an untagged biniou value of type midi_event.

Sourceval write_midi_event : Bi_outbuf.t -> midi_event -> unit

Output a biniou value of type midi_event.

Sourceval string_of_midi_event : ?len:int -> midi_event -> string

Serialize a value of type midi_event into a biniou string.

Sourceval 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.

Sourceval read_midi_event : Bi_inbuf.t -> midi_event

Input a tagged biniou value of type midi_event.

Sourceval midi_event_of_string : ?pos:int -> string -> midi_event

Deserialize a biniou value of type midi_event.

  • parameter pos

    specifies the position where reading starts. Default: 0.

Sourceval event_tag : Bi_io.node_tag

Tag used by the writers for type event. Readers may support more than just this tag.

Sourceval write_untagged_event : Bi_outbuf.t -> event -> unit

Output an untagged biniou value of type event.

Sourceval write_event : Bi_outbuf.t -> event -> unit

Output a biniou value of type event.

Sourceval string_of_event : ?len:int -> event -> string

Serialize a value of type event into a biniou string.

Sourceval get_event_reader : Bi_io.node_tag -> Bi_inbuf.t -> event

Return a function that reads an untagged biniou value of type event.

Sourceval read_event : Bi_inbuf.t -> event

Input a tagged biniou value of type event.

Sourceval event_of_string : ?pos:int -> string -> event

Deserialize a biniou value of type event.

  • parameter pos

    specifies the position where reading starts. Default: 0.

Sourceval action_tag : Bi_io.node_tag

Tag used by the writers for type action. Readers may support more than just this tag.

Sourceval write_untagged_action : Bi_outbuf.t -> action -> unit

Output an untagged biniou value of type action.

Sourceval write_action : Bi_outbuf.t -> action -> unit

Output a biniou value of type action.

Sourceval string_of_action : ?len:int -> action -> string

Serialize a value of type action into a biniou string.

Sourceval get_action_reader : Bi_io.node_tag -> Bi_inbuf.t -> action

Return a function that reads an untagged biniou value of type action.

Sourceval read_action : Bi_inbuf.t -> action

Input a tagged biniou value of type action.

Sourceval action_of_string : ?pos:int -> string -> action

Deserialize a biniou value of type action.

  • parameter pos

    specifies the position where reading starts. Default: 0.

Sourceval event_handler_tag : Bi_io.node_tag

Tag used by the writers for type event_handler. Readers may support more than just this tag.

Sourceval write_untagged_event_handler : Bi_outbuf.t -> event_handler -> unit

Output an untagged biniou value of type event_handler.

Sourceval write_event_handler : Bi_outbuf.t -> event_handler -> unit

Output a biniou value of type event_handler.

Sourceval string_of_event_handler : ?len:int -> event_handler -> string

Serialize a value of type event_handler into a biniou string.

Sourceval 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.

Sourceval read_event_handler : Bi_inbuf.t -> event_handler

Input a tagged biniou value of type event_handler.

Sourceval event_handler_of_string : ?pos:int -> string -> event_handler

Deserialize a biniou value of type event_handler.

  • parameter pos

    specifies the position where reading starts. Default: 0.

Sourceval ticked_action_tag : Bi_io.node_tag

Tag used by the writers for type ticked_action. Readers may support more than just this tag.

Sourceval write_untagged_ticked_action : Bi_outbuf.t -> ticked_action -> unit

Output an untagged biniou value of type ticked_action.

Sourceval write_ticked_action : Bi_outbuf.t -> ticked_action -> unit

Output a biniou value of type ticked_action.

Sourceval string_of_ticked_action : ?len:int -> ticked_action -> string

Serialize a value of type ticked_action into a biniou string.

Sourceval 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.

Sourceval read_ticked_action : Bi_inbuf.t -> ticked_action

Input a tagged biniou value of type ticked_action.

Sourceval ticked_action_of_string : ?pos:int -> string -> ticked_action

Deserialize a biniou value of type ticked_action.

  • parameter pos

    specifies the position where reading starts. Default: 0.

Sourceval track_tag : Bi_io.node_tag

Tag used by the writers for type track. Readers may support more than just this tag.

Sourceval write_untagged_track : Bi_outbuf.t -> track -> unit

Output an untagged biniou value of type track.

Sourceval write_track : Bi_outbuf.t -> track -> unit

Output a biniou value of type track.

Sourceval string_of_track : ?len:int -> track -> string

Serialize a value of type track into a biniou string.

Sourceval get_track_reader : Bi_io.node_tag -> Bi_inbuf.t -> track

Return a function that reads an untagged biniou value of type track.

Sourceval read_track : Bi_inbuf.t -> track

Input a tagged biniou value of type track.

Sourceval track_of_string : ?pos:int -> string -> track

Deserialize a biniou value of type track.

  • parameter pos

    specifies the position where reading starts. Default: 0.

Sourceval scene_tag : Bi_io.node_tag

Tag used by the writers for type scene. Readers may support more than just this tag.

Sourceval write_untagged_scene : Bi_outbuf.t -> scene -> unit

Output an untagged biniou value of type scene.

Sourceval write_scene : Bi_outbuf.t -> scene -> unit

Output a biniou value of type scene.

Sourceval string_of_scene : ?len:int -> scene -> string

Serialize a value of type scene into a biniou string.

Sourceval get_scene_reader : Bi_io.node_tag -> Bi_inbuf.t -> scene

Return a function that reads an untagged biniou value of type scene.

Sourceval read_scene : Bi_inbuf.t -> scene

Input a tagged biniou value of type scene.

Sourceval scene_of_string : ?pos:int -> string -> scene

Deserialize a biniou value of type scene.

  • parameter pos

    specifies the position where reading starts. Default: 0.

OCaml

Innovation. Community. Security.