barkbands
barkbands(
@numberbands 27
@samplerate 44100
@mode 0
) -> llll
Generates an audio descriptor to compute the Bark bands of a spectrum. For each bark band the power-spectrum—i.e., mag-squared—is summed.
The resulting buffer will be updated with the following keys:
barkbands
info
barkbands is a mirror implementation of the same algorithm in the Essentia library.
For more details on the algorithm, please check the Essentia Algorithms reference.
Arguments
@numberbands[int]: Number of desired barkbands. (default:27).@samplerate[int]: Sampling rate. (default:44100).@mode[int]: Analysis mode. (default:0).0: Global1: Time series2: Time-tagged time series3: Buffer
Output
Barkbands descriptor [llll]
Usage
barkbands is meant to be used with the analyze function:
$buffer = importaudio('singing.wav'); ## input buffer
$descr = barkbands(); ## generate barkbands audio descriptor
$buffer.view('before analysis');
$buffer = $buffer.analyze($descr); ## apply analysis
$buffer.view('after analysis')