How does Ctrlr decide where to put content?

Home Forums General Programming How does Ctrlr decide where to put content?

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #118221
    shooking
    Blocked
      • Topics: 14
      • Replies: 60
      • Total: 74

      PRIMARY QUESTION

      I can also see Crtlr is stashing stuff in “roaming” profile.

      Is there any way to constrain where the content is written?

      I am more than a little confused about how to distribute my panel. Does the bzpanel package everything?

      WHY I AM ASKING THIS QUESTION

      So I had a catastrophic panel failure recently – seemed to lose a lot of my Lua code.
      Reading thru the forums I can see I am neither the first not the last.

      Sure, I understand now that using 5.x is better than using 6.x
      I used a LUA Editor function to extract source.
      Wrote some Linux commands to compare the different files and found my best working set.

      Then I merged them into a directory, opened them up in editor and started to go thru the task of either cutting and pasting the newer content in or creating a new file.

      Hmmh … a LOT of my file content had come back… but I didnt do anything to deserve this honest.

      A check under the hood an panel has content like this

      
            <luaMethodGroup name="Global" uuid="b3219ab5e982443f8fb96e480d99fa7d">
              <luaMethod luaMethodName="afterLoadSetGlobals" luaMethodSourcePath="afterLoadSetGlobals.lua"
                         luaMethodSource="1" uuid="0a1507d2462b424abd79572627a64c82" luaMethodValid="1"/>
              <luaMethod luaMethodName="debugConsole" luaMethodSourcePath="debugConsole.lua"
                         luaMethodSource="1" uuid="2b44d6fb272d412c882e67f7386b5dc3" luaMethodValid="1"/>
              <luaMethod luaMethodName="setupGlobalArray" luaMethodSourcePath="setupGlobalArray.lua"
                         luaMethodSource="1" uuid="e3a0527663ea49bea3e27040da0e8e9f" luaMethodValid="1"/>
              <luaMethod luaMethodName="addDelay" luaMethodCode="-- delay in s&#13;&#10;function addDelay(n)&#10;  local t = os.clock()&#13;&#10;  while os.clock() - t <= n do&#13;&#10;    -- nothing&#13;&#10;  end&#10;end"
                         luaMethodLinkedProperty="" luaMethodSource="0" uuid="0451bdd755df4ca9b60b2f1309e78f8e"
                         luaMethodValid="1"/>
              <luaMethod luaMethodName="addDelayMS" luaMethodCode="function addDelayMS(n)&#10;    os.execute(sleep(n))&#10;end"
                         luaMethodLinkedProperty="" luaMethodSource="0" uuid="fe75bc256d54455ba1b8d1db1bc4ff76"
                         luaMethodValid="1"/>
              <luaMethod luaMethodName="usefulHints" luaMethodCode="function usefulHints()&#10;&#9;-- Your method code here&#13;&#10;&#13;&#10;--[[&#13;&#10;    Massive comment block&#13;&#10;    Store useful tips from forum - never know when you need them&#13;&#10;&#13;&#10;    L - if text comes back from some operations L it.&#13;&#10;&#13;&#10;    &#10;    >>> console(&quot;&quot;..L(panel:getPropertyString(&quot;panelMidiOutputChannelDevice&quot;)))&#10;1&#10;&#10;&#10;    >>> console(&quot;&quot;..L(panel:getPropertyString(&quot;panelMidiOutputChannelDevice&quot;)))&#10;10&#10;&#10;    >>> console(&quot;&quot;..L(panel:getPropertyString(&quot;panelMidiInputChannelDevice&quot;)))&#10;8&#10;&#10;&#10;    >>> console(&quot;&quot;..L(panel:getPropertyString(&quot;panelMidiControllerChannelDevice&quot;)))&#10;1&#10;&#10;&#10;    >>> console(&quot;&quot;..L(panel:getPropertyString(&quot;panelMidiInputDevice&quot;)))&#10;Midex8 2&#10;&#10;>>> console(&quot;&quot;..L(panel:getPropertyString(&quot;panelMidiOutputDevice&quot;)))&#10;    Midex8 2&#10;&#10;>>> console(&quot;&quot;..L(panel:getPropertyString(&quot;panelMidiControllerDevice&quot;)))&#10;Midex8 4&#10;&#13;&#10;multiTab use this to determine which tab, and hence whether to write multi or single.&#13;&#10;   panel:getModulatorByName (&quot;multiTab&quot;):getModulatorValue()&#13;&#10;   panel:getModulatorByName (&quot;multiTab&quot;):setModulatorValue(vvv, false, false, false)&#13;&#10;&#13;&#10;    comp:setPropertyString(&quot;uiLabelText&quot;, &quot;Load All..&quot;)&#13;&#10;    panel:getModulatorByName (&quot;multiTab&quot;):setModulatorValue(vvv, false, false, false)&#13;&#10;comp:getOwner():getModulatorValue()&#13;&#10;&#13;&#10;&#13;&#10;https://ctrlr.org/forums/topic/ctrlrluautils/&#13;&#10;&#13;&#10;perfName = utils.askForTextInputWindow(&quot;Performance Name&quot;,&quot;&quot;,&quot;Grand Piano&quot;,&quot;New name:&quot;,false,&quot;OK&quot;,&quot;Cancel&quot;)&#13;&#10;&#13;&#10;https://ctrlr.org/forums/topic/multiple-midi-ports/&#13;&#10;&#13;&#10; !&quot;#$%&'()&#13;&#10; !&quot;#$%&'()&#13;&#10;&#13;&#10;function resetMIDIdevice()&#13;&#10;&#9;-- Trick to avoid doubled MIDI messages&#13;&#10;&#9;local sMIDIDeviceName=panel:getProperty(&quot;panelMidiOutputDevice&quot;)&#13;&#10;&#9;panel:setPropertyString(&quot;panelMidiOutputDevice&quot;,&quot;-- None&quot;)&#13;&#10;&#9;panel:setPropertyString(&quot;panelMidiOutputDevice&quot;,sMIDIDeviceName)&#13;&#10;&#13;&#10;&#9;local sMIDIDeviceName=panel:getProperty(&quot;panelMidiControllerDevice&quot;)&#13;&#10;&#9;panel:setPropertyString(&quot;panelMidiControllerDevice&quot;,&quot;-- None&quot;)&#13;&#10;&#9;panel:setPropertyString(&quot;panelMidiControllerDevice&quot;,sMIDIDeviceName)&#13;&#10;&#13;&#10;&#9;local sMIDIDeviceName=panel:getProperty(&quot;panelMidiInputDevice&quot;)&#13;&#10;&#9;panel:setPropertyString(&quot;panelMidiInputDevice&quot;,&quot;-- None&quot;)&#13;&#10;&#9;panel:setPropertyString(&quot;panelMidiInputDevice&quot;,sMIDIDeviceName)&#13;&#10;&#9;&#9;&#13;&#10;&#13;&#10;end&#13;&#10;&#13;&#10;--]]&#13;&#10;&#10;end"
                         luaMethodLinkedProperty="" luaMethodSource="0" uuid="4909f19f7125475b9f6907b468952972"
                         luaMethodValid="1"/>
      
      

      I didnt ask for the content to be put in C. My panel is rooted in F:\
      And many of the Lua methods in my panel XML are no external rather than internal to the panel … ???

    Viewing 1 post (of 1 total)
    • The forum ‘Programming’ is closed to new topics and replies.
    There is currently 0 users and 96 guests online
    No users are currently active
    Forum Statistics
    Threads: 2,495, Posts: 17,374, Members: 77,605
    Most users ever online was 12 on January 22, 2019 3:47 pm
    Ctrlr