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
.
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 |
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 |
Returns:
- Type
- Number