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"
Methods
-
<static> Interval#isConsonant() → {Boolean}
-
- Source:
Returns:
- Type
- Boolean
-
<static> Interval#transposePitch(p) → {music21.pitch.Pitch}
-
Parameters:
Name Type Description pmusic21.pitch.Pitch pitch to transpose
- Source:
Returns:
- Type
- music21.pitch.Pitch