How do I use uiCombo?

Home Forums General Programming How do I use uiCombo?

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #120341
    llatham
    Participant
    • Topics: 6
    • Replies: 15
    • Total: 21

    A pull down menu would be great for options like choosing between Saw, Sine, Triangle, etc. waveforms.

    Right now I have an Inc/Dec button to do this.

    I have a SysEx message in there like so:

    F0 41 10 00 00 77 12 19 01 20 00 xx z5 F7

    The xx “calls to” the min and max values further down, which in this case are 0-7.

    I don’t see where the uiCombo button has any SysEx message you can put it.

    I see the list – so I can put “Saw”, “Sine” etc. in – and I can see that work on the screen.

    But obviously when you click “Sine” I want it to send:

    F0 41 10 00 00 77 12 19 01 20 00 03 z5 F7

    Or whatever it has to do to do this.

    Do I have to make it call to a table of SysEx messages stored somewhere else?

    Edit: I lookeed at “Buzzzy” and there’s an additional thing called “MySysEX” or something like above the usual choices in one of the call to boxes.

    So I assume that’s a list of SysEx messages somewhere that this pull down menu is calling to.

    It shows up in the Lua console, so I guess I need to learn how to do a little Lua programming!

    • This topic was modified 1 month, 2 weeks ago by llatham.
    #120344
    dnaldoog
    Participant
    • Topics: 4
    • Replies: 477
    • Total: 481
    • ★★

    You can assign sysex or CC etc to uiCombo at least in the Windows version of 5.3.201

    example of using uicombo to send sysex

    See panel: 🙂

    • This reply was modified 1 month, 2 weeks ago by dnaldoog. Reason: added panel
    Attachments:
    You must be logged in to view attached files.
    #120349
    llatham
    Participant
    • Topics: 6
    • Replies: 15
    • Total: 21

    It totally worked just like I expected it to originally! I don’t know what was happening – I think I was trying to replace the existing control with the uiCombo, but when I did, I ended up deslecting it so I wasn’t seeing the right fields in the RH panel!

    Got it working now, thanks!

    Scratch that – now it’s taking like 1 second for every parameter to change. I pull up my old panel and it works fine, now when I made these changes it takes a litttle while for it to make changes on any element. Just because I changed two things from Inc/Dec to uiCombos?

    EDIT: I changed the global delay on MIDI messages to 0 and it works as it did before. Not sure how that got changed but maybe I accidentally dragged across it…

    • This reply was modified 1 month, 2 weeks ago by llatham.
    • This reply was modified 1 month, 2 weeks ago by llatham.
    #120352
    llatham
    Participant
    • Topics: 6
    • Replies: 15
    • Total: 21

    Hi,

    I got it all working – except 1 thing – and I think I know why:

    I have an “Octave Shift button. I’d like to use uiCombo for this too (currently inc/dec).

    It has 7 values but it runs from 61 – 67 and I think that’s the issue – all of the other ones start at 0 and go 0-1, or 0-9, and so on and they work fine.

    I don’t see anywhere to set any kind of offset (and I tried various parameters to no avail).

    Help 🙂

    #120353
    dnaldoog
    Participant
    • Topics: 4
    • Replies: 477
    • Total: 481
    • ★★

    Hi llatham,

    In area Expression to evaluate … of the Octave Shift uiCombo set it to modulatorValue+61

    That should do the trick!

    Regards,

    #120356
    llatham
    Participant
    • Topics: 6
    • Replies: 15
    • Total: 21

    Hi llatham,

    That should do the trick!

    Regards,

    It DID!

    Is there a way to invert it? It “ascends” as you go down the menu – which for Presets and things like that that’s the normal way. Since it’s an 8ve Shift it would be cool if the “+1 octave” was above the mid-point.

    So right now I have it:

    -3
    -2
    -1
    0
    +1
    +2
    +3

    which is OK but it’d be cool to have:

    +3
    +2
    +1
    0
    -1
    -2
    -3

    for this one.

    If there’s no way or it’s really complex it’s OK the way it is.

    Thanks for all your help! I feel like I’m pestering you guys to death and I’m trying to learn…all this stuff is pretty new to me – I’ve learned CC and SysEx messages before but the best I could do was figure out the offsets and what numbers I needed to put in based on Roland’s manuals (which could be clearer…).

    Best
    Steve

    #120358
    dnaldoog
    Participant
    • Topics: 4
    • Replies: 477
    • Total: 481
    • ★★

    Hi llatham,

    Does (6-modulatorValue)+61 work ??

    See panel.

    I think learning Ctrlr is difficult, because there is no manual except for one Goodweather wrote, but you have to track that down – I don’t know where it is, so personally I like to share what little knowledge I have of this amazing program. So don’t worry about firing off a hundred questions!

    JG

    Attachments:
    You must be logged in to view attached files.
    #120361
    Tedjuh
    Participant
    • Topics: 8
    • Replies: 95
    • Total: 103
    • ★★
    #120364
    llatham
    Participant
    • Topics: 6
    • Replies: 15
    • Total: 21

    Voila!!

    Thanks. I found that, but unfortunately there aren’t tips like “whatever you do, don’t resize your panel” – if I’ve made that mistake! 🙂

    So I probably should have done this:

    1. Started not zoomed in or out.

    2. Put in Tabs first.

    3. Put in Combos next.

    4. Put components into the Combos, in order of design layout (so the VST and modulator indices might be better numbered).

    5. Copied and pasted all the SysEx strings into the modulator list and make the necessary changes as I go (or you could do it in the Panel as the fields will say in the same place as you click each component).

    #120378
    dnaldoog
    Participant
    • Topics: 4
    • Replies: 477
    • Total: 481
    • ★★

    Hi llatham,

    Did (6-modulatorValue)+61 work ??

    #120379
    llatham
    Participant
    • Topics: 6
    • Replies: 15
    • Total: 21

    Hi llatham,

    Did (6-modulatorValue)+61 work ??

    It did! Thanks!!!

    I’m trying to understand why this works.

    61 – 62 – 63 – 64 – 65 – 66 – 67 are my values.

    But it’s basically sending 0 – 1 – 2 – 3 – 4 – 5 – 6

    So adding 61 to those makes them the numbers needed.

    6-0 = 6 + 61 = 67 – so now the 0 value is the highest value of 67.

    6-1 = 5 = 66

    6-2 = 4 = 65

    6-3 = 3 = 64

    6-4 = 2 = 63

    6-5 = 1 = 62

    6-6 = 0 = 61

    My brain wants to tell me that It should be 7 because there are 7 units, but it’s clear the math works out here.

    So is it consistent that if I had 12 values, I’d have to use an 11 as the prefix to get it to work – a number 1 less than the number of values?

    #120380
    dnaldoog
    Participant
    • Topics: 4
    • Replies: 477
    • Total: 481
    • ★★

    There are seven values. The first is not 1, it’s 0
    so 0-6 = 7 values

    I know – it’s always confusing and when I first tested this in order to answer your question I naturally put (7-modulatorValue)+61, but it was wrong. I think it’s difficult to think of 0 as a value sometimes! It gets me every time!

    So 0-11 = 12 values, yes!

    🙂

    #120392
    llatham
    Participant
    • Topics: 6
    • Replies: 15
    • Total: 21

    Ha ha – I’m glad I’m not the only one who thought 7 then!

    Can you take a look at my question on panel size when you get a chance please.

    Cheers!

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.
There is currently 0 users and 40 guests online
No users are currently active
Forum Statistics
Threads: 2,452, Posts: 17,259, Members: 47,979
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!