Function stereo

  • get or set the stereo panning for the specified sound.

    Parameters

    • sound_name: string

      audio clip name - case sensitive

    • Optionalpan: number

      the panning value - A value of -1.0 is all the way left and 1.0 is all the way right.

    • Optionalid: number

      the sound instance ID. If none is passed, all sounds in group will be changed.

    Returns number

    the current panning value

    me.audio.stereo("cling", -1);