pub const KNEE_BACK: f64 = 1.25;Expand description
The least ratio of a next note’s held level to the level at the last clear frames.
A later corner past the frames that show a note alone belongs to the next note
when the level there, the mean over their last KNEE_SIDE_MIN, has fallen under
KNEE_FLOOR of the earlier corner’s level and has come back: the mean over the
KNEE_LEFT frames before the corner is at least 1.25 times the stop level, and
the left line’s end lies above it too.
A held sustain reads near 1: a ripple of 1 % or a slow rise must not decide it. A transcribed note whose level rises over 10 frames into its note-off reads 1.08. A next note after a silent gap reads mostly 1 to 3 on generated bass lines, so a higher value loses most of their knees.