|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.softsynth.jmsl.Translator com.softsynth.jmsl.KeyTranslator
public class KeyTranslator
KeyTranslator provides translation for commonly used scales.
Field Summary | |
---|---|
static int |
KEY_A
|
static int |
KEY_A_SHARP
|
static int |
KEY_B
|
static int |
KEY_C
|
static int |
KEY_C_SHARP
|
static int |
KEY_D
|
static int |
KEY_D_SHARP
|
static int |
KEY_E
|
static int |
KEY_F
|
static int |
KEY_F_SHARP
|
static int |
KEY_G
|
static int |
KEY_G_SHARP
|
Constructor Summary | |
---|---|
KeyTranslator()
|
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
|
static int |
qa()
Quality assurance test. |
void |
useHarmonicMinorScale(int key)
Setup translator to generate pitches in a HarmonicMinor scale. |
void |
useHungarianMinorScale(int key)
Setup translator to generate pitches in a Hungarian Minor scale. |
void |
useMajorScale(int key)
Setup translator to generate pitches in a Major scale. |
void |
usePentatonicScale(int key)
Setup translator to generate pitches in a Pentatonic scale. |
void |
useRumanianMinorScale(int key)
Setup translator to generate pitches in a Rumanian Minor scale. |
Methods inherited from class com.softsynth.jmsl.Translator |
---|
detranslate, setArray, setModulus, setOffset, translate |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int KEY_C
public static final int KEY_C_SHARP
public static final int KEY_D
public static final int KEY_D_SHARP
public static final int KEY_E
public static final int KEY_F
public static final int KEY_F_SHARP
public static final int KEY_G
public static final int KEY_G_SHARP
public static final int KEY_A
public static final int KEY_A_SHARP
public static final int KEY_B
Constructor Detail |
---|
public KeyTranslator()
Method Detail |
---|
public void useMajorScale(int key)
public void useHarmonicMinorScale(int key)
public void usePentatonicScale(int key)
public void useHungarianMinorScale(int key)
public void useRumanianMinorScale(int key)
public static int qa()
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |