Module PolyphonySource

Sourcetype voice = {
  1. release : unit -> unit;
  2. fill : Signal.t -> unit;
  3. silent : unit -> bool;
}
Sourcetype t
Sourceval create : ?voices:int -> unit -> t
Sourceval press : t -> int -> voice -> unit
Sourceval release : t -> int -> unit
Sourceval fill : t -> Signal.t -> unit
Sourceval voices : t -> int
Sourceval held : t -> int list
Sourceval sine : adsr:Envelope.t -> float -> float -> voice