Newbie Switch invert value question

Home Forums General Panels, Components, Macros Newbie Switch invert value question

Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #69112
    iceleben
    Participant
    • Topics: 7
    • Replies: 13
    • Total: 20

    Hi to all,
    I just stumbled across the Ctrlr software, and I’m really blown away by its possibilities. I have been using Liine Lemur before but Ctrlr seems to be so much better with sysex handling that I’d like to know more about it.
    I programmed a uiswitch yesterday that puts out a 2 value in the top positiona nd a 1 in the lower position. I’d like to have it the other way – top 1 lower 2. I looked in some of the panels but couldnt find one that does it this way.
    Any help would be great!
    Thx,
    Markus

    #69113
    goodweather
    Participant
    • Topics: 45
    • Replies: 550
    • Total: 595
    • ★★★

    Welcome Markus. Maybe you will find what you need in my Step by Step Guide on p15 and 16…

    #69114
    iceleben
    Participant
    • Topics: 7
    • Replies: 13
    • Total: 20

    Hi Goodweather “Master of the Sub37” :),
    thx for making the step by step guide. Without it I would have been lost from the start.I’ll reread the pages.Is your panel available somewhere? It would be great to have it loaded while reading the guide

    #69215
    iceleben
    Participant
    • Topics: 7
    • Replies: 13
    • Total: 20

    If anyone is interested here is the Lua script thats working. I used the global variable k1 which is part of a sysex string. Working fine:

    function ConvertVal(value)
    — Get switch Value
    newVal = panel:getModulatorByName(“lowerupper”):getModulatorValue()
    if newVal == 0 then
    — set Globalvariable k1 to 2
    panel:setGlobalVariable(1,2)
    end
    if newVal == 1 then
    — set Globalvariable k1 to 1
    panel:setGlobalVariable(1,1)
    end

    end

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Panels, Components, Macros’ is closed to new topics and replies.
There is currently 0 users and 56 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