Skip to content

Offline tools

./kotlin run -m tools -- sparse 1 /tmp/sparse.wav   # silent | sparse | busy, hours, output [seed] [--at <UTC instant>] [--genre <id>] [--channels 2.0|5.1|7.1] [--tune key=value]
./kotlin run -m tools -- analyze /tmp/sparse.wav    # per-window peak, RMS, clipping, centroid, LUFS, low band, pulse, rests
./kotlin run -m tools -- video 90 /tmp/demo.mp4     # the app's engine and scene rendered offline to H.264 and AAC (needs ffmpeg; --nodes, --speed, --seed, --at, --warmup, --fps, --size WxH, --brightness 0-100, --genre <id>, --visual <id>, --tune key=value)
./kotlin run -m tools -- midi 3600 /tmp/mesh.mid    # the composer's notes as a Standard MIDI File (MPE; --range 2, --layout two, --nodes, --speed, --seed, --at, --allowance, --genre <id>, --tune key=value)
./kotlin run -m blescan -- 15                       # scan for nodes for 15 s, print what is found

The render tool runs the simulated mesh through the composer and synth offline. Real captures stay local (captures/ is ignored).

Loudness

Every genre's offline render meets one target, and tools/test/LoudnessTargetTest.kt holds it: on a busy mesh, -16 LUFS integrated (BS.1770, within 2 LU; AES TD1008's level for music streams), on a sparse mesh between -24 and -16 LUFS (a groove genre keeps its beat on a quiet mesh, so it sits closer to its busy level than ambient does), and true peak at or below -1 dBTP on both. The synth's master gain sets the level ahead of the shared PeakLimiter, whose ceiling of about -1.9 dBFS keeps the peaks between samples under -1 dBTP; the limiter should catch only the loudest peaks, not hold the whole mix down. The form's slide toward its trough is the energy arc and lies outside the target. A new genre is measured by the same test once it is registered in Genres.