new DiatonicInterval(specifier, generic)
Represents a Diatonic interval. See example for usage.
Parameters:
Name | Type | Argument | Default | Description |
---|---|---|---|---|
specifier |
string | number | undefined |
<optional> |
'P' | a specifier such as "P", "d", "m", "M" etc. |
generic |
music21.interval.GenericInterval | number |
<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.