Members
(constant) noteSources
Audio source functions for different audio generation techniques
Methods
addOscillator(presetopt)
Adds a new oscillator panel to the UI window
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
preset |
Preset |
<optional> |
addPreset(preset)
Saves a preset to the custom presets list.
Parameters:
| Name | Type | Description |
|---|---|---|
preset |
Preset | The preset to be saved |
Throws:
Unnamed presets can't be saved
changeCurrentView(viewId)
Hides all audio source UI except the one with the matching ID
Parameters:
| Name | Type | Description |
|---|---|---|
viewId |
string |
getPresetInfo() → {Preset}
Marshall the UI information
Returns:
- Type
- Preset
loadPersistentState()
Reload data from the previous session, if it exists
loadPreset(preset)
Load the settings of a preset to the page
Parameters:
| Name | Type | Description |
|---|---|---|
preset |
Preset | The preset to load |
releaseAllNotes()
Release all currently playing notes
removePreset()
Remove the currently selected preset
setupControllerListeners(channelopt)
Sets up event listeners to link MIDI events with the appropriate actions
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
channel |
string | number |
<optional> |
'all' | MIDI channel to listen for events on |
stopAllSound()
Stop all sound immediately
updateChordDisplay()
Sync the chord displayed in the UI with the currently playing notes
updateCustomPresets(presets, target)
Attach preset
Parameters:
| Name | Type | Description |
|---|---|---|
presets |
Array.<Preset> | |
target |
DOMElement |
updateEnvelope()
Sync the envelope object to the UI
updateEnvelopeControls()
Sync the UI to a modified envelope object