Changes the peak buffer's enqueueing behavior; It now behaves like a peak meter, by immediately snapping to values greater than its previous value, but decaying in amplitude if the current value is less than the previous one.
Changes:
Adds peek() method to the RingBuffer
Adds decay and decay weight fields to the PeakBuffer
Adds update() method to the PeakBuffer, for updating both the sample delta and decay weight
The PeakBuffer's sample rate is now left uninitialized until set_sample_rate is called.
Breaking Change
The parameter list for PeakBuffer::new() has now changed:
As an example, this is how you could adapt to this new parameter list if you have a PeakBuffer that you initialize inside your plug-in's default() function.
Implements decay for the peak buffer.
Changes the peak buffer's enqueueing behavior; It now behaves like a peak meter, by immediately snapping to values greater than its previous value, but decaying in amplitude if the current value is less than the previous one.
Changes:
peek()
method to theRingBuffer
PeakBuffer
update()
method to thePeakBuffer
, for updating both the sample delta and decay weightPeakBuffer
's sample rate is now left uninitialized untilset_sample_rate
is called.Breaking Change
The parameter list for
PeakBuffer::new()
has now changed:As an example, this is how you could adapt to this new parameter list if you have a
PeakBuffer
that you initialize inside your plug-in'sdefault()
function.