Safe Haskell | None |
---|---|

Language | Haskell2010 |

Number component of intervals.

- data Number
- class HasNumber a where
- unison :: Number
- prime :: Number
- second :: Number
- third :: Number
- fourth :: Number
- fifth :: Number
- sixth :: Number
- seventh :: Number
- octave :: Number
- ninth :: Number
- tenth :: Number
- eleventh :: Number
- twelfth :: Number
- thirteenth :: Number
- fourteenth :: Number
- fifteenth :: Number
- diatonicSteps :: Iso' Number DiatonicSteps

# Documentation

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

class HasNumber a where 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`

.

A synonym for `13`

.

A synonym for `14`

.

diatonicSteps :: Iso' Number DiatonicSteps Source