rhythm
rhythm(
@maxtempo 208
@mintempo 40
@method 'multifeature'
) -> llll
Audio descriptor for extract the beat positions and estimate their confidence as well as tempo in bpm for a buffer.
The resulting buffer will be updated with the following keys:
rhythm_bpmrhythm_ticksrhythm_estimatesrhythm_intervals
info
rhythm 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
@maxtempo[int]: Fastest tempo to detect, between 60 and 250. (default:208).@mintempo[int]: Slowest tempo to detect, between 40 and 180. (default:40).@method[symbol]: Method used for beat tracking. (default:'multifeature').'degara': Degara method'multifeature': Multifeature method
Output
Rhythm descriptor [llll]
Usage
rhythm is meant to be used with the analyze function:
$buffer = importaudio('singing.wav'); ## input buffer
$descr = rhythm(); ## generate rhythm audio descriptor
$buffer.view('before analysis');
$buffer = $buffer.analyze($descr); ## apply analysis
$buffer.view('after analysis')