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.specifier;
// 'M'
di.name;
// 'M10'
di.direction == music21.interval.IntervalDirections.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-2016 Michael Scott Cuthbert and cuthbertLab.
Documentation generated by JSDoc 3.4.3 on Wed Jul 26th 2017 using the DocStrap template.