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

Constructors

Instances

  • Generic Note1 _

    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.

  • Show Note1
  • ToMusic1 Note1

#Music1 Source

#PV Source

data PV

Constructors

Instances

#pMap Source

pMap :: forall b a. (a -> b) -> Primitive a -> Primitive b

#mMap Source

mMap :: forall b a. (a -> b) -> Music a -> Music b