music-pitch-1.9.0: Musical pitch representation.

Safe HaskellNone
LanguageHaskell2010

Music.Pitch.Ambitus

Description

Pitch range or ambitus.

Synopsis

Documentation

data Ambitus a Source

An ambitus is (mathematical) interval.

Also known as range or tessitura, this type can be used to restrict the range instruments, chords, melodies etc.

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

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)