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.Color

Contents

Description

Provides colored note heads.

Synopsis

HasColor class

class HasColor a where Source

Methods

setColor :: Colour Double -> a -> a Source

Instances

HasColor a => HasColor [a] 
HasColor a => HasColor (Note a) 
HasColor a => HasColor (Voice a) 
HasColor a => HasColor (Score a) 
HasColor a => HasColor (TieT a) 
HasColor (ColorT a) 
HasColor a => HasColor (b, a) 
HasColor a => HasColor (PartT n a) 

Manipulating color

color :: HasColor a => Colour Double -> a -> a Source

Set color of all notes in the score.

colorRed :: HasColor a => a -> a Source

Color all notes in the score red.

colorBlue :: HasColor a => a -> a Source

Color all notes in the score blue.

colorBlack :: HasColor a => a -> a Source

Color all notes in the score black.

Representation

newtype ColorT a Source

Constructors

ColorT 

Fields

getColorT :: Couple (Option (Last (Colour Double))) a
 

Instances

Monad ColorT 
Functor ColorT 
Applicative ColorT 
Foldable ColorT 
Comonad ColorT 
HasBackendNote NoteList a => HasBackendNote NoteList (ColorT a) 
HasBackendNote Midi a => HasBackendNote Midi (ColorT a) 
HasBackendNote SuperCollider a => HasBackendNote SuperCollider (ColorT a) 
HasBackendNote Lilypond a => HasBackendNote Lilypond (ColorT a) 
HasBackendNote MusicXml a => HasBackendNote MusicXml (ColorT a) 
Bounded a => Bounded (ColorT a) 
Enum a => Enum (ColorT a) 
Eq a => Eq (ColorT a) 
Floating a => Floating (ColorT a) 
Fractional a => Fractional (ColorT a) 
Num a => Num (ColorT a) 
Show a => Show (ColorT a) 
Wrapped (ColorT a) 
Semigroup a => Semigroup (ColorT a) 
IsPitch a => IsPitch (ColorT a) 
IsDynamics a => IsDynamics (ColorT a) 
Transformable a => Transformable (ColorT a) 
Reversible a => Reversible (ColorT a) 
Alterable a => Alterable (ColorT a) 
Augmentable a => Augmentable (ColorT a) 
Tiable a => Tiable (ColorT a) 
HasSlide a => HasSlide (ColorT a) 
HasText a => HasText (ColorT a) 
HasHarmonic a => HasHarmonic (ColorT a) 
HasTremolo a => HasTremolo (ColorT a) 
HasColor (ColorT a) 
Rewrapped (ColorT a) (ColorT b) 
HasPitches a b => HasPitches (ColorT a) (ColorT b) 
HasPitch a b => HasPitch (ColorT a) (ColorT b) 
HasDynamics a b => HasDynamics (ColorT a) (ColorT b) 
HasDynamic a b => HasDynamic (ColorT a) (ColorT b) 
HasArticulations a b => HasArticulations (ColorT a) (ColorT b) 
HasArticulation a b => HasArticulation (ColorT a) (ColorT b) 
type SetPitch g (ColorT a) = ColorT (SetPitch g a) 
type SetDynamic g (ColorT a) = ColorT (SetDynamic g a) 
type SetArticulation g (ColorT a) = ColorT (SetArticulation g a) 
type Unwrapped (ColorT a) = Couple (Option (Last (Colour Double))) a 
type Pitch (ColorT a) = Pitch a 
type Dynamic (ColorT a) = Dynamic a 
type Articulation (ColorT a) = Articulation a