RNBO JavaScript API Reference
The @rnbo/js package is the main package for running RNBO Patchers within the Browser. Using the main entry point createDevice(), RNBO Devices can be created from RNBO Patchers and integrated into the WebAudio graph of your application.
For more examples of how to utilize the JavaScript API, check out our Working with JavaScript Learn articles.
Classes
Class | Description |
---|---|
RNBO BaseDevice class. | |
Common Base Event class for all RNBO Events. | |
BeatTimeEvent class to send transport beattime changes into a RNBO Device. | |
Helper class for retrieved binary data from a RNBO Patcher using | |
Parameter Class for describing and interacting with Enum Type Parameters in RNBO. Uses the CommonParameterMixin interface | |
The EventSubject class is used to enable the concept of listening and emitting events while maintaining type safety for the subscribing listeners. The generic type | |
MessageEvent class to send Message Events into a RNBO Device or receive events from a Device. | |
MIDIEvent class to send MIDI Events into a RNBO Device or receive events from a Device. | |
Parameter Class for describing and interacting with Number (Float) Type Parameters in RNBO Uses the CommonParameterMixin interface | |
PresetEvent class to receive Preset Touched events from a RNBO Device. | |
RNBO Device using a WebAudio ScriptProcessorNode for its processing. | |
TempoEvent class to send tempo changes into a RNBO Device. | |
TimeSignatureEvent class to send time signature changes into a RNBO Device. | |
TransportEvent class to send transport state changes into a RNBO Device. | |
RNBO Device using AudioWorklets for its processing. |
Enumerations
Enumeration | Description |
---|---|
Enum to identify the type of a Device via Also used within | |
Enum used to distinguish the type of events. See BaseEvent. | |
The type ( | |
Enum defining the available options for the parameter change event setting of a Device | |
Enum used to distinguish the type of a Parameter. | |
Enum used to distinguished the type of RNBOPresetEventAction | |
Enum containing the potential transport states | |
WASM Encodings |
Functions
Function | Description |
---|---|
The main entry point to @rnbo/js. Use the createDevice factory function to create Devices from your RNBO Patches. |
Interfaces
Interface | Description |
---|---|
The mixin base interface for all Parameters providing common functionality and attributes across all types of Parameters | |
Interface for the BaseEvent and the serialized version of it. | |
Interface for the BeatTimeEvent and the serialized version of it. | |
Interface describing the parameters passed to | |
Options for creating a RNBO BaseDevice | |
Generic Interface used for ListenerCallbacks alongside the EventSubject class. The IEventListener is hereby used to safely type the callback and the passed on event parameter. | |
Interface describing the return value of a call to
| |
Interface for the MessageEvent and the serialized version of it. | |
Interface for the MIDIEvent and the serialized version of it. | |
Parameter Description of a generated RNBO Patcher | |
Interface describing the generated RNBO Patcher Object. See the Working with TypeScript guide for some more information. | |
Patcher Description of a generated RNBO Patcher | |
Option Settings of a generated RNBO Patcher | |
Collection of parameter values as a RNBO Patcher Preset, mapping: | |
Interface for the PresetEvent and the serialized version of it. | |
Interface for the TempoEvent and the serialized version of it. | |
Interface for the TimeSignatureEvent and the serialized version of it. | |
Interface for the TransportEvent and the serialized version of it. | |
WorkletNode of a WorkletDevice extending AudioWorkletNode. |
Variables
Variable | Description |
---|---|
Constant representing the time "Now" | |
String representing the version of @rnbo/js in use. |
Type Aliases
Type Alias | Description |
---|---|
Mixin Constructor Helper | |
Conversion function to convert a normalized value to a real value | |
Conversion function to convert a real value to a normalized value | |
Union Device Type for handling ScriptDevice and WorkletDevice. | |
Possible value of an EnumParameter | |
Union Type for RNBO Event Classes | |
Used internally to route events based on their target. | |
Type of the ID of the External Data | |
Union type of ExternalDataInfoURL and ExternalDataInfoFile | |
The description of a message endpoint | |
The payload of a Message | |
The tag / identifier of a Message | |
A single byte of MIDIData | |
All time is measured in milliseconds | |
Union Type of all available Parameter Classes. | |
Type of the ID of a parameter |