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

Safe HaskellSafe-Infered

Temporal.Music.Notation.Demo

Contents

Description

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

Synopsis

Types

Instruments

instr :: (Seg nVol, Seg nPch) => Preset -> Score (Note nVol nPch a) -> Score MidiEventSource

Apply midi instrument.

drumInstr :: Seg nVol => Key -> Score (Drum nVol a) -> Score MidiEventSource

Apply midi drum instrument.

Render

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 MidiEvent -> IO ()Source

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