Module
Data.Euterpea.Music1
- Package
- purescript-school-of-music
- Repository
- newlandsvalley/purescript-school-of-music
#Note1 Source
data Note1
We have difficulty with polymorphism in Music here Euterpea uses a Tuple as the means of expressing polymorphic values with the second element indicating the polymorphic value However Purescript disallows type classes for Type Synonyms such as Tuples Instead we use a data definition for Note1 which is not extensible polymorphically
A new type class to allow for musical polymorphism that ultimately must be converted to Music1 to be converted to MIDI format through the MEvent framework.