Get or set the stereo panning for a sound.
Call with just sound_name to read back the group's current pan; call with a pan value (and optionally id) to write it.
sound_name
pan
id
Audio clip name (case-sensitive).
Pan value, -1.0 (full left) to 1.0 (full right). Omit to read the current value.
-1.0
1.0
Sound instance ID. When omitted, all sounds in the group are affected.
The current pan value when called as a getter; nothing when called as a setter.
me.audio.stereo("cling", -1); // setme.audio.stereo("cling"); // read Copy
me.audio.stereo("cling", -1); // setme.audio.stereo("cling"); // read
Optional
Get or set the stereo panning for a sound.
Call with just
sound_nameto read back the group's current pan; call with apanvalue (and optionallyid) to write it.Param: sound_name
Audio clip name (case-sensitive).
Param: pan
Pan value,
-1.0(full left) to1.0(full right). Omit to read the current value.Param: id
Sound instance ID. When omitted, all sounds in the group are affected.
Returns
The current pan value when called as a getter; nothing when called as a setter.
Example