pub fn drop_quiet(
notes: &NoteList,
mono: &[f64],
rate: SampleRate,
gate: Decibels,
) -> (NoteList, usize)Expand description
Drops every note whose span holds no active frame of the stem, and returns the kept notes with the count of dropped ones.
A note’s frames run from the frame nearest its onset, which can be centred up to half a hop before it, to the last frame centred before its offset; a note shorter than a hop takes the frame nearest its onset.