Hi
is it possible to put the onValue entrys from the custom-modul?
Is the syntax
props.onValue = \`
..
\`
receive('/EDIT', 'matrix_art', {'props': `JS{{
var props = {}
var VARartName = [${artName}]
var VARartColor = [${artColor}]
var MatrixIndex = [17,18,19,20,37,38,39,40,57,58,59,60,13,14,15,16,33,34,35,36,53,54,55,56,9,10,11,12,29,30,31,32,49,50,51,52,5,6,7,8,25,26,27,28,45,46,47,48,1,2,3,4,21,22,23,24,41,42,43,44]
props.colorWidget = VARartColor[$]
props.alphaFillOff = 1
props.alphaFillOn = 0
props.lineWidth = 0
props.padding = 1
props.css = "font-size: 80%"
props.wrap = "soft"
props.mode = "tap"
props.label = VARartName[$]
props.address = "/program"
props.preArgs = [
1,
MatrixIndex[$]-1
]
props.target = "midi:OSC"
props.onValue = \`
var instrumentCode = parseInt(get("text_code", value))
var vepKeys = get('variable_vepKeys')
var s1 = parseInt(vepKeys.keys[instrumentCode].'s' + MatrixIndex[$]-1)
var e1 = parseInt(vepKeys.keys[instrumentCode].'e' + MatrixIndex[$]-1)
var sk1 = vepKeys.keys[instrumentCode].'sk' + MatrixIndex[$]-1
var ek1 = vepKeys.keys[instrumentCode].'ek' + MatrixIndex[$]-1
set ("range_2A_art_keyboard", [s1,e1+1])
set ("text_2A_art_range_key_start", sk1)
set ("text_2A_art_range_key_end", ek1)
\`
return props
}}`
});
If i am doing that way, I receive this error