public class MinecraftDefinitions
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MC_HIGHEST_KEY |
static int |
MC_HIGHEST_MIDI_KEY |
static int |
MC_KEYS |
static int |
MC_LOWEST_KEY |
static int |
MC_LOWEST_MIDI_KEY |
| Constructor and Description |
|---|
MinecraftDefinitions() |
| Modifier and Type | Method and Description |
|---|---|
static int |
applyExtendedNotesResourcePack(Note note)
Returns the octave delta to use as a suffix for the sound name and modifies the note key to be within the Minecraft octave range.
|
static void |
clampNoteKey(Note note)
Clamps the key of the note to fall within minecraft octave range.
|
static void |
instrumentShiftNote(Note note)
"Transposes" the key of the note by shifting the instrument to a higher or lower sounding one.
|
static void |
transposeNoteKey(Note note)
Transposes the key of the note to fall within minecraft octave range.
|
static void |
transposeNoteKey(Note note,
int transposeAmount)
Transposes the key of the note to fall within minecraft octave range.
|
public static final int MC_LOWEST_MIDI_KEY
public static final int MC_HIGHEST_MIDI_KEY
public static final int MC_LOWEST_KEY
public static final int MC_HIGHEST_KEY
public static final int MC_KEYS
public static void clampNoteKey(Note note)
note - The note to clamppublic static void transposeNoteKey(Note note)
note - The note to transposepublic static void transposeNoteKey(Note note, int transposeAmount)
note - The note to transposetransposeAmount - The amount of keys to transpose bypublic static void instrumentShiftNote(Note note)
note - The note to transposepublic static int applyExtendedNotesResourcePack(Note note)
note - The note to modify