Safe Haskell | Safe-Inferred |
---|
Parse the tscore language.
Synopsis
- parse_score :: Text -> Either String T.Score
- parse_allocation :: Text -> Either String Instruments.Allocation
- unparse_allocations :: [Instruments.Allocation] -> Text
- default_call :: Text
- default_namespace :: Id.Namespace
- show_block :: Id.BlockId -> Text
- show_block_track :: Id.BlockId -> TrackNum -> Text
- dot_note :: T.Note T.CallText (T.NPitch T.Pitch) T.NDuration
- tie_note :: T.Note T.CallText (T.NPitch T.Pitch) T.NDuration
- strip_comment :: Text -> Text
Parse
default_call :: Text Source #
show_block :: Id.BlockId -> Text Source #
show_block_track :: Id.BlockId -> TrackNum -> Text Source #
Note
dot_note :: T.Note T.CallText (T.NPitch T.Pitch) T.NDuration Source #
This note is treated specially by the Check layer, to repeat of the previous note.
tie_note :: T.Note T.CallText (T.NPitch T.Pitch) T.NDuration Source #
This note is treated specially by the Check layer, to repeat of the previous note, plus put a tie on the previous note.
util
strip_comment :: Text -> Text Source #
Orphan instances
Pretty T.Barline Source # | |
Pretty T.Call Source # | |
Pretty T.Octave Source # | |
Pretty T.Pitch Source # | |
Pretty (T.Rest T.Duration) Source # | |
pretty :: T.Rest T.Duration -> Text Source # format :: T.Rest T.Duration -> Doc Source # formatList :: [T.Rest T.Duration] -> Doc Source # | |
Pretty (T.Note T.CallText T.Pitch T.NDuration) Source # | |
pretty :: T.Note T.CallText T.Pitch T.NDuration -> Text Source # format :: T.Note T.CallText T.Pitch T.NDuration -> Doc Source # formatList :: [T.Note T.CallText T.Pitch T.NDuration] -> Doc Source # | |
Pretty (T.Note T.CallText (Maybe Text) T.Time) Source # | This is the output from Check.check. |
Pretty (T.Token T.CallText T.Pitch T.NDuration T.Duration) Source # | |