Skip to main content

PUMP_CONVENTION

Constant PUMP_CONVENTION 

Source
pub const PUMP_CONVENTION: &str = "the full-band centred RMS in dB over two periods of the lowest \
note on a 1 ms hop, cut into beats of the used tempo from 0 s; a beat counts when the held part of \
one note covers it, from 50 ms or more before it, the held part running from the note's onset to \
its knee, or to 25 ms before its end without one; each counted beat is binned into 64 phase bins \
and taken relative to the 90th percentile of its bins, and the curve is the median over the beats; \
pump_depth_db is minus the curve's minimum; pump_recovery_s is the time from the minimum until the \
curve comes back within 1.5 dB, going on over the beat's wrap, null when it does not within one \
beat; pump_tau_ms is pump_recovery_s over ln(pump_depth_db / 1.5), in milliseconds, null unless \
the pump locks to the beat; pump_locked_to is note when the beats with a note onset inside, from \
50 ms before the beat, dip 3 dB or more and the others under 1.5 dB, each group of 2 beats or more; \
else free when the level swings 1 dB or more at a rate of 0.5 to 20 Hz that lies 50 cents or more \
from every note division; else beat when the curve dips 3 dB or more in one run of bins half its \
depth down, falls into its dip within 8 bins, reading on into the beat before, the odd and the even \
beats' own median curves do the same to half its depth at its dip, and half the beats fall by half \
its depth from their highest bin over the 8 bins before the 3 bins either side of the dip to their \
lowest within those; else none; the read at the period up to 2.81 % from the tempo's, \
by the longest run of counted beats, whose counted beats fold onto the deepest mean curve replaces \
this read if that reads beat and this one reads note, or reads beat and, when both strip \
or neither does, at a fold error, the standard deviation of the level minus the curve over the \
counted beats, each beat about its own mean, over 1 / 0.9 of that read's and 0.15 dB higher, or, \
when only one of the reads strips, that read strips and has the lower fold error, or reads free on a line within 60 cents of a division \
under a curve that falls faster than it recovers and takes 3 bins and half the level window from \
half its depth back to a quarter, or reads none under a curve that falls faster than it recovers \
and takes 3 bins from half its depth back to a quarter; \
the curve is stripped from the tracks of a note only when it locks to the beat over 8 counted beats \
or more and the median fall of the beats over the note reaches half the curve's depth, the beats \
counted again over each note to 25 ms before its end when the held parts give fewer \
or no pump; null with fewer than 4 counted beats";
Expand description

The convention of the pump.