Today I tried to adapt the LFO example Preset to my needs. Unfortunately, I am again struggling with the logic behind “parameterMap”.
I am working with the following example function:
function startLFO(valueObject, value)
-- ________________________________________________________
if value == 0 then return end
faderValue = 0
timer.enable()
timer.setBpm(120 * 8)
function timer.onTick ()
parameterMap.set(1, PT_CC7, 2, faderValue)
faderValue = math.fmod(faderValue + 1, 13)
end
end
Activating the Pad, that is assigned to the function it starts, no matter if there is another control available in this preset. I added a dial by decision before adding the pad so that it gets the control ID 1.
The manual says:
parameterMap.set(deviceId, type, parameterNumber, midiValue)
I tried to select a different device from the editor menu but nothing else than 1 works. As soon as I change the control ID of the dial it also stops working. Even though I added another control with the related ID. I’m sorry again, but I can’t get the logic behind it even though I read a lot in the documentation as well as the LUA API.
My goal would be using it like this …
a) the ability to send i.e. CC data directly to different MIDI devices (different MIDI channels within one preset)
b) remotely controlling an E1 control with a certain ID that controls one or more parameters simultaneously (maybe even SysEx)


