Module
Data.Euterpea.Midi.MEvent
- Package
- purescript-school-of-music
- Repository
- newlandsvalley/purescript-school-of-music
#Performance Source
type Performance = List MEvent
#perform1 Source
perform1 :: Music1 -> Performance
#perform1Dur Source
perform1Dur :: Music1 -> Tuple Performance DurT
#merge Source
merge :: Performance -> Performance -> Performance
#musicToMEvents Source
musicToMEvents :: MContext -> Music1 -> Tuple Performance DurT
#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
applyControls :: Music1 -> Music1
#phraseToMEvents Source
phraseToMEvents :: MContext -> List PhraseAttribute -> Music1 -> Tuple Performance DurT
This is an horrendous function!