public class PitchUtils
extends java.lang.Object
| Constructor and Description |
|---|
PitchUtils() |
| Modifier and Type | Method and Description |
|---|---|
static byte |
applyPitchToKey(byte key,
short pitch) |
static byte |
getCorrectedKey(Note note,
PitchCorrection pitchCorrection) |
static float |
getCorrectedPitch(Note note,
PitchCorrection pitchCorrection) |
static byte |
getKeyInOctaveAligned(byte key,
short pitch) |
static byte |
getKeyInOctaveAligned(Note note) |
static byte |
getKeyInOctaveClamped(byte key,
short pitch) |
static byte |
getKeyInOctaveClamped(Note note) |
static float |
getPitchInOctaveAligned(byte key,
short pitch) |
static float |
getPitchInOctaveAligned(Note note) |
static boolean |
isOutOfMinecraftRange(byte key,
short pitch) |
static float |
keyToPitch(byte key) |
public static float getCorrectedPitch(Note note, PitchCorrection pitchCorrection)
public static byte getCorrectedKey(Note note, PitchCorrection pitchCorrection)
public static byte getKeyInOctaveClamped(Note note)
public static byte getKeyInOctaveClamped(byte key,
short pitch)
public static float getPitchInOctaveAligned(Note note)
public static float getPitchInOctaveAligned(byte key,
short pitch)
public static byte getKeyInOctaveAligned(Note note)
public static byte getKeyInOctaveAligned(byte key,
short pitch)
public static byte applyPitchToKey(byte key,
short pitch)
public static float keyToPitch(byte key)
public static boolean isOutOfMinecraftRange(byte key,
short pitch)