Expansions / Combo Box + SampleMaps
-
@DanH Yes, the scripting api in the source code is mainly a collection of wrappers. Also I did a video about about it, tinkering in c++ or something like that.
-
@d-healey Thanks David. Going the route shown in the video, I want to add the function to ScriptingApiObjects.h first. There's no obvious section for the preset browser to stick it into, it's mostly effects, modulators, tables etc.
Can I put it anywhere?!
-
@DanH Catch me up again so I don't have to re-read the thread. What are you trying to do and why?
-
@d-healey no probs. I'm trying to make the Preset Browser display (rebuild?) the 'factory' user preset list when switching back from an expansion (using a combo box).
You suggested adding this function from PresetBrowser.cpp into a wrapper.
void PresetBrowser::rebuildAllPresets()
-
I thought you already had the solution for this. Enable the expansion column and give it a width of 0 to hide it?
-
@d-healey No that just hides the expansion column
Using a combo box to switch into an expansion the expansion presets load fine, but when switching back to factory (selecting no expansion in the combo box) the 'factory' user presets don't come back - it stays on the last expansion's presets.
-
@DanH Aha, let me test this on my system to see if I can find a solution
-
I can confirm it doesn't work. I don't think a wrapper function is the best idea in this case. I think getting the preset browser to refresh itself when an empty expansion is loaded is the best thing. This means it will work automatically as it should without requiring a manual function call.
-
@d-healey Ok thanks loads for looking into it. Is there a refresh function for the PB currently? I couldn't see on in the APIs
-
@DanH said in Expansions / Combo Box + SampleMaps:
Is there a refresh function for the PB currently? I couldn't see on in the APIs
No, and as I say we shouldn't need one. It should be automatic. It needs to be added to the source. I'm looking now to see if there is a quick fix.
-
@d-healey :folded_hands_light_skin_tone:
-
Line 747 in PresetBrowser.cpp.
Replace the function there with this
void PresetBrowser::expansionPackLoaded(Expansion* currentExpansion) { if(expansionColumn != nullptr && currentExpansion != nullptr) selectionChanged(-1, -1, currentExpansion->getRootFolder(), false); else selectionChanged(-1, -1, File(), false); }
Or use my development branch https://github.com/davidhealey/HISE/tree/development
-
@d-healey said in Expansions / Combo Box + SampleMaps:
void PresetBrowser::expansionPackLoaded(Expansion* currentExpansion)
{
if(expansionColumn != nullptr && currentExpansion != nullptr)
selectionChanged(-1, -1, currentExpansion->getRootFolder(), false);
else
selectionChanged(-1, -1, File(), false);
}Testing... It's line 737 in Master Branch for anyone else following..
-
@DanH What crazy fool is using the master branch! :p
-
@d-healey Cos its stable! There's a few things in Develop that don't match up with what I've already made so waiting for things to be ironed out
-
@DanH I've found develop to be more stable than master, especially with look and feel stuff. What parts have you found that are unstable?
-
@d-healey Well it began with tableprocessors but that's been fixed. Waiting for table laf to be enabled now plus I can't compile plugins on it yet but need to test more to find out why
-
@DanH said in Expansions / Combo Box + SampleMaps:
Waiting for table laf to be enabled
Does that work on Master branch?
-
Plugins are compiling with develop branch. If it's not the case the issue's on your side.
But I heard some plugins exported from develop can be undetected by the DAW. This has to be confirmed though. -
@d-healey yup. I did @ christoph in a post about it recently
I also find the editor (I know I can reset this) and the windows resizing to be a bit of a pain currently in Dev.