temporal-music-notation-demo-0.4.0: generates midi from score notation.

Safe HaskellNone

Temporal.Music.Demo

Contents

Description

Library provides functions to render Score made with the library 'temporal-music-notation' to midi file with the package HCodecs.

Synopsis

Documentation

type MidiNote = Note MidiIdSource

Instruments

instr :: Instr -> Score (Note a) -> Score MidiNoteSource

Apply midi instrument.

drumInstr :: Instr -> Score (Drum a) -> Score MidiNoteSource

Apply midi drum instrument.

Rendering

renderMidi :: Score MidiNote -> MidiSource

Render to Midi.

type FilePath = String

File and directory names are values of type String, whose precise meaning is operating system dependent. Files can be opened, yielding a handle which can then be used to operate on the contents of that file.

exportMidi :: FilePath -> Score MidiNote -> IO ()Source

Render Track to midi file and save results in current directory.