methods and metadata are how i'm going to handle things like clefs, authorship, slurs, etc.
-- "Twinkle Twinkle Little Star"
fn main(): list list pitch_rhythm {
list list pitch_rhythm ret = [
[
d4 quarter, d4 quarter, a4 quarter, a4 quarter,
b4 quarter, b4 quarter, a4 half,
g4 quarter, g4 quarter, f#4 quarter, f#4 quarter,
e4 quarter, e4 quarter, d4 half ],
[
d2 whole,
g2 whole,
b2 whole,
a2 half, d2 half
]];
-- i think property or method syntax will be the best way forward regarding clefs and metadata
ret[0].clef = treble;
ret[0].instrument = flute;
ret[1].clef = bass;
ret[1].instrument = contrabass;
}
methods and metadata are how i'm going to handle things like clefs, authorship, slurs, etc.