File/chordworker.inc.php

Description

Contains functions to change the dissonance of a chord

Functions
downgrade (line 181)

Orders the chords resulting from the four possible second steps of the most dissonant tone, from low to high dsg

  • return: array with the most dissonant tone and four possible chords resulting from moving it
array downgrade (array $chordrec, array $exceptpitchset)
  • array $chordrec: array representing a chord structure
  • array $exceptpitchset: array of pitches to be ignored by the findpmaxcontrib function
extractset (line 75)

Extracts the pitches from an array representing a chord structure

  • return: array (set) of integers representing pitches
array extractset (array $chordrec)
  • array $chordrec: array representing a chord structure
findpmaxcontrib (line 93)

Looks for the most dissonant tone in the chord

  • return: the most dissonant tone
int findpmaxcontrib (array $chordrec, [array $exceptpitchset = array()])
  • array $chordrec: array representing a chord structure
  • array $exceptpitchset: array of pitches to be ignored (if any)
findpmaxdiff (line 338)

Returns the tone from the intersection of two chords which differs most in dissonance value in the two chords

  • return: tone which differs most in dissonance value in the two chords
int findpmaxdiff (array $rec1, array $rec2)
  • array $rec1: array representing a chord structure
  • array $rec2: array representing a chord structure
findpmincontrib (line 116)

Looks for the least dissonant tone in the chord

  • return: the least dissonant tone
int findpmincontrib (array $chordrec, [array $exceptpitchset = array()])
  • array $chordrec: array representing a chord structure
  • array $exceptpitchset: array of pitches to be ignored (if any)
movetonefourpossibleways (line 138)

Changes a chord four different ways, by performing four possible second steps of a given tone

  • return: array containing four different variants of the input chord
array movetonefourpossibleways (int $tone, array $chordrec)
  • int $tone: tone to be moved
  • array $chordrec: array representing a chord structure
psmconsrec (line 372)

Diminishes an analyzed chord's dissonance, using parallel subset motion

  • return: chord with diminished dissonance
array psmconsrec (array $chordrec)
  • array $chordrec: array representing a chord structure
psmdissrec (line 277)

Increases an analyzed chord's dissonance, using parallel subset motion

  • return: chord with increased dissonance
array psmdissrec (array $chordrec)
  • array $chordrec: array representing a chord structure
targetrecto (line 23)

Changes dissonance of a chord in the direction of the supplied target dissonance

  • return: changed chord structure
array targetrecto (array $chordrec, int $targetdiss)
  • array $chordrec: array representing a chord structure
  • int $targetdiss: target dissonance
upgrade (line 229)

Orders the chords resulting from the four possible second steps of the least dissonant tone, from high to low dsg

  • return: array with the least dissonant tone and four possible chords resulting from moving it
array upgrade (array $chordrec, array $exceptpitchset)
  • array $chordrec: array representing a chord structure
  • array $exceptpitchset: array of pitches to be ignored by the findpmincontrib function

Documentation generated on Sun, 26 Nov 2006 14:27:04 +0100 by phpDocumentor 1.3.1