SoundInstanceVolume

Family: Sound · One form

What it does

SoundInstanceVolume takes instanceID (an integer), and answers an integer. instanceID is the id of an Instance object, obtained elsewhere in the Sound family.

Syntax

SoundInstanceVolume(instanceID integer) → integer

Parameters

NameType
instanceIDinteger

Every form returns

integer

Example · generated

DO  Print(SoundInstanceVolume(1))  Sync()LOOP

SoundInstanceVolume is called and its answer is printed every frame. 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