setModulatorValue() and friends

Home Forums General Programming setModulatorValue() and friends

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #118453
    dnaldoogdnaldoog
    Participant
    • Topics: 3
    • Replies: 319
    • Total: 322
    • β˜…β˜…

    I made a panel in order to try to understand the differences between the following methods see here::

    It seems that every method triggers a function call in the receiving modulator (I only tested uiSlider) except those methods marked with a **.

    
    panel:getModulatorByName(n):setModulatorValue(value,false,true,false)
    panel:getModulatorByName(n):setModulatorValue(value,false,false,false)
    panel:getModulatorByName(n):getComponent():setValue(value,true)
    panel:getModulatorByName(n):getComponent():setValue(value,false)**
    panel:getModulatorByName(n):setValue(value,true)
    panel:getModulatorByName(n):setValue(value,false)
    panel:getModulatorByName(n):setValue(value,true,true)
    panel:getModulatorByName(n):setValue(value,false,false)
    panel:getComponent(n):setValue(value,true)
    panel:getComponent(n):setValue(value,false)**
    panel:getModulatorByName(n):setValueNonMapped(value,true,true)
    panel:getModulatorByName(n):setValueNonMapped(value,false,true)
    panel:getModulatorByName(n):setValueNonMapped(value,true,false)
    panel:getModulatorByName(n):setValueNonMapped(value,false,false)
    

    Please find attached example panel below

    Attachments:
    You must be logged in to view attached files.
    #118455
    protonproton
    Participant
    • Topics: 18
    • Replies: 91
    • Total: 109
    • β˜…β˜…

    Nice dnaldoog!

    I myself am diving into the whole uiCustomComponent universe right now but the Graphics Class, although very powerful, is a bitch to be honest πŸ˜‰
    Have a great weekend guys!
    M.

    #118456
    dnaldoogdnaldoog
    Participant
    • Topics: 3
    • Replies: 319
    • Total: 322
    • β˜…β˜…

    Hi Proton,

    The uiCustomComponent is very powerful. You could almost make a whole panel just using that component. Maybe rotating sliders would be difficult. I tried it once. Haven’t succeeded yet.

    If you are interested in the graph side of things, my JD-990 and PLG-150-AN contain a lot of ‘graphics’ objects!

    Regards,

    #118486
    lecletolecleto
    Participant
    • Topics: 6
    • Replies: 25
    • Total: 31
    • β˜…

    Hello Dnaldoog and Ctrlrs!

    What does it means:

    (value,false,true,false)
    The first “value” is the value that you will get or set on modulator but false,true,false. What is false and true?
    IΒ΄m using this all time but I donΒ΄t know why!
    Thank you!

    #118491
    dnaldoogdnaldoog
    Participant
    • Topics: 3
    • Replies: 319
    • Total: 322
    • β˜…β˜…

    What does it means:

    (value,false,true,false)

    Hi Lecleto,

    That’s what I don’t fully understand. Sometimes they do nothing (maybe)

    Sometimes ‘true’ triggers a function or sending of MIDI in a triggered modulator; sometimes not. It’s still not clear to me which does which, so the panel above is a kind of work in progress.

    There’s a very interesting post by Possemo, who is very clued up on all this, here:

    forums/topic/setvalue-or-setmodulatorvalue/

    #118498
    m.tarenskeen
    Participant
    • Topics: 30
    • Replies: 110
    • Total: 140
    • β˜…β˜…

    If you are interested in the graph side of things, my JD-990 and PLG-150-AN contain a lot of β€˜graphics’ objects!

    Nice. Impressive graphics. I might borrow a trick or two from you πŸ™‚

    • This reply was modified 1 week, 4 days ago by m.tarenskeen.
    #118500
    dnaldoogdnaldoog
    Participant
    • Topics: 3
    • Replies: 319
    • Total: 322
    • β˜…β˜…

    Thanks m-tarenskeen. Go for it!

    #118502
    goodweathergoodweather
    Participant
    • Topics: 41
    • Replies: 490
    • Total: 531
    • β˜…β˜…β˜…

    @ lecleto
    You can find info about the arguments of functions in
    https://github.com/RomanKubiak/ctrlr/blob/master/Source/Core/CtrlrModulator/CtrlrModulator.h

    Need a bit searching and is missing explanations but helps a bit…

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 24 guests online
No users are currently active
Forum Statistics
Threads: 2,366, Posts: 16,546, Members: 57,609
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!