Class DSG

Description

Model part of the Model-View-Controller setup for the Dissonance Grading package

Does the actual computing with the function libraries included above; returns data to the controller

Located in /includes/dsg.class.php (line 42)


	
			
Variable Summary
Method Summary
 DSG DSG (string $chordstring)
 void changeCurrentChordByPSM (string $type)
 void changeCurrentChordByTargetDSG (int $targetdsg)
 array getCurrentChord ()
 int getCurrentDSG ()
 void setLastFedInChord (string $chordstring)
Variables
array $_chordrec = array() (line 53)
  • var: the current chord
  • access: private
array $_lastfedinchord = array() (line 48)
  • var: the last manually entered chord
  • access: private
Methods
Constructor DSG (line 61)

The constructor

  • access: public
DSG DSG (string $chordstring)
  • string $chordstring: string of notes, to be parsed by makeintoset function
changeCurrentChordByPSM (line 130)

Changes the current chord by Parallel Subset Motion

  • access: public
void changeCurrentChordByPSM (string $type)
  • string $type: the desired direction of the change: increasing or diminishing dissonance
changeCurrentChordByTargetDSG (line 111)

Changes the current chord as far as possible in the direction of the target DSG

  • access: public
void changeCurrentChordByTargetDSG (int $targetdsg)
  • int $targetdsg: the desired target DSG
getCurrentChord (line 81)

Returns the chord currently being worked on

  • return: the current chord
  • access: public
array getCurrentChord ()
getCurrentDSG (line 91)

Returns the dissonance grading of the current chord

  • return: dissonance grading of the current chord
  • access: public
int getCurrentDSG ()
getLastFedInChord (line 101)

Returns the last manually entered chord

  • return: the last manually entered chord
  • access: public
array getLastFedInChord ()
setLastFedInChord (line 71)

Saves the last manually entered chord

  • access: public
void setLastFedInChord (string $chordstring)
  • string $chordstring: string of notes, to be parsed by makeintoset function

Documentation generated on Sun, 26 Nov 2006 14:19:29 +0100 by phpDocumentor 1.3.1