HISE Logo Forum
    • Categories
    • Register
    • Login

    loading default preset on launch...not working anymore

    Scheduled Pinned Locked Moved Scripting
    42 Posts 2 Posters 2.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mwplugs @mwplugs
      last edited by

      @mwplugs btw it does the same thing with my plugin using convolution reverb. it is empty at launch and you have to select a preset for anything to be going on..

      1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey
        last edited by

        HISE has never loaded a preset by default. What it does do is it will open with the last saved state of the project. So if you want the effect of a default preset, load that preset and save your project before you export it.

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        M 1 Reply Last reply Reply Quote 0
        • M
          mwplugs @d.healey
          last edited by

          @d-healey yes i have done that. it doesnt load it. all the loop players are empty. but when i load any preset it works...

          i load the preset in hise. save the archive and save the preset in hise. export. when i launch it does not load anything. i have to load a preset manual. it didnt do this before everything exactly as is it loaded perfect and had for years. now it doesnt load anything on launch.

          M 1 Reply Last reply Reply Quote 0
          • M
            mwplugs @mwplugs
            last edited by

            @mwplugs can i just have a code to insert to have it actually just load a preset instead of trying to rely on hise to load the files into the loop players. it isnt currently. even though it does in hise but not in the compiled plugin. i just went thru 20 compiles trying, embed audio files on and off, exporting pooled resources etc.. nothing works anymore...it basically does this with anything having to do with the audio files folder, the same goes with convolution, traditional samples from the samples folder and using a regualar sampler work but nothing having to do with anything loading from the audio files folder...meaning both the loop players and the convolution which both use that folder

            M 1 Reply Last reply Reply Quote 0
            • M
              mwplugs @mwplugs
              last edited by

              @mwplugs ive never actually gotten hise to properly load files from the audio folder when its "baked in" it never worked with convolution and it doesnt work with the loop players. my guess would be it is doing the wrong AUDIO FILES or PROJECT FOLDER in the file paths as i always have to switch those for it to work properly in the plugins and not within hise

              but yes there was a Engine Load Default Preset code that chris gave me once that works but i cant find it within the search anymore. that is gonna have to suffice but i dont have the code to insert cant find it

              M 1 Reply Last reply Reply Quote 0
              • M
                mwplugs @mwplugs
                last edited by

                @mwplugs also the Audio Resoruces .dat file is always 1kb for some reason

                M 1 Reply Last reply Reply Quote 0
                • M
                  mwplugs @mwplugs
                  last edited by

                  @mwplugs i also just discovered that its making presets be PROJECT FOLDER in hise and then it doesnt load presets referencing that until you change it all to AUDIO FILES. so im assuming that when hise is baking in audio file locations its using PROJECT FOLDER instead of AUDIO FILES and this is why it isnt recalling files properly upon plugin launch. the only thing ive been able to do is code it call up a preset which has the proper code for audio file locations as right now hise doesnt do that properly for some reason

                  d.healeyD 1 Reply Last reply Reply Quote 0
                  • d.healeyD
                    d.healey @mwplugs
                    last edited by

                    @mwplugs https://docs.hise.audio/working-with-hise/project-management/index.html#project-folder-wildcard

                    Libre Wave - Freedom respecting instruments and effects
                    My Patreon - HISE tutorials
                    YouTube Channel - Public HISE tutorials

                    M 1 Reply Last reply Reply Quote 0
                    • M
                      mwplugs @d.healey
                      last edited by

                      @d-healey yes i had actually figured those things out over the years. what im saying is...

                      hise creates creates everything with the PROJECT FOLDER in file paths. but when a plugin is compiled and ran that doesnt load the file. you have to batch replace PROJECT FOLDER with AUDIO FILES or else it does not load anything having to do with audio files. so what im saying is hise is using that structure with the PROJECT FOLDER when referencing files that are baked in as the initial load, but it doesnt load those files because it needs to be AUDIO FILES for any loaded audio using the loop player and convolution.

                      d.healeyD 1 Reply Last reply Reply Quote 0
                      • d.healeyD
                        d.healey @mwplugs
                        last edited by

                        @mwplugs

                        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?

                        Libre Wave - Freedom respecting instruments and effects
                        My Patreon - HISE tutorials
                        YouTube Channel - Public HISE tutorials

                        M 1 Reply Last reply Reply Quote 0
                        • M
                          mwplugs @d.healey
                          last edited by

                          @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

                          d.healeyD M 2 Replies Last reply Reply Quote 0
                          • d.healeyD
                            d.healey @mwplugs
                            last edited by

                            @mwplugs

                            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.

                            Libre Wave - Freedom respecting instruments and effects
                            My Patreon - HISE tutorials
                            YouTube Channel - Public HISE tutorials

                            1 Reply Last reply Reply Quote 0
                            • M
                              mwplugs @mwplugs
                              last edited by

                              @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

                              d.healeyD 1 Reply Last reply Reply Quote 0
                              • d.healeyD
                                d.healey @mwplugs
                                last edited by d.healey

                                @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.

                                convoReverbLoadingTest.zip

                                Libre Wave - Freedom respecting instruments and effects
                                My Patreon - HISE tutorials
                                YouTube Channel - Public HISE tutorials

                                M 1 Reply Last reply Reply Quote 0
                                • M
                                  mwplugs @d.healey
                                  last edited by

                                  @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

                                  d.healeyD M 2 Replies Last reply Reply Quote 0
                                  • d.healeyD
                                    d.healey @mwplugs
                                    last edited by

                                    @mwplugs

                                    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.

                                    Libre Wave - Freedom respecting instruments and effects
                                    My Patreon - HISE tutorials
                                    YouTube Channel - Public HISE tutorials

                                    1 Reply Last reply Reply Quote 0
                                    • M
                                      mwplugs @mwplugs
                                      last edited by

                                      @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

                                      d.healeyD 1 Reply Last reply Reply Quote 0
                                      • d.healeyD
                                        d.healey @mwplugs
                                        last edited by d.healey

                                        Does the example I posted work for you?

                                        Here is an example with the audio loop player, does that work for you?

                                        audioLoopPlayerLoadingTest.zip

                                        @mwplugs

                                        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.

                                        Libre Wave - Freedom respecting instruments and effects
                                        My Patreon - HISE tutorials
                                        YouTube Channel - Public HISE tutorials

                                        M 1 Reply Last reply Reply Quote 0
                                        • M
                                          mwplugs @d.healey
                                          last edited by

                                          @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.healeyD 1 Reply Last reply Reply Quote 0
                                          • d.healeyD
                                            d.healey @mwplugs
                                            last edited by

                                            @mwplugs

                                            could this be why it isnt loading audio files

                                            Yup

                                            Libre Wave - Freedom respecting instruments and effects
                                            My Patreon - HISE tutorials
                                            YouTube Channel - Public HISE tutorials

                                            M 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            57

                                            Online

                                            1.7k

                                            Users

                                            11.7k

                                            Topics

                                            101.8k

                                            Posts