CH·01 Interactive music
verified 2026-08-01

16BarLogicGame active

yusufuca vunknown added 2026-08-01 verified 2026-08-01

[Use when]

You need quantized, bar-locked adaptive music transitions across multiple game states in Unity + FMOD without mid-bar cuts.

Engines
U Unity FM FMOD
License

Unlicensed

Pricing

Free

Last verified

2026-08-01

Added

2026-08-01

about

16BarLogicGame is a Unity/FMOD adaptive music system built around a seven-state finite state machine (Idle, Explore, Combat, Anxiety, Epic, Win, Die). Each state drives a dedicated FMOD transition loop, and all state changes are held in a queue until the current bar boundary is reached — the system reads FMOD's timeline position, calculates bar length from BPM, and fires the transition at the exact bar edge.

Priority locking prevents lower-intensity states from interrupting high-priority states (e.g., Anxiety blocks queued Explore or Combat transitions until it resolves). Custom timers govern nuanced exit conditions, such as delaying Combat exit until a configurable post-encounter window elapses.

The repo includes a playable Unity scene with combat and spawner scaffolding for exercising all state transitions. It targets Unity 2022.3 with FMOD Studio integration.