SoundInstanceVolumeSet

Family: Sound · One form

What it does

SoundInstanceVolumeSet takes instanceID (an integer) and volume (an integer), and returns nothing. instanceID is the id of an Instance object, obtained elsewhere in the Sound family.

Syntax

SoundInstanceVolumeSet(instanceID integer, volume integer)

Parameters

NameType
instanceIDinteger
volumeinteger

Every form returns

nothing

Example · generated

SoundInstanceVolumeSet(1, 1)DO  Sync()LOOP

SoundInstanceVolumeSet is called with values of the types its signature asks for. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.

37 commands in Sound