Interface InstrumentOptions

Options available for an Instrument.

interface InstrumentOptions {
    key?: number;
    name?: string;
    pressKey?: boolean;
    soundFile?: string;
}

Properties

key?: number

Key of the sound file.

Just like note blocks, this ranges from 0-87.

name?: string

Name of the instrument.

pressKey?: boolean

Whether the on-screen piano should visually press keys when these notes are played.

soundFile?: string

Sound file of the instrument.

Relative to the Data/Sounds/ directory of Note Block Studio installations.