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

Safe HaskellSafe-Infered

Temporal.Music.Demo

Contents

Description

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

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.