Skip to content

How to change MIDI CC of a modulator from Lua? #667

Answered by dnaldoog
dervur asked this question in Q&A
Discussion options

You must be logged in to vote

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 parameter

panel: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")

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@dervur
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@dervur
Comment options

Answer selected by dervur
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants