beep

fun beep(note: Int, volume: Int = 100): Boolean(source)

Requests a note at the given volume.

Rejected sounds are not queued. A request may be rejected by the per-computer or server-wide rate limit.

Return

true when the server admits the sound, or false when it rejects the request.

Parameters

note

note-block pitch in the inclusive range 0..24; 12 is neutral pitch.

volume

volume percentage in the inclusive range 1..100.

Throws

if note or volume is outside its accepted range.