Interval

new Interval(integer distance)

data structure for an interval
Parameters:
Name Type Description
distance integer The number of semitones between the notes
Source:

Methods

<static> fromName() → string

lookup the english name of the interval
Source:
Returns:
the English name of the interval can be one of the following: "unison" "minor second" "major second" "minor third" "major third" "fourth" "tritone" "fifth" "minor sixth" "major sixth" "minor seventh" "major seventh" "octave"
Type
string

<static> fromNotes(Note note1, Note note2)Interval

take two notes and create a new Interval object from it
Parameters:
Name Type Description
note1 Note The first note
note2 Note The second note
Source:
Returns:
A new Interval object
Type
Interval

name() → string

Source:
Returns:
the name of the interval
Type
string