|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sky.monome.util.scale.Scale
public abstract class Scale
Musical scale of notes.
Constructor Summary | |
---|---|
Scale()
Constructs a scale. |
Method Summary | |
---|---|
int |
getIntervalsSum()
Returns the sum of all intervals composing this scale. |
int |
getNotesNumberInOctave()
Returns the number of notes composing this scale. |
MidiNote[] |
getScale(MidiNote baseNote,
int size)
Returns an array of Midi notes that represent this scale. |
abstract int[] |
getScaleOffsets()
Returns an array of all intervals composing this scale. |
abstract java.lang.String |
toString()
Returns a string representation of this scale. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Scale()
Method Detail |
---|
public MidiNote[] getScale(MidiNote baseNote, int size)
baseNote
- Base note of the returned array.size
- Size of the returned array.
public int getNotesNumberInOctave()
public int getIntervalsSum()
12
, so this scale is a standard scale of one octave.
public abstract int[] getScaleOffsets()
public abstract java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |