music-diatonic-0.0.1: Implementation of basic western musical theory objects.

Music.Diatonic.Interval

Description

The Interval module implements diatonic intervals.

Synopsis

data Interval Source

Use these constructors to create Intervals. To alter them, use the diminish or augment functions.

Interval

diminish

augment

Constructors

Instances

augment :: Interval -> IntervalSource

Augments an Interval by a semitone. The interval type remains the same.

diminish :: Interval -> IntervalSource

Diminishes an Interval by a semitone. The interval type remains the same.

steps :: Interval -> IntSource

Returns the number of scale steps in an Interval.

semitones :: Interval -> IntSource

Returns the number of semitones in an Interval.