hmt-0.3: Haskell Music Theory

Music.Theory.Contour.Polansky_1992

Synopsis

Documentation

matrix_f :: (a -> a -> b) -> [a] -> [[b]]Source

contour_matrix :: Ord a => [a] -> [[Ordering]]Source

half_matrix_f :: (a -> a -> b) -> [a] -> [[b]]Source

adjacent_indices :: Integral i => i -> [(i, i)]Source

all_indices :: Integral i => i -> [(i, i)]Source

all_equal :: Eq a => [a] -> BoolSource

uniform :: Contour_Description -> BoolSource

true if contour is all descending, equal or ascending

no_equalities :: Contour_Description -> BoolSource

true if contour does not containt any EQ elements

all_contours :: Int -> [Contour_Description]Source

all contour descriptions

possible_contours :: Int -> [Contour_Description]Source

all possible contour descriptions

impossible_contours :: Int -> [Contour_Description]Source

all impossible contour descriptions

replace :: Integral i => [a] -> i -> a -> [a]Source