Skip to main content

is_flag_field

Function is_flag_field 

Source
pub fn is_flag_field(field: &str) -> bool
Expand description

Whether a field combines with another tuple’s by the larger of the two in add and the smaller in sub, as atEnd and isNotGrace do, rather than by adding or subtracting.

use music21::sorting::is_flag_field;

assert!(is_flag_field("atEnd"));
assert!(!is_flag_field("offset"));