/ Reference / Music API

Ascene . Agraph . Aengine
Anode . Modulator . Envelope
Songbook . Song . TimeKeeper
Voices . SampleMgr . StreamMgr
Loader . Async . Plot
Random . Rhythm . Util
MIDI . OSC . HID . Piano
Music Theory with Tonal

right-click to navigate to page sections


The idea is simple: we need a way to programatically trigger and evolve sounds synthesized by a combination of plugins and builtins. The plot thickens when we consider that our sounds have different durations and are often overlapping in time.

The Music API is a collection of classes, objects and methods that programmers can use to control Hz's audio engine. The API has similiarities to other music APIs including WebAudio, SuperCollider and ChucK. Currently we support both JavaScript and Lua bindings which bridge the gap between the underlying native audio engine and your scripts.

All sounds you hear coming from Hz are ultimately triggered by these APIs. Higher level interfaces like Hz Songbook rely on the lower-level interfaces presented here.

Dive In: AScene, ANode or Songbook.

See also: Choose Your Weapon for a discussion of the differences between JavaScript and Lua.

home .. topics .. interface .. reference .. examples .. tipjar