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

Safe HaskellSafe-Inferred

Music.Diatonic.Interval

Description

The Interval module implements diatonic intervals.

Synopsis

Documentation

data Interval Source

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

compound :: Interval -> IntervalSource

Creates compound interval (adds an octave) to the specified Interval

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.