SoundInstanceRate

Family: Sound · One form

What it does

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

Syntax

SoundInstanceRate(instanceID integer) → float

Parameters

NameType
instanceIDinteger

Every form returns

float

Example · generated

DO  Print(SoundInstanceRate(1))  Sync()LOOP

SoundInstanceRate 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