/** The volume of a track of a song (#334), in decibels; at the lowest it is silent. */ export const TRACK_MIN_DB = -60; export const TRACK_MAX_DB = 12; export function dbToGain(db: number): number { return db <= TRACK_MIN_DB ? 0 : 10 ** (db / 20); }