Music.Theory.Graph.Johnson_2014

Description

Tom Johnson. Other Harmony: Beyond Tonal and Atonal. Editions 75, 2014.

Synopsis

Common

type Z12 = Int Source #

mod12 :: Integral a => a -> a Source #

dif :: Num a => (a, a) -> a Source #

absdif :: Num a => (a, a) -> a Source #

i_to_ic :: (Num a, Ord a) => a -> a Source #

interval (0,11) to interval class (0,6)

p2_and :: (t -> u -> Bool) -> (t -> u -> Bool) -> t -> u -> Bool Source #

doi :: Eq t => [t] -> [t] -> Int Source #

degree of intersection

doi_of :: Eq t => Int -> [t] -> [t] -> Bool Source #

loc_dif :: Num t => [t] -> [t] -> t Source #

The sum of the pointwise absolute difference.

loc_dif_of :: (Eq t, Num t) => t -> [t] -> [t] -> Bool Source #

loc_dif_in :: (Eq t, Num t) => [t] -> [t] -> [t] -> Bool Source #

loc_dif_n :: (Eq t, Num i) => [t] -> [t] -> i Source #

The number of places that are, pointwise, not equal.

loc_dif_n "test" "pest" == 1

loc_dif_n_of :: Eq t => Int -> [t] -> [t] -> Bool Source #

min_vl :: (Num a, Ord a) => [a] -> [a] -> a Source #

min_vl_of :: (Num a, Ord a) => a -> [a] -> [a] -> Bool Source #

min_vl_in :: (Num a, Ord a) => [a] -> [a] -> [a] -> Bool Source #

combinations2 :: Ord t => [t] -> [(t, t)] Source #

set_pp :: Show t => [t] -> String Source #

Map

m_get :: Ord k => Map k v -> k -> v Source #

m_doi_of :: Map Int [Z12] -> Int -> Int -> Int -> Bool Source #

degree of intersection

Graph

gen_graph_ul :: Ord v => [DOT_ATTR] -> (v -> String) -> [EDGE v] -> [String] Source #

gen_graph_ul_ty :: Ord v => String -> (v -> String) -> [EDGE v] -> [String] Source #

gen_flt_graph :: (Ord t, Show t) => [DOT_ATTR] -> ([t] -> [t] -> Bool) -> [[t]] -> [String] Source #

P.31

p31_e_set :: [([Z12], [Z12])] Source #

P.114

p114_mk_gr :: Double -> ([Z12] -> [Z12] -> Bool) -> [String] Source #

P.148

p148_mk_gr :: ([Int] -> [Int] -> Bool) -> [String] Source #

P.177

partition_ic :: (Num t, Ord t, Show t) => t -> [t] -> ([t], [t]) Source #