Safe Haskell | None |
---|---|
Language | Haskell2010 |
Pitch range or ambitus.
- data Ambitus a
- ambitus :: (Num a, Ord a) => Iso (a, a) (b, b) (Ambitus a) (Ambitus b)
- mapAmbitus :: (Ord b, Num b) => (a -> b) -> Ambitus a -> Ambitus b
- ambitusHighest :: (Num a, Ord a) => Ambitus a -> a
- ambitusLowest :: (Num a, Ord a) => Ambitus a -> a
- ambitusInterval :: (Num a, Ord a, AffineSpace a) => Ambitus a -> Diff a
Documentation
An ambitus is (mathematical) interval.
Also known as range or tessitura, this type can be used to restrict the range instruments, chords, melodies etc.
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)