Skip to main content

from_clercq_temperley

Function from_clercq_temperley 

Source
pub fn from_clercq_temperley(text: &str) -> Result<Stream>
Expand description

A song read into a part: music21’s CTSong(text).toPart().

use music21_rs::romantext::clercq_temperley::from_clercq_temperley;

let song = "% Simple Gifts\nVr: I | I |\nS: [A] $Vr\n";
let part = from_clercq_temperley(song)?;
assert_eq!(part.measures().len(), 2);

§Errors

A song with no S: rule, a rule naming one the song has not got, a dot with no chord before it, or a key, a meter or a figure the crate cannot read.