pub fn language_dictionary(language: Language) -> Vec<(String, String)>Expand description
Every name a pitch has in language, each with the name this crate
spells it by: music21’s generateLanguageDictionary.
The names are read off the pitches themselves, as music21 reads them – the seven letters, each with up to four flats and four sharps, written in the language and paired with what was written – so there is one table and not two. A name two pitches share is the later of them, which is what music21’s dictionary keeps.
use music21::pitch::{Language, language_dictionary};
let german = language_dictionary(Language::German);
assert_eq!(german.len(), 63);
assert!(german.contains(&("H".to_string(), "B".to_string())));
assert!(german.contains(&("Es".to_string(), "E-".to_string())));