Scarlet & Grey
Ohio State University
Music Cognition Group


Kameoka & Kuriyagawa Algorithm

This page points to software resources for calculating sensory dissonance using the method described by Kameoka and Kuriyagawa (1969). Sensory dissonance values can be calculated for any arbitrary sound spectrum. The software was written by Keith Mashinter (Mashinter, 1995).

The diss program is part of the Humdrum Toolkit collection of music-related research tools. The diss program can be installed without installing the entire Humdrum Toolkit, however the installation procedure for diss is similar for installating the entire toolkit. See the Humdrum Installation Guide for detailed instructions.

The diss command consists of two parts and uses a combination of the awk programming language and the kornshell shell script. In order to use this software, your computer system must have access to an awk interpreter and a shell interpreter such as ksh or bash.

The diss program was designed to work on UNIX systems, however, it can also be installed on various Windows and Macintosh platforms with suitable preparation. (See portability details in the Humdrum FAQ document.)

Installation Tips

In order for the diss command to work properly, the following shell variables must be set.

export TMPDIR=/tmp
export HUMDRUM=/humdrum (assuming the diss command is copied to /humdrum)
export AWK_VER=awk
export CON=con
See the Humdrum Installation Guide for further details.

References

Kameoka, A. & Kuriyagawa, M. (1969a). Consonance theory, part I: Consonance of dyads. Journal of the Acoustical Society of America, Vol. 45, No. 6, pp. 1451-1459.

Kameoka, A. & Kuriyagawa, M. (1969b). Consonance theory, part II: Consonance of complex tones and its computation method. Journal of the Acoustical Society of America, Vol. 45, No. 6, pp. 1460-1469.

Mashinter, Keith. (1995). Discrepancies in Theories of Sensory Dissonance arising from the Models of Kameoka & Kuriyagawa, and Hutchinson & Knopoff. Undergraduate thesis submitted for the double honours degrees in Applied Mathematics and Music, University of Waterloo.