Represents a layer.
import { Layer } from "@nbsjs/core";const layer = new Layer({ "name": "Demo"});// The "notes" property provides helper functions such as...layer.notes.add(0, 0, { "key": 42});layer.notes.add(8, 0, { "key": 24});// Deletes the note on tick 8 (which was just added)layer.notes.delete(8);// These properties are only used in Note Block Studio and do not affect the functions abovelayer.isSolo = true;layer.isLocked = true; Copy
import { Layer } from "@nbsjs/core";const layer = new Layer({ "name": "Demo"});// The "notes" property provides helper functions such as...layer.notes.add(0, 0, { "key": 42});layer.notes.add(8, 0, { "key": 24});// Deletes the note on tick 8 (which was just added)layer.notes.delete(8);// These properties are only used in Note Block Studio and do not affect the functions abovelayer.isSolo = true;layer.isLocked = true;
Whether this layer has been marked as locked.
This property is not used within nbs.js for anything other than storage.
nbs.js
It only exists to work with other applications that implement functionality.
Whether this layer has been marked as solo.
Name of the layer.
Array of every note in the layer.
How much this layer is panned to the left or right.
-100 is 2 blocks right, 0 is center, 100 is 2 blocks left. Copy
-100 is 2 blocks right, 0 is center, 100 is 2 blocks left.
Volume percentage of the layer.
Represents a layer.
Example