setPanning()
Set the sample's stereo position.
Parameters
Once an object audiosample has been created, you can use the following functions:
audiosample.setPanning(panning)
audiosample.setPanning(panning, voice)
| Parameter | Type | Default | Description |
|---|---|---|---|
panning |
int |
required | Stereo position from 0 (left) to 127 (right). |
voice |
int |
0 |
Which voice to set, from 0 to one less than the number of voices. |