Home › Forums › General › General MIDI discussion › Lost my work again.
- This topic has 7 replies, 2 voices, and was last updated 4 years, 9 months ago by Sidar.
-
AuthorPosts
-
June 16, 2019 at 9:58 pm #115219
I just started using Ctrlr and have lost work reaching the same progress.
The files won’t open.This happened twice after having a uicombo with a method script attached to it ( value change ).
I duplicate the combo box and added a new method to it, worked out the script. Saved and tried to reload on a later date. File won’t open.The work i did wasn’t much, it’s a few if else statements with sysex calls, but it’s also a bit tedious if I have to do it over every time and is really discouraging. Anyone else having this issue?
I’ve attached the file, the xml seems to be in tact but im sure it’s broken somewhere. Help is appreciated.
Edit:
When double clicking the file I get the following errors:Ctrlr crash at: 16 Jun 2019 22:01:24 Stack trace: 3: RtlCaptureStackContext + 0x1e521 4: RtlAreBitsSet + 0x58
- This topic was modified 4 years, 9 months ago by Sidar.
- This topic was modified 4 years, 9 months ago by Sidar.
Attachments:
You must be logged in to view attached files.June 16, 2019 at 11:12 pm #115225Hmm strange. I could load the panel without probs. Maybe use a name without spaces e.g. Ctrlr_Panel9
I saved the panel and it is attached to this post. What version of Ctrlr are you using? Mac or PC?Attachments:
You must be logged in to view attached files.June 17, 2019 at 7:14 am #115228Am on PC using 5.3.201
I also figured out which part is causing it
<luaMethod luaMethodName="ReverbTypes" luaMethodCode="-- -- Called when a modulator value changes -- @mod http://ctrlr.org/api/class_ctrlr_modulator.html -- @value new numeric value of the modulator -- ChorusTypes = function(--[[ CtrlrModulator --]] mod, --[[ number --]] value, --[[ number --]] source) NONE 		= 	CtrlrMidiMessage({0xF0,0x43,0x10,0x4C,0x02,0x01,0x00,0x00,0x00,0xF7}) HALL1 		= 	CtrlrMidiMessage({0xF0,0x43,0x10,0x4C,0x02,0x01,0x00,0x01,0x00,0xF7}) HALL2 		= 	CtrlrMidiMessage({0xF0,0x43,0x10,0x4C,0x02,0x01,0x00,0x01,0x01,0xF7}) Room1 		=	CtrlrMidiMessage({0xF0,0x43,0x10,0x4C,0x02,0x01,0x00,0x02,0x00,0xF7}) Room2 		=	CtrlrMidiMessage({0xF0,0x43,0x10,0x4C,0x02,0x01,0x00,0x02,0x01,0xF7}) Room3 		=	CtrlrMidiMessage({0xF0,0x43,0x10,0x4C,0x02,0x01,0x00,0x02,0x02,0xF7}) Stage1 		=	CtrlrMidiMessage({0xF0,0x43,0x10,0x4C,0x02,0x01,0x00,0x03,0x00,0xF7}) Stage2 		=	CtrlrMidiMessage({0xF0,0x43,0x10,0x4C,0x02,0x01,0x00,0x03,0x01,0xF7}) Plate 		=	CtrlrMidiMessage({0xF0,0x43,0x10,0x4C,0x02,0x01,0x00,0x04,0x00,0xF7}) WHITE 		=	CtrlrMidiMessage({0xF0,0x43,0x10,0x4C,0x02,0x01,0x00,0x10,0x00,0xF7}) TUNNEL 		=	CtrlrMidiMessage({0xF0,0x43,0x10,0x4C,0x02,0x01,0x00,0x11,0x00,0xF7}) BASEMENT 	=	CtrlrMidiMessage({0xF0,0x43,0x10,0x4C,0x02,0x01,0x00,0x13,0x00,0xF7}) if value == 0 then panel:sendMidiMessageNow(NONE) elseif value == 1 then panel:sendMidiMessageNow(HALL1) elseif value == 2 then panel:sendMidiMessageNow(HALL2) elseif value == 3 then panel:sendMidiMessageNow(Room1) elseif value == 4 then panel:sendMidiMessageNow(Room2) elseif value == 5 then panel:sendMidiMessageNow(Room3) elseif value == 6 then panel:sendMidiMessageNow(Stage1) elseif value == 7 then panel:sendMidiMessageNow(Stage2) elseif value == 8 then panel:sendMidiMessageNow(Plate) elseif value == 9 then panel:sendMidiMessageNow(TUNNEL) elseif value == 10 then panel:sendMidiMessageNow(BASEMENT) elseif value == 11 then panel:sendMidiMessageNow(FLANGER3) end end" luaMethodLinkedProperty="luaModulatorValueChange" luaMethodSource="0" uuid="22531e68545b4bba9c2627c3e3e7ccec" luaMethodValid="1"/>
For reference the other method that works which is similar looks like this
<luaMethod luaMethodName="ChorusTypes" luaMethodCode="-- -- Called when a modulator value changes -- @mod http://ctrlr.org/api/class_ctrlr_modulator.html -- @value new numeric value of the modulator -- ChorusTypes = function(--[[ CtrlrModulator --]] mod, --[[ number --]] value, --[[ number --]] source) NONE = 		CtrlrMidiMessage({0xF0,0x43,0x10,0x4C,0x02,0x01,0x20,0x00,0x00,0xF7}) CHORUS1 = 	CtrlrMidiMessage({0xF0,0x43,0x10,0x4C,0x02,0x01,0x20,0x41,0x00,0xF7}) CHORUS2 = 	CtrlrMidiMessage({0xF0,0x43,0x10,0x4C,0x02,0x01,0x20,0x41,0x01,0xF7}) CHORUS3 =	CtrlrMidiMessage({0xF0,0x43,0x10,0x4C,0x02,0x01,0x20,0x41,0x02,0xF7}) CHORUS4 =	CtrlrMidiMessage({0xF0,0x43,0x10,0x4C,0x02,0x01,0x20,0x41,0x08,0xF7}) CELESTE1 =	CtrlrMidiMessage({0xF0,0x43,0x10,0x4C,0x02,0x01,0x20,0x42,0x00,0xF7}) CELESTE2 =	CtrlrMidiMessage({0xF0,0x43,0x10,0x4C,0x02,0x01,0x20,0x42,0x01,0xF7}) CELESTE3 =	CtrlrMidiMessage({0xF0,0x43,0x10,0x4C,0x02,0x01,0x20,0x42,0x02,0xF7}) CELESTE4 =	CtrlrMidiMessage({0xF0,0x43,0x10,0x4C,0x02,0x01,0x20,0x42,0x08,0xF7}) FLANGER1 =	CtrlrMidiMessage({0xF0,0x43,0x10,0x4C,0x02,0x01,0x20,0x43,0x00,0xF7}) FLANGER2 =	CtrlrMidiMessage({0xF0,0x43,0x10,0x4C,0x02,0x01,0x20,0x43,0x01,0xF7}) FLANGER3 =	CtrlrMidiMessage({0xF0,0x43,0x10,0x4C,0x02,0x01,0x20,0x43,0x08,0xF7}) if value == 0 then panel:sendMidiMessageNow(NONE) elseif value == 1 then panel:sendMidiMessageNow(CHORUS1) elseif value == 2 then panel:sendMidiMessageNow(CHORUS2) elseif value == 3 then panel:sendMidiMessageNow(CHORUS3) elseif value == 4 then panel:sendMidiMessageNow(CHORUS4) elseif value == 5 then panel:sendMidiMessageNow(CELESTE1) elseif value == 6 then panel:sendMidiMessageNow(CELESTE2) elseif value == 7 then panel:sendMidiMessageNow(CELESTE3) elseif value == 8 then panel:sendMidiMessageNow(CELESTE4) elseif value == 9 then panel:sendMidiMessageNow(FLANGER1) elseif value == 10 then panel:sendMidiMessageNow(FLANGER2) elseif value == 11 then panel:sendMidiMessageNow(FLANGER3) end end" luaMethodLinkedProperty="luaModulatorValueChange" luaMethodSource="0" uuid="ec043aafcf8c40de91eff87e0a324956" luaMethodValid="1"/>
Your attachment crashes too.
I was about to make an issue on github, should I continue?
June 17, 2019 at 7:19 am #115229Ok my bad I found out why.
I copied the function over and overriding the function name.
They both had “ChorusTypes” as function name. Perhaps an error message about this would help a lot?June 17, 2019 at 9:15 am #115231Yea may be that was the prob. No crash though with my config: Win10 Ctrlr v5.3.201.
June 17, 2019 at 6:57 pm #115237Ok so my file won’t open again, not sure what I did this time. No error thrown either it just closes.
Is there a way to debug?
I’ve attached the file, can does it open for you?June 17, 2019 at 7:20 pm #115238Alright there is definitely some bugs going on.
1: File wouldn’t open because of the groupname property on one of the modulator, after removing it opens again
2: For whatever reason one of my group panels always gets parented into one of the other panels after reopening the file.No idea how to fix point 2
edit:
File attached, second tab, “Phaser” group is hidden in “Tremelo group”- This reply was modified 4 years, 9 months ago by Sidar.
- This reply was modified 4 years, 9 months ago by Sidar.
Attachments:
You must be logged in to view attached files.June 17, 2019 at 7:38 pm #115242Sorry for spamming, looks like I solved it. Not sure how
Panel File Path
works but for whatever reason it kept pointing to a different file. Is there more to this or does that sound like a bug? -
AuthorPosts
- The forum ‘General MIDI discussion’ is closed to new topics and replies.