Skip to content

Audio file

The audio file plugin decodes an audio file with Qt Multimedia (FFmpeg backend), analyses it, then plays it back and delivers the analysis as signals in step with the sound. It gives you a real, repeatable data source with fast-moving values and no hardware: good for building and testing dashboards.

You can run several instances at once, each with its own file.

FieldTypeDefaultNotes
Audio filefileempty.mp3, .wav, .flac, .ogg, .m4a or .aac. Up to 20 minutes long
PlaybackcomboOnOff analyses and paces the file in silence
Volumeslider700 – 100, on a perceptual scale. Shown with Playback on
LoopcomboOnOff disconnects the interface at the end of the file
Band layoutcomboOctaveOctave (10 bands) or Third-octave (31 bands)
Placeholder image

The signal list is generated from the band layout. You do not load or discover signals, and a signal file has no effect.

SignalUnitRangeTypeWhat it is
LevelL, LevelRdBFS−60 to 0float64RMS level per channel. A full-scale sine reads −3
PeakL, PeakRdBFS−60 to 0float64Sample peak per channel
Correlation−1 to 1float64Stereo phase: 1 mono, 0 wide, below 0 out of phase. 0 when either channel is silent
CentroidHz0 to 10 000float64Spectral centroid, the brightness of the sound
OnsetStrength0 to 1float64Spectral flux, normalised to the file. Spikes on hits
BeatboolTrue for one sample on each detected onset
Progress%0 to 100float64Position in the file
Band<f>HzdB−60 to 0float64Level of one frequency band. A full-scale sine in the band reads 0

The bands are named by their nominal centre frequency:

  • Octave: Band31Hz, Band63Hz, Band125Hz … Band16000Hz, 10 signals.
  • Third-octave: Band20Hz, Band25Hz, Band31Hz … Band20000Hz, the 31 ISO 266 centres.

So an interface has 19 signals in Octave and 40 in Third-octave. Changing the layout replaces the signal list on the next connect, so rebind any band widgets afterwards.

On Connect, the plugin decodes the whole file to 48 kHz stereo and analyses it before playing. The interface shows Connecting meanwhile; a long file takes a moment.

  • Mono is copied to both channels; files with more channels are reduced to stereo.
  • The analysis runs every 1024 samples, so each signal gets about 47 values a second.
  • Each value is released when its audio is heard, and timestamped then. With Playback off, the clock is elapsed time instead of the sound card, at the same pace.
  • Levels, peaks and bands rise instantly and fall at about 67 dB per second, like a meter, so bars are readable. Silence reads −60, never minus infinity.
  • OnsetStrength and Beat are relative to the whole file. A quiet passage still shows its hits, and one freak transient does not flatten the rest.

The raw console shows one line per value, for example t=12.34s L=-18.2 R=-17.9 centroid=2140Hz onset=0.42 BEAT.

SymptomWhere to look
No audio file selectedPick a file in Audio file
Audio file not foundThe file moved or was renamed since you picked it
Could not decode …The format or codec is not supported. Convert it to .wav or .flac
Audio file is longer than 20 minutesTrim the file
No audio output device - continuing without soundNo sound card. Signals still flow, paced by elapsed time
Signals flow but no soundPlayback is off, Volume is 0, or the output device cannot play the decoded format. The event log says which
The interface disconnects by itselfLoop is off and the file ended
  • Files only. There is no live microphone or line input.
  • The whole file is held in memory while connected, which caps it at 20 minutes.
  • Mono analysis for bands, centroid and onsets: the two channels are mixed first.