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

Music.Diatonic.Key

Description

This module inplements keys.

Synopsis

Documentation

majorKey :: Note -> KeySource

Creates a Major Key centered around the specified Note.

minorKey :: Note -> KeySource

Creates a Major Key centered around the specified Note.

center :: Key -> NoteSource

Returns the Note that is the key's center.

key :: Scale -> KeySource

Creates a Key based on the specified Scale.

parallel :: Key -> KeySource

Returns the parallel Key of the specified Key.

relative :: Key -> KeySource

Returns the relative Key of the specified Key.

relativeMajor :: Key -> KeySource

Returns the relative Major Key of the specified Key.

relativeMinor :: Key -> KeySource

Returns the relative Minor Key of the specified Key.

signature :: Key -> SignatureSource

Returns the Signature of the specified Key.

sigDetails :: Signature -> (Accidental, Int)Source

Returns the details of the specified Key:

  1. The Accidental that is used in the Key Signature.
  2. The number of those Accidentals used in the Key Signature.