Preset load
-
Hello, I am relaunching this subject because I have not found an answer or found the old post.
how can I display and load my presets from a combobox please? without using the preset browser.
Thx -
@yall Do you mean to list your samplemaps or the actual user Preset list?
-
Why don't you want to use the built in preset browser?
-
@d-healey in fact I would like to replace the browser preset with a combobox. the preset browser is a bit big and a simple list of a few presets would suffice. It would be an fx plugin which would have for example 10 presets. a combobox list would be discreet and also effective. the preset browser obliges me to create a dedicated panel and I really want something simplistic :)
-
@trillbilly only preset because i have not sample.
When inuse a Sampler, i use the preset browser for load expansion, preset..... -
@yall - look in the documentation and you will find:
This gives you a list of all presets, now put those in a combo box...
on combobox click you need :
-
@lindon I had seen it but I don't know where to start. I have but the getuserpresetlist in the combobox callback. but I know deep down that it's not that simple ^^
-
@yall The callback is the function that is triggered when you open the combobox. To set the items in the combo box you need to use the
.set()
function.So to assign the values 1, 2, 3, 4 to a combobox list you could put them in an array and use the join command to convert that array to a string.
ComboBox.set("items", [1, 2, 3, 4].join("\n"));
In your case you need to use the
getUserPresetList
function to get an array of preset names.const presetNames = Engine.getUserPresetList(); ComboBox.set("items", presetNames.join("\n"));
You might find this video helpful in general
-
@d-healey Thank u i will try :)
-
@d-healey i think i don't understand something. i wrote my preset names in my combobox but i can't load them
HiseSnippet 1087.3ocsVsraabCEkT1zoRs0IAne.CzJE.UCI+HonAAwQ1REBI1QMxIs.AAATyPIQ3YHEFRYagB+OzektqK6WPW10cW21cco68RNRZTrpch.JWLCtO4g2WjcR0gBiQmRnEOYxHAg9ErtST1gGLjKUj1GRnaxNharhz.OqFSFwMFQDgRW66PFzhqSbq+9oM3wbUnXNKB4MZYn3ExDocN2N6+bYbbKdj3DYRNs2c+1gZ0A5X8X.OqwpQFwCOkOPbLGUq.iP2nYjzpS6Z4VggPWugNZR2g5yUd8eizH6EKPh5jtfi7raoiiPDibIGLTFG0Y541P.uzYdTXMeT3qXGIijy3OOZbOmff4VjOdPKrH7VaA3U++BdKARzbPZcOjtOqaXpbjctDDOeNqsBRN84PXOOT75RJbEkcfFzPY2JgepnUJPLyhJOrVspAvmG73RkfPuwFbFGRz5jd5F5KBdRvTaGHr.2QZEPTo7TEJO2tQoBivhIJCXVS0.oRfV8ZiHsiS1KjFaEz.XIUwf7f9iUgVoVEfYcuKwMLUGWIb5tUEfT7XwCJ8SkBv0TEWhyKKshDS4pAuEh915UCvea6+si+2t9e68N.HWBX41NeaYPANHc.ONtGTOV4ZfE7UtSxwZq3kpJHfKV5xRAenn98WprLeEKRWpXrSI8lLrhZbROQZtvkSQn7YwZxM93pIC8AlbJpUsUR6KGIxnu4lJRVjEqkyPHnp0UIuYVkb2XYjHkHAmbG1yU5d0INvmMQ3O+9e82eJ40sOja4ScC3QXWFIRsR7vPOTbFLew2fTjcnvbpUOB1nYISnCwl0Q62zVwZtUpFbhDNz3VeWVdV0IWje70j7SmNWFYGRnL5ePIjgB4fgVjZS5rSqGH2k4KJajpOGpPI8FLclVwM.G8On2vR04b+kq94qVj61YJ6VtHPg.JC6AJi4jt7yDMFasZU4uMvlNVTcpjlWLhqLPog4YFvUiSPM5yiMyUwk4RWt4XIp4Z9Dpf7peMQs3moSAXiStyK63wI9cGsntikm9Gvf3qf3sFD7VWOcss14CVU+D4CreWoKwzvrz952Zs1EXx6u7IYFMlRVv963s+dY1Osk24gRrYj4pVNd+4UK+146mvca.CnLP1psxWTfCmcyoHz.laNUI2XJ22cbe208cuRvMkW6V.39Gcz3XtcwKkvahyD.o9EtI.m1CED1I4uo9S3lpZ23MUerP79rNRa3vkiwBKAiPG++GXL698uj0reeQncN.Wm05GW0Kyuks+U5w33ki31TIVS.8FcgV7PAr6JkH1f0IEvxOOcMjFi.cEpHGwUvJSXcjllIr9TgjDdXp98g9Is3KH9LGG.SJ2imJBuhCnClMhkwpsUMRB7Xl2GFhG+uFFiuba1dErYmUvlcWAa1aEr4gqfMOZEr4atQav2Q9rwVchuc.XzooaPOk1TwgJKWUH4eAs85LGB
-
@yall said in Preset load:
i think i don't understand something.
I agree :) Did you watch the video?
You should read the documentation of the functions you are trying to use.
getUserPresetList()
doesn't take any parameters, and it returns a list (array).In my last post I gave you the code that you should use to set the values in your combo box and you haven't used it in your snippet.
-
@d-healey speaking of the Preset Browser, can you turn off the border within the Tile? I have tried turning all of the colors within the Tile to "opaque" (except for text) yet the border always remains.
I can get the search bar to "disapear" with this hack but not rhe actual border that surrounds your Preset list.
-
@trillbilly said in Preset load:
can you turn off the border within the Tile
You can customise it extensively using Look And Feel
-
@d-healey How can I remove Remove and Rename Button?
-
@dabdab C++ or make them invisible with LAF and place an invisible control over the top so they can't be clicked.
-
@dabdab I'm adding some functions to the preset browser to reposition the controls. I'll try and add options for hiding those buttons too.
-
@d-healey to hide the buttons I used an unstoppable system :) I put an image of the same color on it. and There you go :)
don't thank me for this tip. that makes me happy -
Done :) I have some more things I want to try then I'll push this to my fork and make a pull request.
-
@d-healey Yup.. I know How to disable any button in C++ addAndmakevisable and setVisible are the mastermind behind it.
I wanted something from HISE. That you have achieved later. Proud to you man. (y)
But only problem I am using my modified HISE version. Your new updated HISE will have to install on another PC. -
@dabdab Why not pull my changes into your modified version with git?