HISE Logo Forum
    • Categories
    • Register
    • Login

    Preset Crash

    Scheduled Pinned Locked Moved General Questions
    22 Posts 2 Posters 283 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.
    • bendursoB
      bendurso @d.healey
      last edited by

      @d-healey said in Preset Crash:

      createAndRegisterAudioFile

      So, instead of using getAudioSampleProcessor for loading the impulse responses, I can use Engine.createAndRegisterAudioFile(), and I should compile the convolution reverb with 36 different external slots?

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

        @bendurso Yes, but test it first. Make a test project with maybe 4 slots.

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

        bendursoB 1 Reply Last reply Reply Quote 0
        • bendursoB
          bendurso @d.healey
          last edited by

          @d-healey Ok, cool — I'll give it a try, thanks! But do you think removing the conditional for searching audio files in the source code, just to be able to declare the empty hardcoded master FXs on init, is a bad idea? I compiled it and it seems to work fine :) I'm not sure yet if it solves the crashes though.

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

            @bendurso I defer to Christoph on that, I'm not sure. Maybe make a github issue so it doesn't get lost in the forum.

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

            bendursoB 1 Reply Last reply Reply Quote 0
            • bendursoB
              bendurso @d.healey
              last edited by bendurso

              @d-healey Great, thanks. I changed that but it keep crashing for him. This time it crashed right after he pressed the next button; the plugin didnt load anything more (I can see from the debug log).

              This is my script for next preset:

              inline function onbtnNextPresetControl(component, value)
              {
              	if (value)
              	{
              	Engine.loadNextUserPreset(0);
              	LookAndFeel.presetDisplayName = Engine.getCurrentUserPresetName();
              	LookAndFeel.btnPresetSelect.sendRepaintMessage();
              	}
              };
              
              Content.getComponent("btnNextPreset").setControlCallback(onbtnNextPresetControl);
              

              presetDisplayName is a variable I have in the LookAndFeel namespace where I store the name of the current preset.
              And btnPresetSelect is the button to display the preset name and to open the preset browser.

              Oh and the LookAndFeel namespace has 2600 lines. I'm not sure if this is relevant.

              Is there something wrong here that could cause a crash?

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

                @bendurso said in Preset Crash:

                Is there something wrong here that could cause a crash?

                I don't see any issue in that bit of code. Make a minimal project that just tests the effect loading stuff to rule out that being the issue.

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

                bendursoB 1 Reply Last reply Reply Quote 1
                • bendursoB
                  bendurso @d.healey
                  last edited by

                  @d-healey I will check. And is it bad to use Engine.createUserPresetHandler and PresetHandler.setPostCallback in two different namespaces?

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

                    @bendurso said in Preset Crash:

                    Engine.createUserPresetHandler and PresetHandler.setPostCallback in two different namespaces?

                    Yes. You can only have one of each so having two will lead to weirdness.

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

                    bendursoB 1 Reply Last reply Reply Quote 2
                    • bendursoB
                      bendurso @d.healey
                      last edited by

                      @d-healey Thanks, I removed the extra preset handler, but it still keeps crashing for him. I think my code is pretty clean now.

                      I'm starting to think the issue might be with the macros. I was thinking of disabling the macro modulation source before the preset change and re-enabling it afterward. Any other ideas regarding macros? I saw another post where @hisefilo had issues with preset changes involving macros.

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

                        @bendurso said in Preset Crash:

                        Any other ideas regarding macros?

                        Make a minimal project to test it.

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

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

                        22

                        Online

                        1.7k

                        Users

                        11.8k

                        Topics

                        103.1k

                        Posts