|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.beadsproject.beads.data.Pitch
public abstract class Pitch
A set of static fields and utility methods associated with pitch.
Field Summary | |
---|---|
static int[] |
circleOfFifths
The circle of fifths relative to root. |
static int[] |
dorian
The dorian scale relative to root. |
static float |
LOG2
The constant log(2) = 0.6931472. |
static int[] |
major
The major scale relative to root. |
static int[] |
minor
The minor scale relative to root. |
Constructor Summary | |
---|---|
Pitch()
|
Method Summary | |
---|---|
static float |
ftom(float frequency)
Convert frequency to MIDI note number. |
static float |
mtof(float midi)
Convert MIDI note number to frequency. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final float LOG2
public static final int[] dorian
public static final int[] major
public static final int[] minor
public static final int[] circleOfFifths
Constructor Detail |
---|
public Pitch()
Method Detail |
---|
public static final float ftom(float frequency)
frequency
- the required frequency.
public static final float mtof(float midi)
midi
- the required MIDI note number.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |