new DiatonicInterval(specifier, generic)
Represents a Diatonic interval. See example for usage.
Parameters:
| Name | Type | Argument | Default | Description |
|---|---|---|---|---|
specifier |
string | Int | undefined |
<optional> |
'P' | a specifier such as "P", "d", "m", "M" etc. |
generic |
music21.interval.GenericInterval | Int |
<optional> |
1 | a |
- Source:
Example
var di = new music21.interval.DiatonicInterval("M", 10);
di.generic.isClassOrSubclass('GenericInterval');
// true
di.specifierAbbreviation;
// 'M'
di.name;
// 'M10'
di.direction == music21.interval.Direction.ASCENDING;
// true
di.niceName
// "Major Tenth"
// See music21p for more possibilities.
Methods
-
<static> DiatonicInterval#getChromatic() → {music21.interval.ChromaticInterval}
-
Returns a ChromaticInterval object of the same size.
- Source:
Returns: