package tiny_libs

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

Module SamplerSource

Sourcetype sample = {
  1. data : Signal.t;
  2. root : int;
}
Sourcetype direction =
  1. | Forward
  2. | Backward
Sourcetype loop =
  1. | Forever
  2. | Until_release
  3. | Off
Sourcetype settings = {
  1. start : float;
  2. loop_start : float;
  3. loop_end : float;
  4. end_ : float;
  5. direction : direction;
  6. tune : float;
  7. crossfade : float;
  8. gain : float;
  9. loop : loop;
  10. release : float option;
}
Sourceval default : settings
Sourceval voice : sample -> settings -> key:int -> velocity:float -> Polyphony.voice
Sourceval seconds : sample -> settings -> int -> float
Sourcetype play =
  1. | Key
  2. | Oneshot
  3. | Mute_group
  4. | Loop
Sourcetype pad = {
  1. sample : sample;
  2. settings : settings;
  3. play : play;
  4. pan : float;
}
Sourceval pad : ?settings:settings -> ?play:play -> ?pan:float -> sample -> pad
Sourcetype kit
Sourceval kit : ?base:int -> pad array -> kit
Sourceval press : kit -> int -> float -> unit
Sourceval release : kit -> int -> unit
Sourceval fill : kit -> Signal.stereo -> unit
Sourceval sounding : kit -> int