chordsdetection
chordsdetection(
@hopsize 2048
@samplerate 44100
@windowsize 2
@mode 0
) -> llll
Generates an audio descriptor to perform chord estimation on a buffer.
The resulting buffer will be updated with the following keys:
chordsdetection
info
chordsdetection
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
@hopsize
[int]: the hop size with which the input PCPs were computed (default:2048
).@samplerate
[float]: the sampling rate of the audio signal [Hz] (default:44100
).@windowsize
[float]: the size of the window on which to estimate the chords [s] (default:2
).@mode
[int]: Analysis mode. (default:0
).0
: Global1
: Time series2
: Time-tagged time series
Output
Chordsdetection descriptor [llll]
Usage
chordsdetection
is meant to be used with the analyze
function:
$buffer = importaudio('singing.wav'); ## input buffer
$descr = chordsdetection(); ## generate chordsdetection audio descriptor
$buffer.view('before analysis');
$buffer = $buffer.analyze($descr); ## apply analysis
$buffer.view('after analysis')