Namespace: syngen

syngen

The global point of entry and default export for the framework.

Source:

Namespaces

buffer
circuit
const
ear
effect
fn
formant
input
loop
mixer
performance
position
seed
shape
state
synth
tool

Methods

(static) context() → {AudioContext}

Returns the main AudioContext.

Source:
Returns:
Type
AudioContext

(static) ready(callbackopt) → {Promise}

Returns a promise that resolves when the document has finished loading.

Parameters:
Name Type Attributes Description
callback function <optional>

Called when resolved

Source:
Returns:
Type
Promise

(static) time(durationopt) → {Number}

Returns the currentTime for the main AudioContext plus an optional duration.

Parameters:
Name Type Attributes Default Description
duration Number <optional>
0
Source:
Returns:
Type
Number