C# Класс 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.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
AscentIsValid ( int ascent ) : bool

Returns true if ascent is valid.

Описание методов

Equals() публичный Метод

Value equality.
public Equals ( System obj ) : bool
obj System
Результат bool

GetHashCode() публичный Метод

Hash code.
public GetHashCode ( ) : int
Результат int

ScalePattern() публичный Метод

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.
Результат System

ToString() публичный Метод

ToString returns the pattern name.
public ToString ( ) : string
Результат string

operator() публичный статический Метод

Inequality operator does value inequality.
public static operator ( ) : bool
Результат bool