Forum Replies Created
-
AuthorPosts
-
Thank you for the suggestion
i tried changing panel name , the xml is called MQSounds
this panel does not use image or sliders with images
my others panels can export imagesi use the file in callback “Called when the panel is created”
local RF = resources:getResource("MQSounds") if RF ~= nil then local BD = RF:asXml() MyRom = XmlElement(BD) MyRom:insertChildElement(XmlElement(String("USER")),7) end
and get it in “Called when data is restored”
for s = 1,420 do if s <= 100 then u = "M"..s elseif s >= 101 and s <= 400 then u = "S"..s - 100 elseif s >= 401 then u = "D"..s - 400 end if stateData:getChild(2):hasProperty(u) == true then MyRom:getChildElement(7):setAttribute(u,stateData:getChild(2):getProperty(u)) end end
all seems ok
i think i need to go in CTRLR source and see , all seems ok in my panel in ressource directory into XmlNotepadEdit: I checked roamming folder already
I ve seen a callbak called “luaPanelResourcesLoaded” i currently don t know what i could type inside that could help
I have removed the µ in panel name and directories ,reloaded resourcebut the error is still there- This reply was modified 4 years, 3 months ago by zeoka.
Hi
It seems that this modulatorvalue is used by the method “label changed”
if you open the text box and the value is 1 then
the value will goes to 0 it must probably correspond to a bool ,
the bool of the text editor so the modulator value is unusefuluilabel text are updated by others mods , when part changing or patch changing
it sends midi when Enter key is pressed so the method “label changed” is launched
and sends midi even if you Don’t wantthere is feedback so i would desactivate this method execept when i edit the label.
this modulator value was good candidate to be a free variable but noi have done a button editname that blocks all navigation during name edit ,
label changed works only when this button is ON
Edit : ( this button play with “Editing begins..” to cancel the method “label changed )i precise this is a multifunction label that displays several types of patchs
it changes most of time- This reply was modified 4 years, 4 months ago by zeoka.
Nice !
to save time.. if someone is interrested
local a = resources:getResource("MySounds") local b = a:asXml() local c = b:getNumChildElements() --LUA>> 5 (int) local e = b:getChildElement(4) --LUA>> Not Nil local f = e:getTagName() --LUA>> ROM5 (string) local g = e:getAttributeValue(2) --LUA>> 7f 02 04 65 20 4d 75...(string)
HEP HEP HEP AT LINE 373 : .def(“asXml”, &CtrlrPanelResource::asXml)
tried a:asXml() but not worksi get the code
const Image CtrlrPanelResourceManager::getResourceAsImage (const String &resourceName) { CtrlrPanelResource *res = getResource (resourceName); if (res != 0) { return (res->asImage()); } return (Image::null); } const Font CtrlrPanelResourceManager::getResourceAsFont (const String &resourceName) { CtrlrPanelResource *res = getResource (resourceName); if (res != 0) { return (res->asFont()); } return (Font()); }
seems currently not possible to read xml via resources
local a seems not to be a file
i tried a:AsFile() also ..Something like that ?
local a = resources:getResource("MySounds") -- MySounds.xml local b = XmlDocument(a) -- a is may be not a file if it is a ressource object ?? if b:getDocumentElement():hasTagName("FACTORY") -- top xml value tree in the file then local c = b:getDocumentElement() local d = c:getChildByName("ROM1") -- a child value tree local e = d:getChildByName("S1") -- the sysex attached to the child console(String(""..e:toHexString(1))) end
it seems that midi Library and vst presets(default ctrlr program) and program snapshot are done to work together.. is it working ? even partially ?
The restricted intance works very well with NKSF(maschine instr) file format
For now when i switch presets it’s ok.very coolHi
so you are using dx7 with a panel ?
if yes
may be you could plug midi beatstep >Scarlet>dx7>beatstep
and use ctrlr midi option like thru ,plugin host etc….
may be using the midi thru on device too
the best is to have 2 midi physical inputs (may be beatstep has usb midi + other via midi ports)Thank you it’s working
also finnally Ctrlr exported restricted instances correcty (5.4.29)
but
-Native instruments Hosts are confused about Ctrlr.dll and own dll
my panels are Under Instigator so Maschine or kore open a ctrtrl.dll with no panelother thing
1 all restricted instances appear with scrollbars
2 i close,open the plugin GUI and it appears correctly
3 i change the panel size with a panel button (a magnifying glass) and close the GUI
4 i open the GUI and its window is changedis it possible to get “automatic” window sizing ?
Attachments:
You must be logged in to view attached files.sorry
have a look to your ctrlr folder in docs folder and open with text filein hosts mainly there is no limit
studio1, fl studio ,reaper, and ni hosts are not limited
probably logic cubase cakewalkctrlr seems not limited , i ‘m currently confused
normally for more than 64 it needs to use *.overrides files
but seems doesn’t need it ( my exported panels don’t use it )
but i’ve ctrlr.overrides set to 2014 max so i assume this is a
max limit and exported panels are adjusted.tip : don’t remember to not “export param to host” (first prop in the modulator panel property) if you don’t want it in the host list
radio group is just used to have only one button to value 1
here you have a bunch of 0&1 values
may be you could use property like cutomIndex
one method (for bank and another for presets) to aplly to all buttons :
first get a varaible (value) how? ask to own button wich index it uses
it is called index x here
put a stetement like :
“if value == 1 then send midi (index x as value)”a problem : radio button function only works with mousedown not with patch update
the l&f is simply not applied to them. on the panel the l&f is applied to canvas
i think may be this is because they are not in the l&f implementation , i see slider ,combo , ect … nothing specific however not sure it needs
Hi
i need to aplly l&f to fixed sliders
Please Atom can you implement them or may be not possible ?
my panel sleeps since i can’t get thatit was hard to design the vp9000 knob. i’ve exaggerated the 3d effect but i’m not happy with the tick yet but it’s another story…..
Attachments:
You must be logged in to view attached files.A demo panel showcasing the midi devices access will follow too.
Cheers!currently it’s still possible to use lua and panel properties i remember
menu hiding thing is weird, if you hide it you can’t export i get that. The best way to use it is via lua, just set the property responsible for the menu bar visibility in you panel’s init function (or wherever).
yes i tought eventually do that
any idea about first param broken issue ?
if i revert to old version there is no issue so i think the bug is not my panelsi look rarely the ctrlr code. When i do it i swim
i just don’t findCan you also verify the Lua editor -> Sort by name? Seems not to work.
I selected a folder (or also the top folder) then requested sort by name but nothing happened… Thx!be careful : the order of methods could be important and you could have lua error at startup if identifiers needed at startup are not loaded
hi
tried instances : the panel window now sizing is ok !
i need to try morei’ve uploaded img that shows how the first parameter behavior is
first : undefined_0 must be osc1freq , broken in the daw
last : osc1freq must be initialvolume , it links the undefined_0 paramthe hiding menu is a good idea but not possible currently to export instance like that 😀
is there a thread about access to midi devices via lua ?
Thank you Atom to add a param to valueChange methods
Attachments:
You must be logged in to view attached files.Hi
it seems that uiButtons are not working anymore (mophodesktop) they don’t change value.
This is working with build 136
The modulator “vstIndex0” is still linked with another mod i really don’t know what the issueI will try vst & instances today
don’t take care about vstIndex
go to panel property -> utility
in the order you see all your mods in xmlchose the first mod in the list that use an identifier and put in his valueChange method (in lua) all your identifier definitions in it .
that way when the panel will load your other methods will ‘know’ -
AuthorPosts