music-pitch-1.9.0: Musical pitch representation.

Safe HaskellNone
LanguageHaskell2010

Music.Pitch.Common.Number

Description

 Number component of intervals.

Synopsis

Documentation

data Number Source

The number component of an interval (fourth, fifth) etc. May be negative, indicating a downward interval.

class HasNumber a where Source

Methods

number :: a -> Number Source

Returns the number portion of an interval.

The interval number is negative if and only if the interval is negative.

See also quality, octaves and semitones.

unison :: Number Source

A synonym for 1.

prime :: Number Source

A synonym for 1.

second :: Number Source

A synonym for 2.

third :: Number Source

A synonym for 3.

fourth :: Number Source

A synonym for 4.

fifth :: Number Source

A synonym for 5.

sixth :: Number Source

A synonym for 6.

seventh :: Number Source

A synonym for 7.

octave :: Number Source

A synonym for 8.

ninth :: Number Source

A synonym for 9.

tenth :: Number Source

A synonym for 10.

eleventh :: Number Source

A synonym for 11.

twelfth :: Number Source

A synonym for 12.

thirteenth :: Number Source

A synonym for 13.

fourteenth :: Number Source

A synonym for 14.

fifteenth :: Number Source

A synonym for 15.