Module
Audio.SoundFont.Melody
- Package
- purescript-soundfonts
- Repository
- newlandsvalley/purescript-soundfonts
#MidiPhrase Source
type MidiPhrase = Array MidiNoteWe split up a melody into phrases to allow the player to be re-rendered after each phrase is played
#Melody Source
type Melody = Array MidiPhraseA Melody is simply an array of phrases where each phrase is an Array of notes that can be played using playNotes. It is also the entity that is played by the Halogen player widget.
#playPhrase Source
playPhrase :: Array Instrument -> MidiPhrase -> Aff UnitPlay a phrase of MidiNotes. This is identical to playNotes except that it invokes a delay equal to the duration of the phrase. This allows multiple phrased to be paced properly.
#playMelody Source
playMelody :: Array Instrument -> Melody -> Aff UnitPlay the entire Melody