-
Hello there, Is there a way to check and change CC values of modulators via Lua? I think it should be possible but I'm missing something here I think cause my code crashes. The one to get the CC should be:
Right? This does not make Ctrlr crash. However even doing I can't seem to be able to set a CC either, what I'm doing is: Does anybody know if what I want to do is possible and if yes where is my mistake? Cheers |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Ok it appears that also my code above is doing nothing albeit it runs because |
Beta Was this translation helpful? Give feedback.
-
Oh I just saw #619 so it is a known issue... |
Beta Was this translation helpful? Give feedback.
-
The following works on 5.3.201, but crashes on my build of 5.6!
|
Beta Was this translation helpful? Give feedback.
The following works on 5.3.201, but crashes on my build of 5.6!
You had the getProperty code correct but
SetProperty()
needs a third boolean parameterpanel:getModulatorByName("Sample Part-1"):getMidiMessage():setProperty("midiMessageCtrlrNumber", 5,true)
console("okay")
local mod = panel:getModulatorByName("Sample Part-1")
local CC = mod:getMidiMessage():getProperty("midiMessageCtrlrNumber")
console(CC.."CC")