Skip to main content

is_music21_work_id

Function is_music21_work_id 

Source
pub fn is_music21_work_id(name: &str) -> bool
Expand description

Whether a name is one of the work ids music21 wrote before v8, such as date: music21’s ALL_MUSIC21_WORK_IDS.

use music21::metadata::is_music21_work_id;

assert!(is_music21_work_id("date"));
assert!(!is_music21_work_id("dateDestroyed"));