Skip to main content

op_frac

Function op_frac 

Source
pub fn op_frac(value: FloatType) -> FloatType
Expand description

Snaps an offset as music21’s opFrac does, to the nearest fraction with a denominator up to 65535, so that three triplets end on the beat. A negative offset is snapped as its size is.