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

Safe HaskellSafe
LanguageHaskell98

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 -> Interval Source #

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

augment :: Interval -> Interval Source #

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

diminish :: Interval -> Interval Source #

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

steps :: Interval -> Int Source #

Returns the number of scale steps in an Interval.

semitones :: Interval -> Int Source #

Returns the number of semitones in an Interval.