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 |
Provides a representation for tied notes, and a class to split a single note into a pair of tied notes.
Tiable class
Class of types that can be tied. Ties are added to a score by splitting a single note into two and annotating them with a begin tie and end tie mark respectively.
Modify a note to be the first note in a tied note pair.
Modify a note to be the second note in a tied note pair.
Split a single note into a pair of tied notes.
The first returned element should have the original onset
and the second
element should have the original offset
. Formally
(onset . fst . toTied) a = onset a (offset . snd . toTied) a = offset a
isTieEndBeginning :: a -> (Bool, Bool) Source
isTieBeginning :: a -> Bool Source
Tiable Char | |
Tiable Double | |
Tiable Float | |
Tiable Int | |
Tiable Integer | |
Tiable () | |
Tiable ArticulationNotation | |
Tiable DynamicNotation | |
Tiable a => Tiable [a] | |
Tiable (Ratio a) | |
Tiable a => Tiable (Sum a) | |
Tiable a => Tiable (Product a) | |
Tiable a => Tiable (Maybe a) | |
Tiable a => Tiable (Score a) | |
Tiable a => Tiable (Behavior a) | |
Tiable a => Tiable (Average a) | |
Tiable a => Tiable (TieT a) | |
Tiable a => Tiable (SlideT a) | |
Tiable a => Tiable (TextT a) | |
Tiable a => Tiable (HarmonicT a) | |
Tiable a => Tiable (TremoloT a) | |
Tiable a => Tiable (ColorT a) | |
Tiable a => Tiable (c, a) | |
Tiable a => Tiable (Couple b a) | |
Tiable a => Tiable (PartT n a) | |
(Tiable n, Tiable a) => Tiable (DynamicT n a) | |
(Tiable n, Tiable a) => Tiable (ArticulationT n a) |