loading default preset on launch...not working anymore
-
you have to batch replace PROJECT FOLDER with AUDIO FILES or else it does not load anything having to do with audio files.
That's not required, unless there is a new bug in HISE. Which commit are you using?
-
@d-healey im just saying in actual practice in compiled plugins loaded up in daws this is the only way audio is loaded into both the loop players and the convolution. there has been issues with this for a long time and im using one of the latest develop builds. i know both the loop players and convolution are not high priorities but there is and has always been many issues with both that are never addressed because its somewhat of an after thought it seems
also on windows using \ for cross compatibility doesnt work either you have to make all new presets for mac using that \ and have windows use /
HISE-a15c69b416da30d9a08c91f9ac0a5d45c3358425
-
also on windows using \ for cross compatibility doesnt work either you have to make all new presets for mac using that \ and have windows use /
I haven't had to do this with any of my projects.
I'll test the convo thing right now and report back.
-
@mwplugs i just need to know how load a preset upon launch because i dont see this getting resolved anytime soon
Engine.loadUserPreset("{PROJECT_FOLDER}User Presets\Factory Library\Default");
is not working for me for some reason
-
@mwplugs said in loading default preset on launch...not working anymore:
@mwplugs i just need to know how load a preset upon launch
As I said before HISE doesn't do this, it will reload with whatever settings you last used. I just tested this in a minimal project (exported as VST3) and it's working here, also the loading of audio files is working. I suspect there is more stuff going on in your project that is causing the issues you are experiencing.
-
@d-healey im just saying it worked exactly as is before. it loaded what was saved in hise as the initial preset and all presets loaded properly. now that doesnt work
so im having to force a preset to be loaded because it is not loading files into the loop players as is and as it does in hise when i load the project it simply does not do it all loop players are empty, but when an actual preset is loaded it works perfect. hise is not properly recalling the file paths for the loop players. im not working in the convolution im working in the loop players
-
now that doesnt work
Does it work for you in the project I provided in my last post?
I'll make an example with the loop player now.
-
@mwplugs i dont think it has anything to do with my project because nothing in my code references file locations of the files in the loop players aside from the user presets themselves. chis publicly has mentioned something about the PROJECT FOLDER/ AUDIO FILES update he made so putting 2 and 2 together im guessing that the improper structure is being used for the audio files loaded into the loop players as this is the only thing that doesnt work
anytime any file is supposed to be recalled for the initial load it doesnt. and there is nothing in my code having anything to do with file loading thats all done within the preset files
-
Does the example I posted work for you?
Here is an example with the audio loop player, does that work for you?
audioLoopPlayerLoadingTest.zip
there is nothing in my code having anything to do with file loading thats all done within the preset files
Do you have this line in your on init callback
Engine.loadAudioFilesIntoPool();
? If not, then it definitely won't work. -
@d-healey could this be why it isnt loading audio files initially until a preset is loaded? Engine.loadAudioFilesIntoPool();
also weirdly i notice my the pooled AudioResources.dat is always 1kb which makes no sense either
-
-
@d-healey it seems strange that it was never in my code before but it worked perfect :/ ill try adding that in and compiling
-
@mwplugs yeah adding the code didnt fix it. same thing. also what do i do with this zip i load it up but there is no xml presets
-
-
@d-healey i opened it and looked around but this doesnt really apply
i have 430 presets each with 12 loop players. the presets recall the files used for the players. why would have to set the file with code just for it to load an intial preset? why would it just save the paths and files and load the files? like this should as simple as creating aloop player just right clicking and loading a file within the player. exporting and the file be there...
to have to make code to recall the initial 12 players just seems really silly and pointless. when just 6 months ago it worked exactly as is. literally the only thing i changed was the background of the GUI now it doesnt load when launched.
i looked into the .hip that is being saved and as i suspected PROJECT FOLDER not AUDIO FILES is being used for the path to the files stored within hise. im fairly certain this is why it isnt recalling when presets that use AUDIO FILES work perfect but not PROJECT FOLDER
-
i have 430 presets each with 12 loop players.
Presets don't have loop players
the presets recall the files used for the players
How do they do this? If you check the XML of your user preset, where do you see the file being loaded?
like this should as simple as creating aloop player just right clicking and loading a file within the player. exporting and the file be there...
That's not how presets work. Presets only store the state of the UI.
when just 6 months ago it worked exactly as is
Do you have a copy of your work from that time so you can show me it working?
i looked into the .hip that is being saved and as i suspected PROJECT FOLDER not AUDIO FILES
{PROJECT_FOLDER}
is a wildcard/placeholder that will internally point to the correct folder, whether this is images or audio files or samples. -
@d-healey 1. yes they do haha from within a preset made with hise
<Control type="ScriptAudioWaveform" id="BigWave1" value="0" rangeStart="0" rangeEnd="10052" fileName="{AUDIO_FILES}Drum Kits/199_1.ch1"/>
this loads properly
when {PROJECT_FOLDER} is used...as hise save it as is instead of {AUDIO_FILES} it doesnt load the files. so all presets created i have to batch replace PROJECT FOLDER with AUDIO FILES or else it doesnt recall the files.
and looking within the .hip file it is attempting to use PROJECT FOLDER instead AUDIO FILES so i just changed it and i will tell you what happens in a second. this is what i suspected was happening all along
-
@mwplugs didnt work smh lol
-
@mwplugs ok so...
i opened the exact project as is in my older scriptnode hise.
and loaded the plugin and it worked perfect as before. so it definitely is something to do with the new hise and im fairly certain its due to the PROJECT FOLDER/AUDIO FILES issue
-
yes they do haha from within a preset made with hise
That's the UI control, not the loop player -
ScriptAudioWaveform