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

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

Music.Score.Ties

Description

Provides tie representation and splitting.

Synopsis

Documentation

class Tiable a whereSource

Class of types that can be tied.

Methods

beginTie :: a -> aSource

endTie :: a -> aSource

toTied :: a -> (a, a)Source

Split elements into beginning and end and add tie. Begin properties goes to the first tied note, and end properties to the latter.

newtype TieT a Source

Constructors

TieT 

Fields

getTieT :: (Bool, a, Bool)
 

Instances

Functor TieT 
Typeable1 TieT 
Foldable TieT 
Bounded a => Bounded (TieT a) 
Enum a => Enum (TieT a) 
Eq a => Eq (TieT a) 
(Real a, Enum a, Integral a) => Integral (TieT a) 
Num a => Num (TieT a) 
Ord a => Ord (TieT a) 
(Num a, Ord a, Real a) => Real (TieT a) 
Show a => Show (TieT a) 
IsDynamics a => IsDynamics (TieT a) 
IsPitch a => IsPitch (TieT a) 
HasPitch a => HasPitch (TieT a) 
HasPart a => HasPart (TieT a) 
Tiable a => Tiable (TieT a) 
HasDynamic a => HasDynamic (TieT a) 
HasArticulation a => HasArticulation (TieT a) 
HasSlide a => HasSlide (TieT a) 
HasHarmonic a => HasHarmonic (TieT a) 
HasText a => HasText (TieT a) 
HasTremolo a => HasTremolo (TieT a) 
HasChord a => HasChord (TieT a) 
HasMidi a => HasMidi (TieT a) 
HasLilypond a => HasLilypond (TieT a) 
HasMusicXml a => HasMusicXml (TieT a) 

splitTies :: (HasPart' a, Tiable a) => Score a -> Score aSource

Split all notes that cross a barlines into a pair of tied notes.

splitTiesSingle :: Tiable a => Score a -> Score aSource

Equivalent to splitTies for single-voice scores. Fails if the score contains overlapping events.

splitTiesVoice :: Tiable a => Voice a -> Voice aSource

Split all notes that cross a barlines into a pair of tied notes.