loading default preset on launch...not working anymore
-
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
-
@d-healey well the paths defined there is what loads into the players so....those are the only areas referencing the audio files. and changing them changes the file loaded....so i beg to differ..here is a whole preset...you will see those are he only parts storing paths of the files to be recalled per preset
<?xml version="1.0" encoding="UTF-8"?> <Preset Version="1.0.3"> <Content Processor="Interface"> <Control type="ScriptSlider" id="Knob4" value="-100"/> <Control type="ScriptSlider" id="DegradeKnob" value="0"/> <Control type="ScriptSlider" id="MasterFader2" value="1.4"/> <Control type="ScriptSlider" id="NoiseLevel" value="1"/> <Control type="ScriptSlider" id="MasterOUTPUTfADER" value="1.49012e-06"/> <Control type="ScriptSlider" id="LevelMeter" value="-100"/> <Control type="ScriptSlider" id="LevelMeter1" value="-100"/> <Control type="ScriptSlider" id="LevelMeterLock" value="0"/> <Control type="ScriptSlider" id="Pan" value="0"/> <Control type="ScriptButton" id="Pad1" value="0"/> <Control type="ScriptButton" id="Pad2" value="0"/> <Control type="ScriptButton" id="Pad3" value="0"/> <Control type="ScriptButton" id="Pad4" value="0"/> <Control type="ScriptButton" id="Pad5" value="0"/> <Control type="ScriptButton" id="Pad6" value="0"/> <Control type="ScriptButton" id="Pad7" value="0"/> <Control type="ScriptButton" id="Pad8" value="0"/> <Control type="ScriptButton" id="Pad9" value="0"/> <Control type="ScriptButton" id="Pad10" value="0"/> <Control type="ScriptButton" id="Pad11" value="0"/> <Control type="ScriptButton" id="Pad12" value="0"/> <Control type="ScriptPanel" id="factoryPresetStoragePanel" value="JSON{"sampleMaps": {}, "midiProcessors": {}, "modulators": {}, "effects": {}}"/> <Control type="ScriptSlider" id="ch1faderKnob" value="0"/> <Control type="ScriptSlider" id="MasterFader" value="1"/> <Control type="ScriptAudioWaveform" id="BigWave1" value="0" rangeStart="0" rangeEnd="13919" fileName="{AUDIO_FILES}Drum Kits/69_1.ch1"/> <Control type="ScriptComboBox" id="p1OutputSelector" value="1"/> <Control type="ScriptSlider" id="Decay1" value="0"/> <Control type="ScriptSlider" id="Sustain1" value="0"/> <Control type="ScriptSlider" id="Rel1" value="20000"/> <Control type="ScriptSlider" id="Volume1b" value="-0.699999"/> <Control type="ScriptSlider" id="Pan1b" value="0"/> <Control type="ScriptSlider" id="Pitch1b" value="0"/> <Control type="ScriptSlider" id="Reverb1b" value="-100"/> <Control type="ScriptSlider" id="Atk1" value="1"/> <Control type="ScriptButton" id="LoopButton1" value="0"/> <Control type="ScriptButton" id="RevButton1" value="0"/> <Control type="ScriptAudioWaveform" id="BigWave2" value="0" rangeStart="0" rangeEnd="13093" fileName="{AUDIO_FILES}Drum Kits/69_2.ch1"/> <Control type="ScriptComboBox" id="p2OutputSelector" value="1"/> <Control type="ScriptSlider" id="Atk2" value="1"/> <Control type="ScriptSlider" id="Decay2" value="5000"/> <Control type="ScriptSlider" id="Sustain2" value="0"/> <Control type="ScriptSlider" id="Rel2" value="20000"/> <Control type="ScriptSlider" id="Volume2b" value="1.2"/> <Control type="ScriptSlider" id="Pan2b" value="0"/> <Control type="ScriptSlider" id="Pitch2b" value="0"/> <Control type="ScriptSlider" id="Reverb2b" value="-100"/> <Control type="ScriptButton" id="RevButton2" value="0"/> <Control type="ScriptButton" id="LoopButton2" value="0"/> <Control type="ScriptAudioWaveform" id="BigWave3" value="0" rangeStart="0" rangeEnd="5564" fileName="{AUDIO_FILES}Drum Kits/69_3.ch1"/> <Control type="ScriptComboBox" id="p3OutputSelector" value="1"/> <Control type="ScriptSlider" id="Atk3" value="1"/> <Control type="ScriptSlider" id="Decay3" value="5000"/> <Control type="ScriptSlider" id="Sustain3" value="0"/> <Control type="ScriptSlider" id="Rel3" value="18522"/> <Control type="ScriptSlider" id="Volume3b" value="1.6"/> <Control type="ScriptSlider" id="Pan3b" value="0"/> <Control type="ScriptSlider" id="Pitch3b" value="0"/> <Control type="ScriptSlider" id="Reverb3b" value="-100"/> <Control type="ScriptButton" id="LoopButton3" value="0"/> <Control type="ScriptButton" id="RevButton3" value="0"/> <Control type="ScriptAudioWaveform" id="BigWave4" value="0" rangeStart="0" rangeEnd="29827" fileName="{AUDIO_FILES}Drum Kits/69_4.ch1"/> <Control type="ScriptComboBox" id="p4OutputSelector" value="1"/> <Control type="ScriptSlider" id="Atk4" value="1"/> <Control type="ScriptSlider" id="Decay4" value="5000"/> <Control type="ScriptSlider" id="Sustain4" value="0"/> <Control type="ScriptSlider" id="Rel4" value="20000"/> <Control type="ScriptSlider" id="Volume4b" value="1.5"/> <Control type="ScriptSlider" id="Pan4b" value="0"/> <Control type="ScriptSlider" id="Pitch4b" value="0"/> <Control type="ScriptSlider" id="Reverb4b" value="-100"/> <Control type="ScriptButton" id="RevButton4" value="0"/> <Control type="ScriptButton" id="LoopButton4" value="0"/> <Control type="ScriptAudioWaveform" id="BigWave5" value="0" rangeStart="0" rangeEnd="15312" fileName="{AUDIO_FILES}Drum Kits/69_5.ch1"/> <Control type="ScriptComboBox" id="p5OutputSelector" value="1"/> <Control type="ScriptSlider" id="Atk5" value="1"/> <Control type="ScriptSlider" id="Decay5" value="5000"/> <Control type="ScriptSlider" id="Sustain5" value="0"/> <Control type="ScriptSlider" id="Rel5" value="20000"/> <Control type="ScriptSlider" id="Volume5b" value="0"/> <Control type="ScriptSlider" id="Pan5b" value="0"/> <Control type="ScriptSlider" id="Pitch5b" value="0"/> <Control type="ScriptButton" id="RevButton5" value="0"/> <Control type="ScriptButton" id="LoopButton5" value="0"/> <Control type="ScriptSlider" id="Reverb5b" value="-100"/> <Control type="ScriptAudioWaveform" id="BigWave6" value="0" rangeStart="0" rangeEnd="60300" fileName="{AUDIO_FILES}Drum Kits/69_6.ch1"/> <Control type="ScriptComboBox" id="p6OutputSelector" value="1"/> <Control type="ScriptSlider" id="Atk6" value="1"/> <Control type="ScriptSlider" id="Decay6" value="5000"/> <Control type="ScriptSlider" id="Sustain6" value="0"/> <Control type="ScriptSlider" id="Rel6" value="20000"/> <Control type="ScriptSlider" id="Volume6b" value="0"/> <Control type="ScriptSlider" id="Pan6b" value="0"/> <Control type="ScriptSlider" id="Pitch6b" value="0"/> <Control type="ScriptSlider" id="Reverb6b" value="-100"/> <Control type="ScriptButton" id="RevButton6" value="0"/> <Control type="ScriptButton" id="LoopButton6" value="0"/> <Control type="ScriptAudioWaveform" id="BigWave7" value="0" rangeStart="0" rangeEnd="8480" fileName="{AUDIO_FILES}Drum Kits/69_7.ch1"/> <Control type="ScriptComboBox" id="p7OutputSelector" value="1"/> <Control type="ScriptSlider" id="Atk7" value="1"/> <Control type="ScriptSlider" id="Decay7" value="5000"/> <Control type="ScriptSlider" id="Sustain7" value="0"/> <Control type="ScriptSlider" id="Rel7" value="20000"/> <Control type="ScriptSlider" id="Volume7b" value="0"/> <Control type="ScriptSlider" id="Pan7b" value="0"/> <Control type="ScriptSlider" id="Pitch7b" value="0"/> <Control type="ScriptButton" id="RevButton7" value="0"/> <Control type="ScriptButton" id="LoopButton7" value="0"/> <Control type="ScriptSlider" id="Reverb7b" value="-100"/> <Control type="ScriptAudioWaveform" id="BigWave8" value="0" rangeStart="0" rangeEnd="56505" fileName="{AUDIO_FILES}Drum Kits/69_8.ch1"/> <Control type="ScriptComboBox" id="p8OutputSelector" value="1"/> <Control type="ScriptSlider" id="Atk8" value="1"/> <Control type="ScriptSlider" id="Decay8" value="5000"/> <Control type="ScriptSlider" id="Sustain8" value="0"/> <Control type="ScriptSlider" id="Rel8" value="20000"/> <Control type="ScriptSlider" id="Volume8b" value="7.45058e-07"/> <Control type="ScriptSlider" id="Pan8b" value="0"/> <Control type="ScriptSlider" id="Pitch8b" value="0"/> <Control type="ScriptSlider" id="Reverb8b" value="-100"/> <Control type="ScriptButton" id="RevButton8" value="0"/> <Control type="ScriptButton" id="LoopButton8" value="0"/> <Control type="ScriptAudioWaveform" id="BigWave9" value="0" rangeStart="0" rangeEnd="245734" fileName="{AUDIO_FILES}Perc Kits/CrashHats19_1.ch1"/> <Control type="ScriptComboBox" id="p9OutputSelector" value="1"/> <Control type="ScriptSlider" id="Atk9" value="1"/> <Control type="ScriptSlider" id="Decay9" value="5000"/> <Control type="ScriptSlider" id="Sustain9" value="0"/> <Control type="ScriptSlider" id="Rel9" value="20000"/> <Control type="ScriptSlider" id="Volume9b" value="-6.7"/> <Control type="ScriptSlider" id="Pan9b" value="0"/> <Control type="ScriptSlider" id="Pitch9b" value="0"/> <Control type="ScriptSlider" id="Reverb9b" value="-100"/> <Control type="ScriptButton" id="RevButton9" value="0"/> <Control type="ScriptButton" id="LoopButton9" value="0"/> <Control type="ScriptAudioWaveform" id="BigWave10" value="0" rangeStart="0" rangeEnd="365840" fileName="{AUDIO_FILES}Perc Kits/CrashHats19_2.ch1"/> <Control type="ScriptComboBox" id="p10OutputSelector" value="1"/> <Control type="ScriptSlider" id="Atk10" value="1"/> <Control type="ScriptSlider" id="Decay10" value="5000"/> <Control type="ScriptSlider" id="Sustain10" value="0"/> <Control type="ScriptSlider" id="Rel10" value="20000"/> <Control type="ScriptSlider" id="Volume10b" value="-7"/> <Control type="ScriptSlider" id="Pan10b" value="0"/> <Control type="ScriptSlider" id="Pitch10b" value="0"/> <Control type="ScriptSlider" id="Reverb10b" value="-100"/> <Control type="ScriptButton" id="RevButton10" value="0"/> <Control type="ScriptButton" id="LoopButton10" value="0"/> <Control type="ScriptAudioWaveform" id="BigWave11" value="0" rangeStart="0" rangeEnd="64470" fileName="{AUDIO_FILES}Perc Kits/CrashHats19_3.ch1"/> <Control type="ScriptComboBox" id="p11OutputSelector" value="1"/> <Control type="ScriptSlider" id="Atk11" value="1"/> <Control type="ScriptSlider" id="Decay11" value="5000"/> <Control type="ScriptSlider" id="Sustain11" value="0"/> <Control type="ScriptSlider" id="Rel11" value="20000"/> <Control type="ScriptSlider" id="Volume11b" value="-8.2"/> <Control type="ScriptSlider" id="Pan11b" value="0"/> <Control type="ScriptSlider" id="Pitch11b" value="0"/> <Control type="ScriptSlider" id="Reverb11b" value="-100"/> <Control type="ScriptButton" id="LoopButton11" value="0"/> <Control type="ScriptButton" id="RevButton11" value="0"/> <Control type="ScriptAudioWaveform" id="BigWave12" value="0" rangeStart="0" rangeEnd="55935" fileName="{AUDIO_FILES}Perc Kits/CrashHats19_4.ch1"/> <Control type="ScriptComboBox" id="p12OutputSelector" value="1"/> <Control type="ScriptSlider" id="Atk12" value="1"/> <Control type="ScriptSlider" id="Decay12" value="5000"/> <Control type="ScriptSlider" id="Sustain12" value="0"/> <Control type="ScriptSlider" id="Rel12" value="20000"/> <Control type="ScriptSlider" id="Volume12b" value="-7.8"/> <Control type="ScriptSlider" id="Pan12b" value="0"/> <Control type="ScriptSlider" id="Pitch12b" value="0"/> <Control type="ScriptSlider" id="Reverb12b" value="-100"/> <Control type="ScriptButton" id="LoopButton12" value="0"/> <Control type="ScriptButton" id="RevButton12" value="0"/> <Control type="ScriptSlider" id="Saturate" value="0"/> <Control type="ScriptSlider" id="XFilterKnob" value="0"/> <Control type="ScriptAudioWaveform" id="AudioWaveform1" value="0" rangeStart="0" rangeEnd="13919" fileName="{AUDIO_FILES}Drum Kits/69_1.ch1"/> <Control type="ScriptAudioWaveform" id="AudioWaveform2" value="0" rangeStart="0" rangeEnd="13093" fileName="{AUDIO_FILES}Drum Kits/69_2.ch1"/> <Control type="ScriptAudioWaveform" id="AudioWaveform3" value="0" rangeStart="0" rangeEnd="5564" fileName="{AUDIO_FILES}Drum Kits/69_3.ch1"/> <Control type="ScriptAudioWaveform" id="AudioWaveform4" value="0" rangeStart="0" rangeEnd="29827" fileName="{AUDIO_FILES}Drum Kits/69_4.ch1"/> <Control type="ScriptAudioWaveform" id="AudioWaveform5" value="0" rangeStart="0" rangeEnd="15312" fileName="{AUDIO_FILES}Drum Kits/69_5.ch1"/> <Control type="ScriptAudioWaveform" id="AudioWaveform6" value="0" rangeStart="0" rangeEnd="60300" fileName="{AUDIO_FILES}Drum Kits/69_6.ch1"/> <Control type="ScriptAudioWaveform" id="AudioWaveform7" value="0" rangeStart="0" rangeEnd="8480" fileName="{AUDIO_FILES}Drum Kits/69_7.ch1"/> <Control type="ScriptAudioWaveform" id="AudioWaveform8" value="0" rangeStart="0" rangeEnd="56505" fileName="{AUDIO_FILES}Drum Kits/69_8.ch1"/> <Control type="ScriptAudioWaveform" id="AudioWaveform9" value="0" rangeStart="0" rangeEnd="245734" fileName="{AUDIO_FILES}Perc Kits/CrashHats19_1.ch1"/> <Control type="ScriptAudioWaveform" id="AudioWaveform10" value="0" rangeStart="0" rangeEnd="365840" fileName="{AUDIO_FILES}Perc Kits/CrashHats19_2.ch1"/> <Control type="ScriptAudioWaveform" id="AudioWaveform11" value="0" rangeStart="0" rangeEnd="64470" fileName="{AUDIO_FILES}Perc Kits/CrashHats19_3.ch1"/> <Control type="ScriptAudioWaveform" id="AudioWaveform12" value="0" rangeStart="0" rangeEnd="55935" fileName="{AUDIO_FILES}Perc Kits/CrashHats19_4.ch1"/> <Control type="ScriptButton" id="ChokeButton" value="0"/> <Control type="ScriptSlider" id="DelayMix" value="0"/> <Control type="ScriptButton" id="TempoSync" value="0"/> <Control type="ScriptSlider" id="LeftDelay" value="0"/> <Control type="ScriptSlider" id="RightDelay" value="0"/> <Control type="ScriptSlider" id="LFeedback" value="0"/> <Control type="ScriptSlider" id="RFeedback" value="0"/> <Control type="ScriptSlider" id="HPassFrq" value="0"/> <Control type="ScriptSlider" id="LPassFrq" value="20000"/> <Control type="ScriptSlider" id="RoomSize" value="0.76"/> <Control type="ScriptSlider" id="Wideness" value="0.5"/> <Control type="ScriptSlider" id="NoiseType" value="0"/> <Control type="ScriptSlider" id="Damping" value="0.12"/> <Control type="ScriptSlider" id="Knob6" value="-100"/> <Control type="ScriptSlider" id="Knob9" value="-100"/> <Control type="ScriptSlider" id="Knob12" value="-100"/> <Control type="ScriptSlider" id="Knob15" value="-100"/> <Control type="ScriptSlider" id="Knob18" value="-100"/> <Control type="ScriptSlider" id="Knob21" value="-100"/> <Control type="ScriptSlider" id="Knob24" value="-100"/> <Control type="ScriptSlider" id="Knob27" value="-100"/> <Control type="ScriptSlider" id="Knob30" value="-100"/> <Control type="ScriptSlider" id="Knob33" value="-100"/> <Control type="ScriptSlider" id="Knob36" value="-100"/> <Control type="ScriptButton" id="DegButt" value="0"/> </Content> <MidiAutomation/> <MPEData Enabled="0"/> </Preset>
-
@mwplugs but the fact remains. loading and compiling this exact project which works perfectly in scriptnode does not load intial audio files in the new develop build
when loading a preset everything works as it should. but upon load with the newer builds it doesnt load anything at all. in your example you are having to tell what file is loaded. why would you have to do that now and not before? it doesnt make sense to strip such a basic function. and i really dont think doing some sort of setFile operation hardcoded within the plugin just to get it to load what it shows within hise makes much sense at all