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) → floatParameters
| Name | Type |
|---|---|
| instanceID | integer |
Every form returns
float
Example · generated
DO Print(SoundInstanceRate(1)) Sync()LOOPSoundInstanceRate 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.