|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectauditory.described.MidiCalculator
public class MidiCalculator
A utility class for working with MIDI numbers Note: "Midi" is not "MIDI" to be consistent with the naming convention of exitsing Java classes
Constructor Summary | |
---|---|
MidiCalculator()
|
Method Summary | |
---|---|
static int |
numberFor(char pitch,
boolean sharp,
int octave)
Calculate the MIDI number |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MidiCalculator()
Method Detail |
---|
public static int numberFor(char pitch, boolean sharp, int octave)
pitch
- The pitch ('A','B','C','D','E','F', 'G' or 'R')sharp
- true for a sharp and false for a naturaloctave
- The octave (relative to middle C)
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |