Tile - YSound - Play Note 2D – Ylands

From Bohemia Interactive Community
Revision as of 08:52, 8 July 2021 by YlandsClassyBot (talk | contribs) (Created page with "<!--- THIS PAGE WAS GENERATED AUTOMATICALLY; DO NOT EDIT IT, OTHERWISE YOUR CHANGES WILL BE LOST DURING FUTURE UPDATE. --> == Play Note 2D(Instrument, Octave, Note, Velocity,...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Play Note 2D(Instrument, Octave, Note, Velocity, Duration)

YlandsTile-1139.png

static playNote2D(instrument: number, octave: number, note: YNote, velocity: number, duration: number): void;

Parameters

instrument

Selected intrument (1-127)

octave

Selected octave (0-8)

note

Selected note

velocity

Velocity (volume) of the note

duration

Play duration of the note (ms)

Description

Allows to play selected MIDI note everywhere.

Play Note 2D(Player, Instrument, Octave, Note, Velocity, Duration)

YlandsTile-1141.png

static playNote2D(player: YCharacter, instrument: number, octave: number, note: YNote, velocity: number, duration: number): void;

Parameters

player

Target listener (player)

instrument

Selected intrument (1-127)

octave

Selected octave (0-8)

note

Selected note

velocity

Velocity (volume) of the note

duration

Play duration of the note (ms)

Description

Allows to play selected MIDI note to a player.