When I tried to use parameterMap.onChange() like the example:
function parameterMap.onChange(valueObjects, origin, midiValue)
print (string.format ("a new midiValue %d from origin %d",
midiValue, origin))
for i, valueObject in ipairs (valueObjects) do
**local control = valueObject:getControl ()**
print (string.format ("affects control value %s.%s",
control:getName (), valueObject:getId ()))
end
end
and I turn a control, I get this error message:
16:06:20.177 lua: a new midiValue 463 from origin 0
16:06:20.195 error running function 'onChange': ctrlv2/p000.lua:1313: attempt to index a userdata value (local 'valueObject')
(the line in question is the one with the ** **)