pub fn hash_quarter_length(length: FloatType) -> u8
music21’s hashQuarterLength: ten times the base-2 logarithm of a length in 256ths of a quarter, from 1 to 127, and 1 for no length.
hashQuarterLength