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"