Copyright | (c) Hans Hoglund 2012-2014 |
---|---|
License | BSD-style |
Maintainer | hans@hanshoglund.se |
Stability | experimental |
Portability | non-portable (TF,GNTD) |
Safe Haskell | None |
Language | Haskell2010 |
- class HasLilypondInstrument a where
- getLilypondClef :: a -> Int
- data Lilypond
- data LyContext a = LyContext Duration (Maybe a)
- type HasLilypond a = (HasBackendNote Lilypond (BackendScoreEvent Lilypond a), HasBackendScore Lilypond a)
- toLilypond :: HasLilypond a => a -> LyMusic
- toLilypondString :: HasLilypond a => a -> String
- showLilypond :: HasLilypond a => a -> IO ()
- openLilypond :: HasLilypond a => a -> IO ()
- writeLilypond :: HasLilypond a => FilePath -> a -> IO ()
- data LilypondOptions
- openLilypond' :: HasLilypond a => LilypondOptions -> a -> IO ()
- writeLilypond' :: HasLilypond a => LilypondOptions -> FilePath -> a -> IO ()
Lilypond backend
class HasLilypondInstrument a where Source
Extract instrument info as per Music.Part This is really crude, needs rethinking!
getLilypondClef :: a -> Int Source
A token to represent the Lilypond backend.
Context passed to the note export. Includes duration and note/rest distinction.
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 -> LyMusic Source
Convert a score to a Lilypond representation.
toLilypondString :: HasLilypond a => a -> String Source
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.