Class: CsoundAudioNode

CsoundAudioNode()

Provides the Csound API as in csound_threaded.hpp, but implemented in WebAssembly. For a more complete description of what these functions do, see csound_threaded.hpp in the Csound GitHub repository, and of course the Csound API Reference. The semantics of all functions are virtually identical and the signatures are as equivalent as I could make them.

To conform with CsoundObj, method names in camel case are now primary, method names in initial caps defer to them.

Constructor

new CsoundAudioNode()

Source:

Methods

performCsd()

Because AudioWorklet messages are asynchronous, a sequence of method calls cannot be guaranteed to execute in proper order. Hence, this helper.

Source:

performOrc()

Because AudioWorklet messages are asynchronous, a sequence of method calls cannot be guaranteed to execute in proper order. Hence, this helper.

Source:

(async) start()

First connects to the default WebAudio output and the WebAudio context's media source input, if it exists, and the MIDI input, if it exists, then starts the Csound performance. Wiring into the Web Audio graph is up here in the upper half, wiring within Csound is down in the lower half.

Source:

startNode()

Starts the Csound performance with or without any connection to the Web Audio signal flow graph. Such connections may be created in the usual manner for constructing Web Audio graphs, either before, or after, calling StartNode.

Source: