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

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

Music.Score.Chord

Contents

Description

Provides a representation for chords.

Synopsis

Chord representation

class HasChord a whereSource

Associated Types

type ChordNote a :: *Source

Methods

getChord :: a -> [ChordNote a]Source

Voice separation

mergePossible :: [Score a] -> [Score a]Source

Heuristically merge voices if possible

Chord transformations

mapSimultaneous :: (Score [a] -> Score [b]) -> Score a -> Score bSource

Process all simultaneous events.

Two events a and b are considered simultaneous if and only if they have the same era, that is if era a == era b

simultaneous :: Semigroup a => Score a -> Score aSource

Merge all simultaneous events using their Semigroup instance.

Two events a and b are considered simultaneous if and only if they have the same era, that is if era a == era b

simultaneous' :: Score a -> Score [a]Source

Group simultaneous events as lists.

Two events a and b are considered simultaneous if and only if they have the same era, that is if era a == era b

Note that simultaneous is identical to simultaneous . fmap return