flag Keep in mind that essentially all the
.jsexamples in the entire example-set use theMusicAPI.Here you'll find simple getting-started, hello-world-like examples of various uses of the MusicAPI.
These examples are all well-commented and fairly compact. We'll let the code speak for itself. These examples are ordered to present the basic MusicAPI architecture.
| Example | Description |
|---|---|
helloAengine.js |
Create an audio engine. Wait, shut it down. * |
helloAscene.js |
Create an audio scene, show its DAC. * |
helloAnode.js |
Create an audio node, raise its interface, produce some sounds. |
helloMIDI.js |
Demonstrate how to deliver MIDI input notes to an anode. |
noteexpr.js |
Shows how to deliver note-expression events (like pan, frequency, etc) to individual notes. Note that this capability has limited support via MIDI and therefore works best with Hz.Plugins. |
*: produces no sound.