Class: Interval

.interval. Interval

new Interval()

This is the main, powerful Interval class.

Instantiate with either a string ("M3") or two music21.pitch.Pitch or two music21.note.Note

See music21p instructions for usage.

Source:
Example
var n1 = new music21.note.Note("C4");
var n2 = new music21.note.Note("F#5");
var iv = new music21.interval.Interval(n1, n2);
iv.isConsonant();
// false
iv.semitones;
// 18
iv.niceName
// "Augmented Eleventh"
Music21j, Copyright © 2013-2021 Michael Scott Asato Cuthbert.
Documentation generated by JSDoc 3.6.3 on Wed Jul 31st 2019 using the DocStrap template.