music-pitch-1.8.1: Musical pitch representation.

Copyright(c) Hans Hoglund, Edward Lilley 2012–2014
LicenseBSD-style
Maintainerhans@hanshoglund.se
Stabilityexperimental
Portabilitynon-portable (TF,GNTD)
Safe HaskellNone
LanguageHaskell2010

Music.Pitch.Ambitus

Description

Musical ambitus, or pitch ranges.

Synopsis

Documentation

data Ambitus a Source

An ambitus is a closed interval (in the mathematical sense).

Also known as range or tessitura, this type can be used to restrict the range of a melody, chord or other pitch container.

It is also used in music-parts to represent the range of instruments.

Instances

(Show a, Num a, Ord a) => Show (Ambitus a) 
Wrapped (Ambitus a) 
Rewrapped (Ambitus a) (Ambitus b) 
type Unwrapped (Ambitus a) = Interval a 

ambitus :: (Num a, Ord a) => Iso (a, a) (b, b) (Ambitus a) (Ambitus b) Source

ambitus' :: (Num a, Ord a) => Iso' (a, a) (Ambitus a) Source

mapAmbitus :: (Ord b, Num b) => (a -> b) -> Ambitus a -> Ambitus b Source

Not a true functor for similar reasons as sets.

ambitusHighest :: (Num a, Ord a) => Ambitus a -> a Source

ambitusLowest :: (Num a, Ord a) => Ambitus a -> a Source

ambitusInterval :: (Num a, Ord a, AffineSpace a) => Ambitus a -> Diff a Source

Returns a postive interval (or _P1 for empty ambitus)