Reference+
Name
set()
Class
AudioSample
Description
Set multiple parameters at once.
Syntax
audiosample.set(rate, pos, amp)
Parameters
rate
(float)
Relative playback rate to use. 1 is the original speed. 0.5 is half speed and one octave down. 2 is double the speed and one octave up.pos
(float)
the panoramic position of this sound unit from -1.0 (left) to 1.0 (right).amp
(float)
the desired playback amplitude of the audiosample as a value from 0.0 (complete silence) to 1.0 (full volume)
Return
void
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.