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

Copyright(c) Hans Hoglund 2012-2014
LicenseBSD-style
Maintainerhans@hanshoglund.se
Stabilityexperimental
Portabilitynon-portable (TF,GNTD)
Safe HaskellNone
LanguageHaskell2010

Music.Score.Text

Contents

Description

Provides a way of adding text to notes.

Synopsis

Text

class HasText a where Source

Methods

addText :: String -> a -> a Source

Instances

HasText a => HasText [a] 
HasText a => HasText (Note a) 
HasText a => HasText (Voice a) 
HasText a => HasText (Score a) 
HasText a => HasText (TieT a) 
HasText a => HasText (SlideT a) 
HasText (TextT a) 
HasText a => HasText (HarmonicT a) 
HasText a => HasText (TremoloT a) 
HasText a => HasText (ColorT a) 
HasText a => HasText (b, a) 
HasText a => HasText (Couple b a) 
HasText a => HasText (PartT n a) 

newtype TextT a Source

Constructors

TextT 

Fields

getTextT :: Couple [String] a
 

Instances

Monad TextT 
Functor TextT 
Applicative TextT 
Foldable TextT 
Comonad TextT 
HasBackendNote NoteList a => HasBackendNote NoteList (TextT a) 
HasBackendNote Midi a => HasBackendNote Midi (TextT a) 
HasBackendNote SuperCollider a => HasBackendNote SuperCollider (TextT a) 
HasBackendNote Lilypond a => HasBackendNote Lilypond (TextT a) 
HasBackendNote MusicXml a => HasBackendNote MusicXml (TextT a) 
Bounded a => Bounded (TextT a) 
Enum a => Enum (TextT a) 
Eq a => Eq (TextT a) 
Floating a => Floating (TextT a) 
Fractional a => Fractional (TextT a) 
(Real a, Enum a, Integral a) => Integral (TextT a) 
Num a => Num (TextT a) 
Ord a => Ord (TextT a) 
(Num a, Ord a, Real a) => Real (TextT a) 
Show a => Show (TextT a) 
Wrapped (TextT a) 
Semigroup a => Semigroup (TextT a) 
IsPitch a => IsPitch (TextT a) 
IsDynamics a => IsDynamics (TextT a) 
Transformable a => Transformable (TextT a) 
Reversible a => Reversible (TextT a) 
Alterable a => Alterable (TextT a) 
Augmentable a => Augmentable (TextT a) 
Tiable a => Tiable (TextT a) 
HasSlide a => HasSlide (TextT a) 
HasText (TextT a) 
HasHarmonic a => HasHarmonic (TextT a) 
HasTremolo a => HasTremolo (TextT a) 
Rewrapped (TextT a) (TextT b) 
HasPitches a b => HasPitches (TextT a) (TextT b) 
HasPitch a b => HasPitch (TextT a) (TextT b) 
HasDynamics a b => HasDynamics (TextT a) (TextT b) 
HasDynamic a b => HasDynamic (TextT a) (TextT b) 
HasArticulations a b => HasArticulations (TextT a) (TextT b) 
HasArticulation a b => HasArticulation (TextT a) (TextT b) 
Typeable (* -> *) TextT 
type SetPitch g (TextT a) = TextT (SetPitch g a) 
type SetDynamic g (TextT a) = TextT (SetDynamic g a) 
type SetArticulation g (TextT a) = TextT (SetArticulation g a) 
type Unwrapped (TextT a) = Couple [String] a 
type Pitch (TextT a) = Pitch a 
type Dynamic (TextT a) = Dynamic a 
type Articulation (TextT a) = Articulation a 

text :: (HasPhrases' s a, HasText a) => String -> s -> s Source

Attach the given text to the first note.

textLast :: (HasPhrases' s a, HasText a) => String -> s -> s Source

Attach the given text to the last note.