hmt-0.20: Haskell Music Theory
Safe HaskellSafe-Inferred
LanguageHaskell2010

Music.Theory.Metric.Morris_1980

Description

Robert Morris. "A Similarity Index for Pitch-Class Sets". Perspectives of New Music, 18(2):445-460, 1980.

Synopsis

Documentation

sim :: Integral a => [Int8] -> [Int8] -> a Source #

SIM

icv 12 [0,1,3,6] == [1,1,2,0,1,1] && icv 12 [0,2,4,7] == [0,2,1,1,2,0]
sim [0,1,3,6] [0,2,4,7] == 6
sim [0,1,2,4,5,8] [0,1,3,7] == 9

asim :: Integral n => [Int8] -> [Int8] -> Ratio n Source #

ASIM

asim [0,1,3,6] [0,2,4,7] == 6/12
asim [0,1,2,4,5,8] [0,1,3,7] == 9/21
asim [0,1,2,3,4] [0,1,4,5,7] == 2/5
asim [0,1,2,3,4] [0,2,4,6,8] == 3/5
asim [0,1,4,5,7] [0,2,4,6,8] == 3/5