pub fn lyric_syllables(data: &str, targets: usize) -> Vec<(usize, String)>Expand description
music21’s addABCLyrics, as places: each syllable of a w: line and
which of targets notes since the line before it is sung to. * and
- skip a note; syllables past the last note are dropped.
use music21::abc::translate::lyric_syllables;
let sung = lyric_syllables("hel-lo * world", 3);
assert_eq!(sung, [(0, "hel-".to_string()), (1, "-lo".to_string())]);