C# Class Midi.ScalePattern

Description of a scale's pattern as it ascends through an octave.
This class describes the general behavior of a scale as it ascends from a tonic up to the next tonic. It is described in terms of semitones relative to the tonic; to apply it to a particular tonic, pass one of these to the constructor of Scale.
Afficher le fichier Open project: jstnryan/midi-dot-net Class Usage Examples

Méthodes publiques

Méthode Description
Equals ( System obj ) : bool

Value equality.

GetHashCode ( ) : int

Hash code.

ScalePattern ( string name, int ascent ) : System

Constructs a scale pattern.

ToString ( ) : string

ToString returns the pattern name.

operator ( ) : bool

Inequality operator does value inequality.

Private Methods

Méthode Description
AscentIsValid ( int ascent ) : bool

Returns true if ascent is valid.

Method Details

Equals() public méthode

Value equality.
public Equals ( System obj ) : bool
obj System
Résultat bool

GetHashCode() public méthode

Hash code.
public GetHashCode ( ) : int
Résultat int

ScalePattern() public méthode

Constructs a scale pattern.
name or ascent is null. ascent is invalid.
public ScalePattern ( string name, int ascent ) : System
name string The name of the scale pattern.
ascent int The ascending pattern of the scale. See the /// property for a detailed description and requirements. This parameter is copied.
Résultat System

ToString() public méthode

ToString returns the pattern name.
public ToString ( ) : string
Résultat string

operator() public static méthode

Inequality operator does value inequality.
public static operator ( ) : bool
Résultat bool