Skip to content

setPanning()

Set the main stereo position for a channel.

The default is the middle (64). Note that this does not affect a score played through Play.midi() or Play.audio().

Parameters

Play.setPanning() is a static utility. Call it on the Play class itself, for example:

Play.setPanning(panning)
Play.setPanning(panning, channel)

Parameter Type Default Description
panning int required Stereo position from 0 (left) through 64 (center) to 127 (right).
channel int 0 The channel to set, from 0 to 15.