Class DSG
Class which handles chord transformations to change the dissonance
grading
Methods summary
public
|
#
setChord( Chord $chord )
Provides the class with a chord to work with
Provides the class with a chord to work with
Parameters
|
public
|
#
setLastFedInChord( Chord $chord )
Saves the last manually entered chord
Saves the last manually entered chord
Parameters
- $chord
string|Chord $chordstring string of notes, to be parsed by makeintoset function, or Chord
object
|
public
Chord
|
#
getCurrentChord( )
Returns the chord being worked on, in its current state
Returns the chord being worked on, in its current state
Returns
|
public
Chord
|
#
getLastFedInChord( )
Returns the last manually entered chord
Returns the last manually entered chord
Returns
|
public
|
#
changeCurrentChordByTargetDSG( integer $targetdsg )
Changes the current chord as far as possible in the direction of the target
DSG
Changes the current chord as far as possible in the direction of the target
DSG
Parameters
- $targetdsg
integer $targetdsg the desired target DSG
|
public
|
#
changeCurrentChordByPSM( string $type )
Changes the current chord by Parallel Subset Motion. Possible values of
$type: inc for increasing the dissonance or dim for diminishing
the dissonance
Changes the current chord by Parallel Subset Motion. Possible values of
$type: inc for increasing the dissonance or dim for diminishing
the dissonance
Parameters
- $type
string $type the desired direction of the change: increasing or diminishing dissonance
|