package tiny_libs

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module ModSource

Sourcetype instrument = {
  1. name : string;
  2. finetune : int;
  3. volume : int;
  4. loop_start : int;
  5. loop_length : int;
  6. data : string;
}
Sourcetype cell = {
  1. instrument : int;
  2. period : int;
  3. fx : int;
  4. param : int;
}
Sourcetype song = {
  1. title : string;
  2. instruments : instrument array;
  3. restart : int;
  4. positions : int array;
  5. patterns : cell array array array;
  6. tag : string;
}
Sourceval channels_of_tag : string -> int option
Sourceval channels : song -> int
Sourceval of_string : string -> (song, string) result
Sourceval to_string : song -> string
Sourceval header_size : song -> int
Sourceval empty_cell : cell
Sourceval cell_of_bytes : string -> int -> cell
Sourceval cell_to_bytes : cell -> string
Sourceval periods : int array
Sourceval note_name : int -> string
Sourceval period_of_name : string -> int option
Sourceval rate : int -> float
Sourceval paula_clock : float
Sourceval sample : instrument -> int -> float
Sourceval data_of_floats : float array -> string