music-score-1.7.1: Musical score and part representation.

Portabilitynon-portable (TF,GNTD)
Stabilityexperimental
Maintainerhans@hanshoglund.se
Safe HaskellNone

Music.Score.Export.Lilypond

Contents

Description

 

Synopsis

Lilypond backend

class HasLilypondInstrument a whereSource

Extract instrument info as per Music.Part This is really crude, needs rethinking!

Methods

getLilypondClef :: a -> IntSource

data LyContext a Source

Context passed to the note export. Includes duration and note/rest distinction.

Constructors

LyContext Duration (Maybe a) 

Instances

Functor LyContext 
Foldable LyContext 
Traversable LyContext 
Eq a => Eq (LyContext a) 
Show a => Show (LyContext a) 

type HasLilypond a = (HasBackendNote Lilypond (BackendScoreEvent Lilypond a), HasBackendScore Lilypond a)Source

Constraint for types that has a Lilypond representation.

Converting to Lilypond

toLilypond :: HasLilypond a => a -> MusicSource

Convert a score to a Lilypond representation.

toLilypondString :: HasLilypond a => a -> StringSource

Convert a score to a Lilypond string.

Lilypond I/O

showLilypond :: HasLilypond a => a -> IO ()Source

Convert a score to a Lilypond representaiton and print it on the standard output.

openLilypond :: HasLilypond a => a -> IO ()Source

Typeset a score using Lilypond and open it. (This is simple wrapper around writeLilypond that may not work well on all platforms.)

writeLilypond :: HasLilypond a => FilePath -> a -> IO ()Source

Convert a score to a Lilypond representation and write to a file.

Customize Lilypond backend

openLilypond' :: HasLilypond a => LilypondOptions -> a -> IO ()Source

Typeset a score using Lilypond and open it. (This is simple wrapper around writeLilypond that may not work well on all platforms.)

writeLilypond' :: HasLilypond a => LilypondOptions -> FilePath -> a -> IO ()Source

Convert a score to a Lilypond representation and write to a file.