Plug'n Script/KUIML Query: Using custom sprites for native menus
-
- KVRer
- 4 posts since 31 May, 2025
Hi all,
Please be gentle with me, for I am a newbie!
I have developed a .cxx MIDI FX script to select LFO waveforms, and I'm trying to build a custom GUI for it in KUIML. I had a 13-state 'standard' menu in the native gui which works perfectly, outputting:
Index | Menu Value (custom_param8) | lfo_wave_selected_index | Active Button ID | Active Button Param | SVG Asset | lfo_btn_0..12 Pattern (1=active) 0 | 0 | 0 |
but I'm trying to replace it with a 13-pane sprite-based selector that outputs:
Button # | UI Element ID | Param (0/1) | Selected Index Value when 1 0 |
I want all 13 panes to be visible to the user so that they can click on one of them and select that option; it will then be highlighted graphically.
I have tried many different things to get what in my head should be a simple mapping, but I cannot make it work. Would anyone be kind enough to offer me a pragmatic strategy to make this work please?
Please be gentle with me, for I am a newbie!
I have developed a .cxx MIDI FX script to select LFO waveforms, and I'm trying to build a custom GUI for it in KUIML. I had a 13-state 'standard' menu in the native gui which works perfectly, outputting:
Index | Menu Value (custom_param8) | lfo_wave_selected_index | Active Button ID | Active Button Param | SVG Asset | lfo_btn_0..12 Pattern (1=active) 0 | 0 | 0 |
but I'm trying to replace it with a 13-pane sprite-based selector that outputs:
Button # | UI Element ID | Param (0/1) | Selected Index Value when 1 0 |
I want all 13 panes to be visible to the user so that they can click on one of them and select that option; it will then be highlighted graphically.
I have tried many different things to get what in my head should be a simple mapping, but I cannot make it work. Would anyone be kind enough to offer me a pragmatic strategy to make this work please?
-
Blue Cat Audio Blue Cat Audio https://www.kvraudio.com/forum/memberlist.php?mode=viewprofile&u=39981
- KVRAF
- 6336 posts since 8 Sep, 2004 from Paris (France)
Can you maybe also share your existing code so that we can have a better understanding on how it can be modified?
-
- KVRer
- Topic Starter
- 4 posts since 31 May, 2025
AUTO-ADMIN: Non-MP3, WAV, OGG, SoundCloud, YouTube, Vimeo, Twitter and Facebook links in this post have been protected automatically. Once the member reaches 5 posts the links will function as normal.
Hi both,Many thanks for your prompt responses. Great to have attracted the attention of the 'big guns'!
Here is an AI-generated HTML which I hope will give you a better perspective, but let me know if there are other things that you need.
https://codepen.io/JustinP-blip/pen/PwPBwKv (https://codepen.io/JustinP-blip/pen/PwPBwKv)
Any insight welcome! Thanks!
-
- KVRer
- Topic Starter
- 4 posts since 31 May, 2025
AUTO-ADMIN: Non-MP3, WAV, OGG, SoundCloud, YouTube, Vimeo, Twitter and Facebook links in this post have been protected automatically. Once the member reaches 5 posts the links will function as normal.
https://codepen.io/JustinP-blip/pen/PwPBwKv (https://codepen.io/JustinP-blip/pen/PwPBwKv)-
- KVRer
- Topic Starter
- 4 posts since 31 May, 2025
Oops. I've just realized that my link did not work properly – stoopit. No matter, I have cracked this. The 13 sprite buttons were proving too hard to control in concert, and so I have replaced the buttons with a single INVISIBLE_PARAM_SLIDER overlay with some clamping math and now it works. Thanks!
-
Blue Cat Audio Blue Cat Audio https://www.kvraudio.com/forum/memberlist.php?mode=viewprofile&u=39981
- KVRAF
- 6336 posts since 8 Sep, 2004 from Paris (France)
Glad that it finally worked for you!