package cue_sheet_maker

  1. Overview
  2. Docs
type t
val string_of_cue_track : ?tabulation:bool -> ?compute: [< `set of [< `MinSec of int * int | `MinSecFra of int * int * int | `MinSecMil of int * int * int ] | `sum of [< `MinSec of int * int | `MinSecFra of int * int * int | `MinSecMil of int * int * int ] ] option -> t -> string

String representation of a track in a cue sheet

if ~tabulation all lines in the string will be padding left by 2 spaces

~compute indicates whether or not some operation must be apply to the indexes. `set duration override the indexes value of the track. `sum duration add duration to the existing time duration

val create_empty_track : track:(int * CueTrackMode.t) -> t

Create an track representation with just the track position in the album and its track mode

val add_index : (int * [< `MinSec of int * int | `MinSecFra of int * int * int | `MinSecMil of int * int * int ]) -> t -> t

Add a time index to the track. If the index already exist, the old value is replaced

val add_flag : CueTrackFlag.t -> t -> t

Add a flag to the track. If the flag already exist, the old value is replaced

val add_pregap : [< `MinSec of int * int | `MinSecFra of int * int * int | `MinSecMil of int * int * int ] -> t -> t

Add a pregap to the track. If the pregap was already set, the old value is replaced

val add_postgap : [< `MinSec of int * int | `MinSecFra of int * int * int | `MinSecMil of int * int * int ] -> t -> t

Add a postgap to the track. If the postgap was already set, the old value is replaced

val add_arranger : string -> t -> t

Add an arranger to the track. If the arranger already exist, the old value is replaced

val add_composer : string -> t -> t

Add a composer to the track. If the composer already exist, the old value is replaced

val add_disc_id : string -> t -> t

Add a disc id to the track. If the disc id already exist, the old value is replaced

val add_genre : string -> t -> t

Add a genre to the track. If the genre already exist, the old value is replaced

val add_isrc : string -> t -> t

Add an isrc to the track. If the isrc already exist, the old value is replaced

val add_message : string -> t -> t

Add a message to the track. If the message already exist, the old value is replaced

val add_performer : string -> t -> t

Add a performer to the track. If the performer already exist, the old value is replaced

val add_songwriter : string -> t -> t

Add a songwritter to the track. If the songwritter already exist, the old value is replaced

val add_title : string -> t -> t

Add a title to the track. If the title already exist, the old value is replaced

val add_toc_info : string -> t -> t

Add a toc info to the track. If the toc info already exist, the old value is replaced

val add_toc_info2 : string -> t -> t

Add a toc info 2 to the track. If the toc info2 already exist, the old value is replaced

val add_size_info : string -> t -> t

Add a size info to the track. If the size info already exist, the old value is replaced

val add_rem : (string * string) -> t -> t

Add a rem to the track. If the rem key already exist, the old value is replaced. All key are set uppercase

val update_index : (int * [< `MinSec of int * int | `MinSecFra of int * int * int | `MinSecMil of int * int * int ]) -> t -> t

Update the time for a specific index. Do nothing if the index doesn't exist in the track indexes

OCaml

Innovation. Community. Security.