package brr

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

Module Node.OscillatorSource

Oscillator nodes.

Sourcemodule Periodic_wave : sig ... end

Periodic waves.

Sourcemodule Type : sig ... end

Oscillator type enumeration.

Sourcetype opts

The type for OscillatorOptions.

Sourceval opts : ?channel_count:int -> ?channel_count_mode:Channel_count_mode.t -> ?channel_interpretation:Channel_interpretation.t -> ?type':Type.t -> ?frequency:float -> ?detune:float -> ?periodic_wave:Periodic_wave.t -> unit -> opts

opts () are oscillator node options with given parameters.

Sourcetype t

The type for OscillatorNode objects.

Sourceval create : ?opts:opts -> context -> t

create ~opts c creates an oscillator node.

Sourceval as_node : t -> node

as_node n is n as an audio node.

Sourceval type' : t -> Type.t

type' n is the type of n.

Sourceval set_type : t -> Type.t -> unit

set_type n v sets the type' of n to v.

Sourceval detune : t -> Param.t

detune n is the frequency detuning of n.

Sourceval frequency : t -> Param.t

frequency n is the frequency of n.

Sourceval set_periodic_wave : t -> Periodic_wave.t -> unit

set_periodic_wave n w sets the periodic wave of n to w.

Sourceval start : ?time:float -> t -> unit

start n starts node n.

Sourceval stop : ?time:float -> t -> unit

stop n stops node n.