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

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

Music.Score.Text

Contents

Description

Provides a way of adding text to notes.

Synopsis

Text

class HasText a whereSource

Methods

addText :: String -> a -> aSource

Instances

HasText a => HasText [a] 
HasText a => HasText (Stretched a) 
HasText a => HasText (Voice a) 
HasText a => HasText (Score a) 
HasText a => HasText (TieT a) 
HasText a => HasText (SlideT a) 
HasText a => HasText (TremoloT a) 
HasText (TextT a) 
HasText a => HasText (HarmonicT 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 
Typeable1 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) 
Semigroup a => Semigroup (TextT a) 
Wrapped (TextT a)

Unsafe: Do not use Wrapped instances

IsDynamics a => IsDynamics (TextT a) 
IsPitch a => IsPitch (TextT a) 
Augmentable a => Augmentable (TextT a) 
Alterable a => Alterable (TextT a) 
Transformable a => Transformable (TextT a) 
Reversible a => Reversible (TextT a) 
Tiable a => Tiable (TextT a) 
HasSlide a => HasSlide (TextT a) 
HasTremolo a => HasTremolo (TextT a) 
HasText (TextT a) 
HasHarmonic a => HasHarmonic (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) 

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

Attach the given text to the first note in the score.