music-preludes-1.9.0: Some useful preludes for the Music Suite.

Copyright(c) Hans Hoglund 2012
LicenseBSD-style
Maintainerhans@hanshoglund.se
Stabilityexperimental
Portabilitynon-portable (TF,GNTD)
Safe HaskellNone
LanguageHaskell2010

Music.Prelude.CmdLine

Description

Provides framework for building simple command-line converter programs such as music2midi, music2pdf etc.

Synopsis

Documentation

converterMain Source

Arguments

:: String

Name of converter function.

-> String

Extension of generated file.

-> IO () 

Generates a basic converter program such as music2ly, music2musicxml etc.

lilypondConverterMain Source

Arguments

:: String

A file extension (supported by Lilypond).

-> IO () 

Generates a basic converter program that invokes lilypond to generate music notation. Used for music2pdf etc.

translateFile Source

Arguments

:: String

Translate function (of type FilePath -> music -> IO ()).

-> String

Output file suffix.

-> Maybe String

Prelude to use.

-> Maybe FilePath

Input file.

-> Maybe FilePath

Output file.

-> IO () 

Translate an input file using the given paramters.

translateFileAndRunLilypond Source

Arguments

:: String

Output file suffix/format passed to Lilypond.

-> Maybe String

Prelude to use.

-> Maybe FilePath

Input file.

-> IO () 

Translate an input file and invoke Lilypond on the resulting output file.

version :: Version Source

Current Music Suite version.

versionString :: String Source

Current Music Suite version as a string.