package tiny_libs

  1. Overview
  2. Docs
From-scratch libraries for teaching: graphics, audio, compression, crypto, networking and more

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.3.6.tar.gz
md5=7c636383d146d30ac6f2fa234a6253c8
sha512=c79f3823c5f8f57e5038eb640d487c61168b84aa07c61999d6622ef9fd0c890e2b03b4c6a7cdbbe9352a49e25dda00ac7bb14693cee8e3d7beeed251351a2af0

doc/tiny_libs.audio_mod/Mod/index.html

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