Portability | non-portable (TF,GNTD) |
---|---|
Stability | experimental |
Maintainer | hans@hanshoglund.se |
Safe Haskell | None |
- type Lilypond = Music
- class Tiable a => HasLilypond a where
- getLilypond :: Duration -> a -> Lilypond
- getLilypondChord :: Duration -> [a] -> Lilypond
- getLilypondWithPrefix :: Duration -> a -> (Lilypond -> Lilypond, Lilypond)
- getLilypondChordWithPrefix :: Duration -> [a] -> (Lilypond -> Lilypond, Lilypond)
- toLilypond :: (HasLilypond a, HasPart' a, Semigroup a) => Score a -> Lilypond
- toLilypondString :: (HasLilypond a, HasPart' a, Semigroup a) => Score a -> String
- showLilypond :: (HasLilypond a, HasPart' a, Semigroup a) => Score a -> IO ()
- openLilypond :: (HasLilypond a, HasPart' a, Semigroup a) => Score a -> IO ()
- writeLilypond :: (HasLilypond a, HasPart' a, Semigroup a) => FilePath -> Score a -> IO ()
- data LilypondOptions
- writeLilypond' :: (HasLilypond a, HasPart' a, Semigroup a) => LilypondOptions -> FilePath -> Score a -> IO ()
- openLilypond' :: (HasLilypond a, HasPart' a, Semigroup a) => LilypondOptions -> Score a -> IO ()
Documentation
class Tiable a => HasLilypond a whereSource
Class of types that can be converted to Lilypond.
getLilypond :: Duration -> a -> LilypondSource
Convert a value to a Lilypond music expression.
getLilypondChord :: Duration -> [a] -> LilypondSource
getLilypondWithPrefix :: Duration -> a -> (Lilypond -> Lilypond, Lilypond)Source
getLilypondChordWithPrefix :: Duration -> [a] -> (Lilypond -> Lilypond, Lilypond)Source
HasLilypond Double | |
HasLilypond Float | |
HasLilypond Int | |
HasLilypond Integer | |
Integral a => HasLilypond (Ratio a) | |
HasLilypond a => HasLilypond (Behavior a) | |
HasLilypond a => HasLilypond (TieT a) | |
HasLilypond a => HasLilypond (ChordT a) | |
HasLilypond a => HasLilypond (DynamicT a) | |
HasLilypond a => HasLilypond (ArticulationT a) | |
HasLilypond a => HasLilypond (SlideT a) | |
HasLilypond a => HasLilypond (HarmonicT a) | |
HasLilypond a => HasLilypond (TextT a) | |
HasLilypond a => HasLilypond (TremoloT a) | |
HasLilypond a => HasLilypond (ClefT a) | |
HasLilypond a => HasLilypond (PartT n a) |
toLilypond :: (HasLilypond a, HasPart' a, Semigroup a) => Score a -> LilypondSource
Convert a score to a Lilypond representation.
toLilypondString :: (HasLilypond a, HasPart' a, Semigroup a) => Score a -> StringSource
Convert a score to a Lilypond string.
showLilypond :: (HasLilypond a, HasPart' a, Semigroup a) => Score a -> IO ()Source
Convert a score to a Lilypond representaiton and print it on the standard output.
openLilypond :: (HasLilypond a, HasPart' a, Semigroup a) => Score a -> IO ()Source
Typeset a score using Lilypond and open it.
writeLilypond :: (HasLilypond a, HasPart' a, Semigroup a) => FilePath -> Score a -> IO ()Source
Convert a score to a Lilypond representation and write to a file.
Options
writeLilypond' :: (HasLilypond a, HasPart' a, Semigroup a) => LilypondOptions -> FilePath -> Score a -> IO ()Source
Convert a score to a Lilypond representation and write to a file.
openLilypond' :: (HasLilypond a, HasPart' a, Semigroup a) => LilypondOptions -> Score a -> IO ()Source