Favourites Preset
-
@MikeB said in Favourites Preset:
Up and down button select prev and next preset
Even across the banks/directoriesNo Way?
Never Seen Ane Examples To Go Across The Entire Preset Browser, Using Prev/Next Button, You Have Any Snippet? -
@Natan here it is
HiseSnippet 2325.3oc6ZssbaabFFTTPwjQxwwim1dQu.iZuPZFawChxxtYbMk3AE1HIxRPE2dk7Jvkj6HvcYAVJEZOZlLc5E8wHOB8QvOB8MvIuA9MH8ewAhEjfTLzNwRMDdro28eO78e9ewhZVLCrsMyRIVhFC5gUhspp9.JuSgNHBUoRQkXetZMKrMlqoiMwFbXn6OnGx1F2TIVr3GHFVrDKq377tmuOxDQMvAcon70LhA9PRWBOn2Z4+JhoYYTSbCRWoQmKeECFs.yj0GfTb0zJ8PFmiZiOFIF1RpJwVoTSBfBcNhisUhs79rlCz6vtj5N9ulXSNyDKZjQQGVH2tKyLaJPrnWkBcHlMq4y51JJwTqEHHh6JHdf5Qjljg8GHPtmCAsfYHKOhszzfWFY3kd1gWLI3srK79bUcCKROd.EA19T0JTN1pEBTAxvxcrJKkZE0BLXDT9VcQmiKaAMFNiMdR5zOTa6Gu6lewZIC9SpTZ0X8zNomlmgv9VrKswVZGsWkiSBpKat1EHKOp9Dell+F0FyKv51iQgFardnQstXmFcEr2uOmynYulkveXNqAgZRnXsV8oFbBipwngGjXgrXlaX3uJOD1Py93MWK4qWKoFok1F9s0fmW69i3IDd2xFzj9qE2BF+W3Nxqb+AaZi+IrBsPv3kVhqf+6rwxaYKH6rJEPllmANIaLAdVVYBpR8ur5KzJbR85kNtgVs5kzK0P638NpjVki01S6v81uzgxpjCQmgMybMpBgy4HpxuhxNaxSyg5DTbNzlt9JgPeUh1FloyB22xBFxIf3M.Oaro1ydl15qCyHgP7d83WHS2XcN9a3q+Ps0K7kUqpWxSB4.0DtZ24Y0tVrJV+Iq88DWQqzkkWA5ZgSqE9BMDso1w.HF565XaXOocRLz84zIsWdjk1sw0egGyj73fGRKWeNgdJylhdb62SXYxPMEqUfnJveYpNJW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ine Sir ️️️
-
To my question
a. Is it possible to capture the presets marked as "Favorite" by script?
b. How can I create a random button for the random selection of presets?
-
@MikeB said in Favourites Preset:
Is it possible to capture the presets marked as "Favorite" by script?
I don't think so
How can I create a random button for the random selection of presets?
Math.randInt()
is your friend -
@d-healey @MikeB So What is The Logic Behind This?
If We Set It To True, Browser Doesn't Go Loop The Presets, And With Mike's Method, It Set To False, And It Loops like A Charm :)
inline function onPrevPresetControl(component, value) { if(value == 1) Engine.loadPreviousUserPreset(false); }; Content.getComponent("PrevPreset").setControlCallback(onPrevPresetControl); inline function onNextPresetControl(component, value) { if(value == 1) Engine.loadNextUserPreset(false); }; Content.getComponent("NextPreset").setControlCallback(onNextPresetControl);
-
-
@MikeB 0 to the nb of presets
I think you can grab the preset list with the file system and populate an array. Then pick a random name in there
There might be a method to get all presets but I don't remember and I'm not at my computer... -
@Natan said in Favourites Preset:
If I knew that, my name would be Christoph and I would live in Berlin.
I'm working on it - I already live in Berlin
-
@MikeB yes so
Engine.getUserPresetList()
, then just pick a random name -
@MikeB Cheers To All Berlin Mates
-
Summary
- presets marked as favourites cannot be accessed/selected via script.
The above script only makes sense if you can select all presets. If the user selects "show me all favourites" and then can no longer zap through with preset up and down, it becomes pointless.
Workaround: Hide favourites.
User must create a new user preset if he particularly likes a sound.
This is inconvenient but not unusual.
I have some plug-ins where this is the only way to do it.- here I think - if I understand it correctly I would first have to determine the current number of available presets (incl. user presets) via Engine.getUserPresetList and can then change these via Math.randInt(x,x).
I will try it out.
-
@Natan said in Favourites Preset:
If you look at the description of
Engine.loadPreviousUserPreset(false);
you can probably recognise the "bool stayInDirectory".
means that HISE assumes that the presets are not (false) in different directories but are all open in the folder. Therefore HISE ignores the directories. -
@MikeB Very Very Nice :) Thanks For The Info
-
-
@DabDab Thanks but
Christoph is a genius and I am just a 60 year old graphic designer who started learning HISE 6 months ago.
-
@MikeB You prove Age is just a number. I wish you all the very best. Keep making Plugins/Research. Keep it up.