public class NbsNote
extends java.lang.Object
| Constructor and Description |
|---|
NbsNote() |
| Modifier and Type | Method and Description |
|---|---|
NbsNote |
copy() |
boolean |
equals(java.lang.Object o) |
int |
getInstrument() |
int |
getKey() |
int |
getPanning() |
short |
getPitch()
100 = 1 key
1200 = 1 octave |
int |
getVelocity() |
int |
hashCode() |
NbsNote |
setInstrument(int instrument) |
NbsNote |
setKey(int key) |
NbsNote |
setPanning(int panning) |
NbsNote |
setPitch(short pitch)
100 = 1 key
1200 = 1 octave |
NbsNote |
setVelocity(int velocity) |
public int getInstrument()
public NbsNote setInstrument(int instrument)
instrument - The instrument of the note block. This is 0-15, or higher if the song uses custom instruments.public int getKey()
public NbsNote setKey(int key)
key - The key of the note block, from 0-87, where 0 is A0 and 87 is C8. 33-57 is within the 2-octave limit.public int getVelocity()
public NbsNote setVelocity(int velocity)
velocity - The velocity/volume of the note block, from 0% to 100%.public int getPanning()
public NbsNote setPanning(int panning)
panning - The stereo position of the note block, from 0-200. 0 is 2 blocks right, 100 is center, 200 is 2 blocks left.public short getPitch()
public NbsNote setPitch(short pitch)
pitch - The fine pitch of the note block, from -32,768 to 32,767 cents (but the max in Note Block Studio is limited to -1200 and +1200). 0 is no fine-tuning. ±100 cents is a single semitone difference.public NbsNote copy()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object