larm
larm(
@attacktime 10
@power 1.5
@releasetime 1500
@samplerate 44100
@mode 0
) -> llll
Generates audio descriptor to estimate the long-term loudness of a buffer. See analyze
.
The resulting buffer will be updated with the following keys:
larm
info
larm
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
@attacktime
[int]: attack time of the first order lowpass in the attack phase. (default:10
).@power
[int/float]: power used for averaging. (default:1.5
).@releasetime
[int]: release time of the first order lowpass in the release phase. (default:1500
).@samplerate
[int]: sampling rate. (default:44100
).@mode
[int]: analysis mode. (default:0
).0
: global1
: time series2
: time-tagged time series3
: buffer
Output
larm descriptor [llll]
Usage
larm
is meant to be used with the analyze
function:
$buffer = importaudio('singing.wav'); ## input buffer
$descr = larm(); ## generate larm audio descriptor
$buffer.inspect('before analysis');
$buffer = $buffer.analyze($descr); ## apply analysis
$buffer.inspect('after analysis')