Overview

Packages

  • DSG
    • cli
    • web

Classes

  • Chord
  • DSG

Functions

  • array_addtoset
  • array_removefromset
  • array_subset
  • Overview
  • Package
  • Class
  • Tree

Class DSG

Class which handles chord transformations to change the dissonance grading

Package: DSG
Located at includes/DSG.class.php
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

$chord
Chord
$chord
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

Chord
public Chord
# getLastFedInChord( )

Returns the last manually entered chord

Returns the last manually entered chord

Returns

Chord
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
DSG API documentation generated by ApiGen 2.8.0