Class: DiatonicInterval

.interval. DiatonicInterval

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 GenericInterval
object or a number to be converted to one

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.
Music21j, Copyright © 2013-2021 Michael Scott Asato Cuthbert.
Documentation generated by JSDoc 3.6.3 on Wed Jul 31st 2019 using the DocStrap template.