cue_sheet_maker

A library to create cue sheet
README

A library to create cue sheet

Examples

A simple example on how to create a cue sheet

open Cue_sheet_maker

let track = 
  CueTrack.create_empty_track ~track:(1, AUDIO)
  |> CueTrack.add_performer "A performer"
  |> CueTrack.add_composer "A composer"
  |> CueTrack.add_title "A title"
  |> CueTrack.add_index (1, Duration.minute_seconde_millieme_format ~min: 3 ~sec:30 ~mil: 300)
  
let track2 = 
  CueTrack.create_empty_track ~track:(2, AUDIO)
  |> CueTrack.add_performer "A performer 2"
  |> CueTrack.add_composer "A composer 2"
  |> CueTrack.add_title "A title 2"
  |> CueTrack.add_index (1, Duration.minute_seconde_millieme_format ~min: 3 ~sec:10 ~mil: 300)
  
let sheet = 
  CueSheet.create_empty_sheet ~file:("A file", WAVE)
  |> CueSheet.add_catalog "0123456789123"
  |> CueSheet.add_performer "Album performer"
  |> CueSheet.add_title "Album title"
  |> CueSheet.add_track track
  |> CueSheet.add_track track2

let result = sheet |> CueSheet.export ~sum: true "output.cue"

Produce

CATALOG 0123456789123
TITLE "Album title"
PERFORMER "Album performer"
FILE "A file" WAVE
  TRACK 01 AUDIO
    TITLE "A title"
    COMPOSER "A composer"
    PERFORMER "A performer"
    INDEX 01 00:00:00
  TRACK 02 AUDIO
    TITLE "A title 2"
    COMPOSER "A composer 2"
    PERFORMER "A performer 2"
    INDEX 01 03:30:22
Install
Published
25 Jul 2022
Authors
Maintainers
Sources
0.1.1.tar.gz
md5=e4b9d6984be6ce1aff8c096622b251d5
sha512=5827487065c1675ba21bcacf039cdf98d7ae2dc5aa51c8f69bf535bcbc8f17bfeec45df7eeab7aa4f6ea5fbfc2b47ddd9d2a884f58a8ae3b67655935133534ec
Dependencies
odoc
with-doc
dune
>= "3.3"
ocaml
>= "4.14.0"
Reverse Dependencies