public class NBSCalculations
extends java.lang.Object
| Constructor and Description |
|---|
NBSCalculations() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getKey(NBSNote note)
Calculates the effective key of a note.
|
static float |
getPanning(NBSNote note)
Calculates the effective panning of a note. (0 is 2 blocks right, 100 is center, 200 is 2 blocks left)
|
static int |
getPitch(NBSNote note)
Calculates the effective pitch of a note. (100 = 1 key, 1200 = 1 octave)
|
static float |
getVolume(NBSNote note)
Calculates the effective volume of a note. (0% - 100%)
|
public static float getVolume(NBSNote note)
note - The NBS notepublic static float getPanning(NBSNote note)
note - The NBS notepublic static int getPitch(NBSNote note)
note - The NBS notepublic static int getKey(NBSNote note)
note - The NBS note