Module

Data.Euterpea.Midi.MEvent

Package
purescript-school-of-music
Repository
newlandsvalley/purescript-school-of-music

#PTime Source

#DurT Source

type DurT = Rational

#MEvent Source

data MEvent

Constructors

Instances

#Performance Source

#MContext Source

data MContext

Constructors

Instances

#eTime Source

eTime :: MEvent -> PTime

where is this defined in Haskell Euterpea ?

#perform Source

perform :: forall a. ToMusic1 a => Music a -> Performance

#noteToMEvent Source

noteToMEvent :: MContext -> Dur -> Note1 -> MEvent

I don't yet understand the original HSoM noteToMEvent shown here this function sets MEvent charactersitics from the note pitch together with the current context. (The context has been set, for example, by applying the phrase attributes). However, when it comes to volume it just ignores the context volume and replaces it with the context from the note itself perhaps it would be better if modifying the volume Phrase Attribute provided a multiplier for the note volume and not simply a replacement I need to review the original Euterpea documentation

#applyControls Source

#phraseToMEvents Source

phraseToMEvents :: MContext -> List PhraseAttribute -> Music1 -> Tuple Performance DurT

This is an horrendous function!