downgrade (line
181)
Orders the chords resulting from the four possible second steps of the most dissonant tone, from low to high dsg
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
array
extractset
(array $chordrec)
-
array
$chordrec: array representing a chord structure
findpmaxcontrib (line
93)
Looks for the most dissonant tone in the chord
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
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
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
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
array
psmconsrec
(array $chordrec)
-
array
$chordrec: array representing a chord structure
psmdissrec (line
277)
Increases an analyzed chord's dissonance, using parallel subset motion
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
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
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