Audio · interface

Band

The frequency bands every rhythm detector in the engine reads.

Explained in Your first game.

interface Band
import type { Band } from '@driftengine/audio';

In depth

One definition, shared by the offline analyser and the live detector, so "a kick" means the same thing whether it is being found ahead of time for an edit or reacted to in the moment for a light. Two sets of numbers that drifted apart would produce a replay whose cuts disagreed with the lights in the very footage they are cutting.

The split is finer than "bass / mid / treble" because the hard problem is not finding low energy, it is telling a kick apart from a sustained bassline sitting in nearly the same octave. sub/punch/sweet are the kick; bassline/mud are what has to be subtracted from it.

Properties

NameTypeDescription
lowHzreadonlynumber
highHzreadonlynumber