stereoSFX(which channel, which folder, clip0, clip1, priority, left volume, right volume)

From pinHeck Wiki
Jump to: navigation, search

Examples:

stereoSFX(0, 'C', 'A', 65 + random(14), 255, 100, 0);

Randomly selects from CAA.wav-CAD.wav and plays it only on the left channel.

stereoSFX(0, 'A', 'A', '0', 255, 0, 100);

Plays AA0.wav only on the right channel.

stereoSFX(0, 'A', 'A', '0', 255, 25, 75);

Plays AA0.wav mostly on the right channel, but a little on the left.


This command lets you spice up the sound a bit. It temporarily overrides the volume settings for a channel to create a stereo panning effect. The channel's default volume is restored once the sound effect finishes.

One good use is to go from left to right during pop bumper hits or other rapid action. Since the sound is entirely in one speaker, you may want to avoid a full volume of 100 to reduce overmodulation.

Otherwise, it works exactly like a normal playSFX command.