Lost my work again.

Home Forums General General MIDI discussion Lost my work again.

This topic contains 7 replies, has 2 voices, and was last updated by  Sidar 1 month ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #115219

    Sidar
    Participant
    • Topics: 1
    • Replies: 5
    • Total: 6

    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 1 month ago by  Sidar.
    • This topic was modified 1 month ago by  Sidar.
    Attachments:
    You must be logged in to view attached files.
    #115225
    Possemo
    Possemo
    Participant
    • Topics: 13
    • Replies: 568
    • Total: 581
    • ★★★

    Hmm 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.
    #115228

    Sidar
    Participant
    • Topics: 1
    • Replies: 5
    • Total: 6

    Am on PC using 5.3.201

    I also figured out which part is causing it

      <luaMethod luaMethodName="ReverbTypes" luaMethodCode="--&#10;-- Called when a modulator value changes&#10;-- @mod   http://ctrlr.org/api/class_ctrlr_modulator.html&#10;-- @value    new numeric value of the modulator&#10;--&#10;ChorusTypes = function(--[[ CtrlrModulator --]] mod, --[[ number --]] value, --[[ number --]] source)&#10;&#13;&#10;NONE &#9;&#9;= &#9;CtrlrMidiMessage({0xF0,0x43,0x10,0x4C,0x02,0x01,0x00,0x00,0x00,0xF7})&#13;&#10;HALL1 &#9;&#9;= &#9;CtrlrMidiMessage({0xF0,0x43,0x10,0x4C,0x02,0x01,0x00,0x01,0x00,0xF7})&#13;&#10;HALL2 &#9;&#9;= &#9;CtrlrMidiMessage({0xF0,0x43,0x10,0x4C,0x02,0x01,0x00,0x01,0x01,0xF7})&#13;&#10;Room1 &#9;&#9;=&#9;CtrlrMidiMessage({0xF0,0x43,0x10,0x4C,0x02,0x01,0x00,0x02,0x00,0xF7})&#13;&#10;Room2 &#9;&#9;=&#9;CtrlrMidiMessage({0xF0,0x43,0x10,0x4C,0x02,0x01,0x00,0x02,0x01,0xF7})&#13;&#10;Room3 &#9;&#9;=&#9;CtrlrMidiMessage({0xF0,0x43,0x10,0x4C,0x02,0x01,0x00,0x02,0x02,0xF7})&#13;&#10;Stage1 &#9;&#9;=&#9;CtrlrMidiMessage({0xF0,0x43,0x10,0x4C,0x02,0x01,0x00,0x03,0x00,0xF7})&#13;&#10;Stage2 &#9;&#9;=&#9;CtrlrMidiMessage({0xF0,0x43,0x10,0x4C,0x02,0x01,0x00,0x03,0x01,0xF7})&#13;&#10;Plate &#9;&#9;=&#9;CtrlrMidiMessage({0xF0,0x43,0x10,0x4C,0x02,0x01,0x00,0x04,0x00,0xF7})&#13;&#10;WHITE &#9;&#9;=&#9;CtrlrMidiMessage({0xF0,0x43,0x10,0x4C,0x02,0x01,0x00,0x10,0x00,0xF7})&#13;&#10;TUNNEL &#9;&#9;=&#9;CtrlrMidiMessage({0xF0,0x43,0x10,0x4C,0x02,0x01,0x00,0x11,0x00,0xF7})&#13;&#10;BASEMENT &#9;=&#9;CtrlrMidiMessage({0xF0,0x43,0x10,0x4C,0x02,0x01,0x00,0x13,0x00,0xF7})&#13;&#10;&#13;&#10;if value == 0 then&#13;&#10;panel:sendMidiMessageNow(NONE)&#13;&#10;elseif value == 1 then&#13;&#10;panel:sendMidiMessageNow(HALL1)&#13;&#10;elseif value == 2 then&#13;&#10;panel:sendMidiMessageNow(HALL2)&#13;&#10;elseif value == 3 then&#13;&#10;panel:sendMidiMessageNow(Room1)&#13;&#10;elseif value == 4 then&#13;&#10;panel:sendMidiMessageNow(Room2)&#13;&#10;elseif value == 5 then&#13;&#10;panel:sendMidiMessageNow(Room3)&#13;&#10;elseif value == 6 then&#13;&#10;panel:sendMidiMessageNow(Stage1)&#13;&#10;elseif value == 7 then&#13;&#10;panel:sendMidiMessageNow(Stage2)&#13;&#10;elseif value == 8 then&#13;&#10;panel:sendMidiMessageNow(Plate)&#13;&#10;elseif value == 9 then&#13;&#10;panel:sendMidiMessageNow(TUNNEL)&#13;&#10;elseif value == 10 then&#13;&#10;panel:sendMidiMessageNow(BASEMENT)&#13;&#10;elseif value == 11 then&#13;&#10;panel:sendMidiMessageNow(FLANGER3)&#13;&#10;end&#13;&#10;&#13;&#10;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="--&#10;-- Called when a modulator value changes&#10;-- @mod   http://ctrlr.org/api/class_ctrlr_modulator.html&#10;-- @value    new numeric value of the modulator&#10;--&#10;ChorusTypes = function(--[[ CtrlrModulator --]] mod, --[[ number --]] value, --[[ number --]] source)&#10;&#13;&#10;NONE = &#9;&#9;CtrlrMidiMessage({0xF0,0x43,0x10,0x4C,0x02,0x01,0x20,0x00,0x00,0xF7})&#13;&#10;CHORUS1 = &#9;CtrlrMidiMessage({0xF0,0x43,0x10,0x4C,0x02,0x01,0x20,0x41,0x00,0xF7})&#13;&#10;CHORUS2 = &#9;CtrlrMidiMessage({0xF0,0x43,0x10,0x4C,0x02,0x01,0x20,0x41,0x01,0xF7})&#13;&#10;CHORUS3 =&#9;CtrlrMidiMessage({0xF0,0x43,0x10,0x4C,0x02,0x01,0x20,0x41,0x02,0xF7})&#13;&#10;CHORUS4 =&#9;CtrlrMidiMessage({0xF0,0x43,0x10,0x4C,0x02,0x01,0x20,0x41,0x08,0xF7})&#13;&#10;CELESTE1 =&#9;CtrlrMidiMessage({0xF0,0x43,0x10,0x4C,0x02,0x01,0x20,0x42,0x00,0xF7})&#13;&#10;CELESTE2 =&#9;CtrlrMidiMessage({0xF0,0x43,0x10,0x4C,0x02,0x01,0x20,0x42,0x01,0xF7})&#13;&#10;CELESTE3 =&#9;CtrlrMidiMessage({0xF0,0x43,0x10,0x4C,0x02,0x01,0x20,0x42,0x02,0xF7})&#13;&#10;CELESTE4 =&#9;CtrlrMidiMessage({0xF0,0x43,0x10,0x4C,0x02,0x01,0x20,0x42,0x08,0xF7})&#13;&#10;FLANGER1 =&#9;CtrlrMidiMessage({0xF0,0x43,0x10,0x4C,0x02,0x01,0x20,0x43,0x00,0xF7})&#13;&#10;FLANGER2 =&#9;CtrlrMidiMessage({0xF0,0x43,0x10,0x4C,0x02,0x01,0x20,0x43,0x01,0xF7})&#13;&#10;FLANGER3 =&#9;CtrlrMidiMessage({0xF0,0x43,0x10,0x4C,0x02,0x01,0x20,0x43,0x08,0xF7})&#13;&#10;&#13;&#10;if value == 0 then&#13;&#10;panel:sendMidiMessageNow(NONE)&#13;&#10;elseif value == 1 then&#13;&#10;panel:sendMidiMessageNow(CHORUS1)&#13;&#10;elseif value == 2 then&#13;&#10;panel:sendMidiMessageNow(CHORUS2)&#13;&#10;elseif value == 3 then&#13;&#10;panel:sendMidiMessageNow(CHORUS3)&#13;&#10;elseif value == 4 then&#13;&#10;panel:sendMidiMessageNow(CHORUS4)&#13;&#10;elseif value == 5 then&#13;&#10;panel:sendMidiMessageNow(CELESTE1)&#13;&#10;elseif value == 6 then&#13;&#10;panel:sendMidiMessageNow(CELESTE2)&#13;&#10;elseif value == 7 then&#13;&#10;panel:sendMidiMessageNow(CELESTE3)&#13;&#10;elseif value == 8 then&#13;&#10;panel:sendMidiMessageNow(CELESTE4)&#13;&#10;elseif value == 9 then&#13;&#10;panel:sendMidiMessageNow(FLANGER1)&#13;&#10;elseif value == 10 then&#13;&#10;panel:sendMidiMessageNow(FLANGER2)&#13;&#10;elseif value == 11 then&#13;&#10;panel:sendMidiMessageNow(FLANGER3)&#13;&#10;end&#13;&#10;&#13;&#10;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?

    #115229

    Sidar
    Participant
    • Topics: 1
    • Replies: 5
    • Total: 6

    Ok 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?

    #115231
    Possemo
    Possemo
    Participant
    • Topics: 13
    • Replies: 568
    • Total: 581
    • ★★★

    Yea may be that was the prob. No crash though with my config: Win10 Ctrlr v5.3.201.

    #115237

    Sidar
    Participant
    • Topics: 1
    • Replies: 5
    • Total: 6

    Ok 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?

    #115238

    Sidar
    Participant
    • Topics: 1
    • Replies: 5
    • Total: 6

    Alright 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 1 month ago by  Sidar.
    • This reply was modified 1 month ago by  Sidar.
    Attachments:
    You must be logged in to view attached files.
    #115242

    Sidar
    Participant
    • Topics: 1
    • Replies: 5
    • Total: 6

    Sorry 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?

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.

There is currently 0 users and 23 guests online
No users are currently active
Forum Statistics
Threads: 2,233, Posts: 15,724, Members: 55,728
Most users ever online was 12 on January 22, 2019 3:47 pm
Do NOT follow this link or you will be banned from the site!