API_functions

Functions

addPlugin

â–¸ addPlugin(pluginClassName: string): string

Tries to find a class (prototype) with the name of a given string (reflection), then tries to cast it to a valid plugin class. If both worked, a plugin instance will be created, registered etc. and the item-id will be returned

Parameters:

NameTypeDescription
pluginClassNamestringThe name of the class from which a plugin instance should be created

Returns: string


addPluginClass

â–¸ addPluginClass(PluginClass: IPluginConstructor): void

Parameters:

NameType
PluginClassIPluginConstructor

Returns: void


addSeqPart

â–¸ addSeqPart(lengthInStepsPerBar?: undefined | number): string

Parameters:

NameType
lengthInStepsPerBar?undefined | number

Returns: string


connectPlugins

â–¸ connectPlugins(connection: [AudioEndpoint, AudioEndpoint]): void

Connects two audio endpoints and dispatches the new state. If the id of the input plugin is not valid, it connects to the soundcard input. If the id of the output plugin is not valid, it cancels the operation.

Parameters:

NameTypeDescription
connection[AudioEndpoint, AudioEndpoint]Audio endpoints to be connected

Returns: void


dispatch

â–¸ dispatch(action: Action): void

Parameters:

NameType
actionAction

Returns: void


getActionCreators

â–¸ getActionCreators(itemId: string): ActionCreatorsMapObject

Parameters:

NameType
itemIdstring

Returns: ActionCreatorsMapObject


getAudioContext

â–¸ getAudioContext(): AudioContext

Returns: AudioContext


getPluginClassNames

â–¸ getPluginClassNames(): string[]

Returns: string[]


getState

â–¸ getState(): IState

Returns: IState


getUnboundActionCreators

â–¸ getUnboundActionCreators(itemId: string): ActionCreatorsMapObject

Parameters:

NameType
itemIdstring

Returns: ActionCreatorsMapObject


removePlugin

â–¸ removePlugin(itemId: string): void

Parameters:

NameType
itemIdstring

Returns: void


removePluginClass

â–¸ removePluginClass(className: string): boolean

Parameters:

NameType
classNamestring

Returns: boolean


removeSeqPart

â–¸ removeSeqPart(itemId: string): void

Parameters:

NameType
itemIdstring

Returns: void


resumeAudioContext

â–¸ resumeAudioContext(): void

Returns: void

Object literals

pluginClasses

â–ª Const pluginClasses: object

Properties:

NameTypeValue
DelayIPluginConstructorIPluginConstructor
SamplerIPluginConstructorIPluginConstructor
SequencerIPluginConstructorIPluginConstructor
SynthIPluginConstructorIPluginConstructor