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

Mellow D truth #2

Closed
SpencerPark opened this issue Nov 19, 2016 · 1 comment
Closed

Mellow D truth #2

SpencerPark opened this issue Nov 19, 2016 · 1 comment

Comments

@SpencerPark
Copy link
Owner

SpencerPark commented Nov 19, 2016

Decide on truth values for the types in the language. Document these in some sort of table.

type true false
note not a rest rest
number > 0 0
boolean true false
reference defined undefined

Comparisons

Only supported between like types. Otherwise an exception is raised.

  • beat: longer duration is larger than shorter duration
  • Rhythm: radix comparison of beats
  • note: higher pitch is larger than lower pitch, rest pitch is absolute lowest
  • chord: radix comparison of notes
  • melody: radix comparison of elements. If different a chord is always larger than a note
@SpencerPark SpencerPark mentioned this issue Nov 19, 2016
3 tasks
@SpencerPark SpencerPark added TODO and removed TODO labels Nov 20, 2016
@SpencerPark
Copy link
Owner Author

Evaluation implemented in 81bfcdf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

1 participant