elm-music/music-theory

Notation Validation

Opened this issue · 0 comments

Currently you can create instances of Notation a that represent invalid/incorrect music scores.

  • E.g. wrong duration per bar according to specified time signature
  • Staffs with multiple voices with different time signatures
  • Tied notes with missing successor
  • ...

A validation function for Notation a might be useful:

validate : Notation a -> Result NotationError (Notation a)