public class MusicSpecs
extends java.lang.Object
Red (ilgea) |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REST_SYMBOL
Rest symbol
|
static java.lang.String |
TERMINATION_CHORD
Symbol for the termination chord
|
static int |
TERMINATION_NOTE_KEY
MIDI key for the termination note
|
static java.lang.String |
TERMINATION_NOTE_SYMBOL
Symbol for the termination note
|
Constructor and Description |
---|
MusicSpecs() |
Modifier and Type | Method and Description |
---|---|
static java.util.List |
getChordPitches(java.lang.String chord,
boolean useScale)
Get a list of notes contained by the chord
|
static java.util.HashMap |
getChordTones(java.util.List<java.lang.String> chords)
Get the chord tones contained by the given chords.
|
static java.lang.String |
translateKeyToLetterNote(double key,
boolean addOctave)
Translate a MIDI key to its equivalent letter note representation
|
static int |
translateLetterToKeyIndex(java.lang.String keyLetter)
Translate a letter note to MIDI key
|
static int |
translateNoteToKey(java.lang.String note)
Translate a letter note to MIDI key
|
public static final java.lang.String TERMINATION_CHORD
public static final java.lang.String TERMINATION_NOTE_SYMBOL
public static final java.lang.String REST_SYMBOL
public static final int TERMINATION_NOTE_KEY
public static java.util.HashMap getChordTones(java.util.List<java.lang.String> chords)
chords
- The list of chordspublic static java.util.List getChordPitches(java.lang.String chord, boolean useScale)
chord
- The chord nameuseScale
- A boolean specifying whether scale notes should be includedpublic static java.lang.String translateKeyToLetterNote(double key, boolean addOctave)
key
- MIDI key indexaddOctave
- boolean -- if true indicates that octave information should be outputpublic static int translateNoteToKey(java.lang.String note)
note
- a letter notepublic static int translateLetterToKeyIndex(java.lang.String keyLetter)
note
- a letter note