music-diatonic-0.1.2: 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
Methods
(==) :: Interval -> Interval -> Bool #
(/=) :: Interval -> Interval -> Bool #
showsPrec :: Int -> Interval -> ShowS #
show :: Interval -> String #
showList :: [Interval] -> ShowS #
quality :: Interval -> Quality Source #
equiv :: Interval -> Interval -> Bool Source #
compound :: Interval -> Interval Source #
Creates compound interval (adds an octave) to the specified Interval
octave
octave :: Interval Source #
min9th :: Interval Source #
maj9th :: Interval Source #
perf11th :: Interval Source #
min13th :: Interval Source #
maj13th :: Interval Source #
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.