Represents a note.
import { Note } from "@nbsjs/core";// Instrument ID 0 is always harpnew Note(0, { "key": 42, "velocity": 80});new Note(0, { "key": 42, "velocity": 20, "panning": 50});// Notes do not have tick information tied to them!// This is stored within the layer's "notes" object Copy
import { Note } from "@nbsjs/core";// Instrument ID 0 is always harpnew Note(0, { "key": 42, "velocity": 80});new Note(0, { "key": 42, "velocity": 20, "panning": 50});// Notes do not have tick information tied to them!// This is stored within the layer's "notes" object
ID of the instrument used by the note.
Key of the note block.
From 0 to 87. 33 to 57 is within the 2-octave limit.
0 is A0 and 87 is C8. Copy
0 is A0 and 87 is C8.
Stereo position of the note block.
From -100 to 100.
0 means center panning. Copy
0 means center panning.
Fine pitch of the note block.
The max in Note Block Studio is limited to -1200 and +1200.
0 designates no fine-tuning. ±100 cents is a single semitone difference. Copy
0 designates no fine-tuning. ±100 cents is a single semitone difference.
Velocity (volume) of the note block.
From 0% to 100%.
Construct a new note.
Options for the note
Represents a note.
Example