Marble Machine — The Marbleworks
README.md
mmaudio
Runtime audio surface for The Marbleworks. The 23 clips under
marbleworks/audio/ are synthesized WAVs (16-bit PCM mono, 22 kHz) promoted
to soundClips by the importer: marble clacks, part cues, five pentatonic
chimes, goal/win/lose jingles, UI ticks, an ambient workshop hum, a rolling
loop whose volume follows total marble speed, and a 12-second cozy music
loop (I-vi-IV-V arpeggios).
init(settings) resolves the clips and spawns pooled spatial one-shot
emitters plus looping music/hum/roll beds. playAt(name, pos?, vol?, pitch?)
plays spatially at a position or globally when pos is nil.
applyVolumes(settings) and setRolling(intensity, pitch) drive the beds.