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.
显示文件 Open project: jstnryan/midi-dot-net Class Usage Examples

Public Methods

Method 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

Method Description
AscentIsValid ( int ascent ) : bool

Returns true if ascent is valid.

Method Details

Equals() public method

Value equality.
public Equals ( System obj ) : bool
obj System
return bool

GetHashCode() public method

Hash code.
public GetHashCode ( ) : int
return int

ScalePattern() public method

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.
return System

ToString() public method

ToString returns the pattern name.
public ToString ( ) : string
return string

operator() public static method

Inequality operator does value inequality.
public static operator ( ) : bool
return bool