Class: Interval

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

Methods

<static> Interval#isConsonant() → {Boolean}

Source:
Returns:
Type
Boolean

<static> Interval#transposePitch(p) → {music21.pitch.Pitch}

Parameters:
Name Type Description
p music21.pitch.Pitch

pitch to transpose

Source:
Returns:
Type
music21.pitch.Pitch
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.