Roland MC303 Mark1 Panel PoC #674
Replies: 3 comments
-
The exporting instance process is the same for the exe or the VST. Your panel is really nice, it seems you put everything you could to control each and every parameters available. Good job! |
Beta Was this translation helpful? Give feedback.
-
@damiensellier THANKS for info on that!
Thanks again for the info brother! TDLTR;
somethingcool = function(mod, value)
end
function SomethingCool(mod,value)
end
Ctrlr => OO Design Pattern--
-- Called when a panel receives a midi message (does not need to match any modulator mask)
-- @midi CtrlrMidiMessage object
--
ListenerMidiRx = function(--[[ CtrlrMidiMessage --]] midi)
local midiHexString = midi:getData():toHexString(1)
if (midiHexString == nil) then return end
p(string.format("MIDI RX:[%s]",tostring(midiHexString)))
-- immediately call into framework once I get what I need from the Ctrlr environment
-- this allows me to test 90% of back-end code without Ctrlr even running
CtrlrHandler.MidiIn(midiHexString)
end Example Lua OO with LuaDoc annotations |
Beta Was this translation helpful? Give feedback.
-
FYI: Successfully exported test panel with one Lua OO Class & 2 Ctrlr Native function calls that invoke it.
--
-- Called when a modulator value changes
-- @mod http://ctrlr.org/api/class_ctrlr_modulator.html
-- @value new numeric value of the modulator
--
sliderOnValueChange = function(--[[ CtrlrModulator --]] mod, --[[ number --]] value, --[[ number --]] source)
console(string.format("VALUE: [%s]",tostring(value)))
CommonFunc("sliderOnValueChange",tostring(value))
end
-- Called when a modulator value changes
-- @mod http://ctrlr.org/api/class_ctrlr_modulator.html
-- @value new numeric value of the modulator
--
buttonOnValueChange = function(--[[ CtrlrModulator --]] mod, --[[ number --]] value, --[[ number --]] source)
console(string.format("VALUE: [%s]",tostring(value)))
CommonFunc("buttonOnValueChange",tostring(value))
end
---@class CommonFunc
CommonFunc={}
---@param modname string
-- -@param mod CtrlrModulator
---@param value number
function CommonFunc(modname, value)
if((modname==nil) or (value==nil)) then return end
console(string.format("CommonFunc: [%s][%s]",tostring(modname),tostring(value)))
end |
Beta Was this translation helpful? Give feedback.
-
Roland MC303 Mark1 Panel
General Support
GetParam
Supportdot syntax
intellisense lookupsVSTi woes
MC303_1_0_mark1_2024-08-07_00-20.zip
Beta Was this translation helpful? Give feedback.
All reactions