hi,
at last I get into SysEX export/import with my NL3 panel.
I can export/import but still there are issues during the test with hardware. But I think it can be solved )
ok, I used the code taken as example from Virus TI panel – thanks to author – really helps me to get a lot of things
But I stuck with this one.
The patch name 16 characters starts from 7 byte so my programName range is (7,23)
ok there is a Load button which supposed to be loading SysEx files. it loads fine – setting modulators values but..
I can not display the patch name properly on uiLabel.
So this is my code
[code:y4xvp0xt]symbols = {"|","|","|","|","|","|","|","|","|","|","|","|","|","|","|","|","|","|","|","|","|","|","|","|","|","|","|","|","|","|","|"," ","!"," ","#","$","%","&","’","(",")","*","+","4","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","<","=",">","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","b","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~"}
a = symbols[programName:getByte(7)]
b = symbols[programName:getByte(]
c = symbols[programName:getByte(9)]
d = symbols[programName:getByte(10)]
e = symbols[programName:getByte(11)]
f = symbols[programName:getByte(12)]
g = symbols[programName:getByte(13)]
h = symbols[programName:getByte(14)]
i = symbols[programName:getByte(15)]
j = symbols[programName:getByte(16)]
k = symbols[programName:getByte(17)]
l = symbols[programName:getByte(18)]
m = symbols[programName:getByte(19)]
n = symbols[programName:getByte(20)]
o = symbols[programName:getByte(21)]
p = symbols[programName:getByte(22)]
text = string.format("%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s",a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p)
patchName = panel:getModulatorByName("PatchNameBox")
if patchName ~= nil then
c = patchName:getComponent()
c:setPropertyString ("uiLabelText", text)
end
[/code:y4xvp0xt]
what does %s do for text in string.format? how to display the full 16 character of the patchname?
another thing I would like to clarify how to merge 2 strings data.
For example,
[code:y4xvp0xt]text1 = "filename"
text2 = ".syx"
[/code:y4xvp0xt]
is it possible to do like [code:y4xvp0xt]text = text1 + text2[/code:y4xvp0xt]
Many thanks