Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Methods #7

Open
sezna opened this issue Feb 2, 2020 · 0 comments
Open

Methods #7

sezna opened this issue Feb 2, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@sezna
Copy link
Owner

sezna commented Feb 2, 2020

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;
}

@sezna sezna added the enhancement New feature or request label Feb 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant