music-notation-swift / music-notation-core

Music Notation Library in Swift (Deprecated. See `music-notation` instead)
MIT License
115 stars 16 forks source link

Make clef have properties for knowing layout of staff #91

Closed drumnkyle closed 7 years ago

drumnkyle commented 8 years ago

The clef should have the information of what line/space it passes through and what note it is. This way we can use that information in order to figure out what note each line and space of the staff is.

In order to represent all of this, the Clef will most likely be converted to being a struct instead of an enum as it currently stands.

Seems like we need to have a default line/space for each clef, but it can be moved. See Clefs for more info.

Also, we should probably have this octave clef concept that will most likely be an enum property of the clef.