package mm

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

Module Mono.GeneratorSource

Sound generators.

Sourceclass type t = object ... end

A sound generator.

Sourceclass sine : int -> ?volume:float -> ?phase:float -> float -> t

Generate a sine waveform.

Sourceclass square : int -> ?volume:float -> ?phase:float -> float -> t

Generate a square waveform.

Sourceclass saw : int -> ?volume:float -> ?phase:float -> float -> t

Generate a saw waveform.

Sourceclass triangle : int -> ?volume:float -> ?phase:float -> float -> t

Generate a triangle waveform.

Sourceclass white_noise : ?volume:float -> int -> t
Sourceclass chain : t -> Effect.t -> t
Sourceclass add : t -> t -> t
Sourceclass mult : t -> t -> t
Sourceclass adsr : Effect.ADSR.t -> t -> t

Apply an ADSR envlope on a generator.

OCaml

Innovation. Community. Security.