Class: DiatonicInterval

music21.interval. DiatonicInterval

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

Methods

<static> DiatonicInterval#getChromatic() → {music21.interval.ChromaticInterval}

Returns a ChromaticInterval object of the same size.

Source:
Returns:
Type
music21.interval.ChromaticInterval
Music21j, Copyright © 2013-2018 Michael Scott Cuthbert and cuthbertLab.
Documentation generated by JSDoc 3.5.5 on Wed Jul 4th 2018 using the DocStrap template.