Page tree
Skip to end of metadata
Go to start of metadata

changePan(noteID, pan, relative, immediateOrDuration)


Function to change the position of a specific note in the panorama.

Available in: Processor.


noteIDThe ID of the note that you want to change.number
panThe absolute pan position in the range of -1.0 to 1.0 (relative = false) or the value which is added (relative = true).number
relativeThe value is added to the current amount if this is set to true. The default is false.boolean, optional
immediateOrDurationChange the value immediately or in the specified duration. Set this to true to change the value immediately without controller smoothing. Set a duration in milliseconds to change the value with controller smoothing in the specified time. If not set, this setting defaults to false and the controller smoothing setting in the Options editor is used.boolean or number, optional


-- pan notes depending on MIDI note
-- E3 = center, E2 = hard left, E4 = hard right
function onNote(event)
  local pan = (event.note - 64) / 12
  local id = postEvent(event)
  changePan(id, pan, false, true)


  1. To Sabine Pfeifer:

    The immediate argument now accepts also a duration in ms. Please proof read this part again. Thanks!

    1. Das selbe wie bei change Tune. Der letzte Satz bei immediateOrDuration sollte etwas um- bzw. ausformuliert werden.