Home Forums General Using Ctrlr low priority questions/requests

This topic contains 2 replies, has 2 voices, and was last updated by msepsis msepsis 10 months, 2 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #641
    msepsis
    msepsis
    Participant

    Just a few minor things–is there a way, could there be a way…

    -to disable a modulator from having it’s value displayed in a uiLabel that is set to "display last changed modulator"?
    -to display a space (and only a space, as in no text at all) in a ui combobox? I’m using uiCombos to display patch names, the first value is a space, which is ignored by ctrlr. **
    -send a midi file that contains a sysex patch dump (as opposed to just a txt file)
    -Lua message "called when panel has finished loading" seems to not work as expected. I have a script to initialize all combos (set to max, then min values) set here but it doesn’t seem to run all the way through when I open the panel.. I have the same script attached to a button which I’ve just been pressing every time I load the panel fresh.
    -is ctrlr freely distributable? That is, if i have a download link somewhere like on sourceforge etc for this panel can I also bundle the latest stable ctrlr?
    -you have plans to allow us to upload just the standalone to the device panels ddb, right?

    **is the uiLabel capable of sending/receiving typed input? It’d be quite nice for patch names–to be able to type them in then send/receive them as ascii characters through sysex. It would require some customization per vendor ID but the concept and methods are pretty similar across all synths.

    forgive me for the catch-all topic, just a few lingering items on my to-do list.

    Monstrum Media | Music, Sound & Software Design, Chicago / San Francisco listen
    #4501
    atom
    atom
    Moderator

    - possible, can be added
    - don’t think it’s possible, it’s not my code that is JUCE doing stuff with the Combos
    - don’t know what’s the problem here ? you can always do that in LUA, do you want some native GUI option to do that (that can be done)
    - it’s impossible that it’s not "all the way through" ? this is programming either something runs or not <img src=” title=”Smile” /> need to be more specific
    - yes you can
    - yes i’m planning on that DDB feature

    ** you can enable editing on the uiLabel there are special properties in the uiLabel component for that, and a special LUA callback that’s called whenever the content changes.

    #4502
    msepsis
    msepsis
    Participant
    "atom":2cvv9cps wrote:
    - don’t know what’s the problem here ? you can always do that in LUA, do you want some native GUI option to do that (that can be done)
    [/quote:2cvv9cps]
    ah I just wasn’t sure yet as I hadn’t tried. midi files usually need to be "played" out by a daw, apparently ctrlr can handle dumping sysex from a midi file natively.

    "atom":2cvv9cps wrote:
    - it’s impossible that it’s not "all the way through" ? this is programming either something runs or not <img src=” title=”Smile” /> need to be more specific
    [/quote:2cvv9cps]

    yeah that’s what I thought. Either it should go or not.. but in the case of this script it seems it doesn’t make it through all the way. I could overwhelm by giving you the entire script but here’s an overview of my Lua function "MaxMinAll" and the callback that goes with it:
    [code:2cvv9cps]MaxMinALL = function(modulator, newValue)
    timer:setCallback (31, maxminCallback)
    timer:startTimer(31,500)

    -- SET ALL COMBOBOXES TO MAX
    panel:getModulatorByName("Osc 2 Octave"):setValueMapped(127,false)
    panel:getModulatorByName("Osc 2 Semitone"):setValueMapped(127,false)
    --etc, etc
    BSMax= panel:getModulatorByName("Bank Selection"):getMaxModulatorValue()
    panel:getModulatorByName("Bank Selection"):setModulatorValue(BSMax, false, false, false)
    PNMax= panel:getModulatorByName("Program Number"):getMaxModulatorValue()
    panel:getModulatorByName("Program Number"):setModulatorValue(PNMax, false, false, false)
    -- etc etc for all comboboxes on panel
    [/code:2cvv9cps]

    the callback method "maxminCallback" just goes and sets all comboboxes to their min value:
    [code:2cvv9cps]function maxminCallback (timerId)

    -- SET ALL COMBOBOXES TO MIN

    panel:getModulatorByName("Filter 1 Extra Select"):setModulatorValue(0, false, false, false)
    panel:getModulatorByName("Filter 1 Extra Label"):setModulatorValue(0, false, false, false)
    panel:getModulatorByName("Distortion Amp Type"):setModulatorValue(0, false, false, false)
    --etc etc

    BSMin= panel:getModulatorByName("Bank Selection"):getMinModulatorValue()
    panel:getModulatorByName("Bank Selection"):setModulatorValue(BSMin, false, false, false)
    --etc etc

    timer:stopTimer(31)

    --LAST step:

    panel:getModulatorByName("Distortion Amp Type"):getComponent():setPropertyInt("componentVisibility",0)
    panel:getModulatorByName("Filter 1 Extra Label"):getComponent():setPropertyInt("componentVisibility",0)
    panel:getModulatorByName("Filter 1 Extra Select"):getComponent():setPropertyInt("componentVisibility",0)

    end

    [/code:2cvv9cps]

    So when i open the panel, many of the comboboxes are set to their minimum value as they should as a result of running this function, some don't. When I hit a button i made with the same "MaxMinAll" function attached and presto, all comboboxes get set to their max, then min values w/o issue or delay. They all get set when i hit the button, they don't all get set when I initiate the script through "called when the panel has finished loading"..

    This whole approach really is a workaround to the fact that comboboxes appear as "no selection" when the panel is opened new. That doesn't change if the value under the combobox is not changed so I could do 4-5 patch dumps from the synth to the panel and still have comboboxes that say "no selection" until I set them to something manually , then do the dump again. I went over this problem in another thread, which I think you understood <img src=" title="Smile" />

    Monstrum Media | Music, Sound & Software Design, Chicago / San Francisco listen
Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Comments are closed.