Reply To: Lost my work again.

Home Forums General General MIDI discussion Lost my work again. Reply To: Lost my work again.

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

Ctrlr