public class NbsDefinitions
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
KEYS_PER_OCTAVE |
static int |
NBS_HIGHEST_KEY |
static int |
NBS_LOWEST_KEY |
static int |
PITCHES_PER_KEY |
| Constructor and Description |
|---|
NbsDefinitions() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getKey(NbsNote note)
Calculates the effective key of a note.
|
static int |
getPitch(NbsNote note)
Calculates the effective pitch of a note. (100 = 1 key, 1200 = 1 octave)
|
public static final int NBS_LOWEST_KEY
public static final int NBS_HIGHEST_KEY
public static final int KEYS_PER_OCTAVE
public static final int PITCHES_PER_KEY
public static int getPitch(NbsNote note)
note - The NBS notepublic static int getKey(NbsNote note)
note - The NBS note