HISE Logo Forum
    • Categories
    • Register
    • Login

    Preset Crashes DAW

    Scheduled Pinned Locked Moved General Questions
    presetcrashpreset crash
    35 Posts 6 Posters 2.0k 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.
    • LindonL
      Lindon @Matt_SF
      last edited by

      @Matt_SF said in Preset Crashes DAW:

      @Lindon you were quicker than me 😆

      just passin thru....

      HISE Development for hire.
      www.channelrobot.com

      1 Reply Last reply Reply Quote 0
      • trillbillyT
        trillbilly @Lindon
        last edited by

        @Lindon What would be better way for me to script something like this? I've got this on every effect module lol.

        LindonL 1 Reply Last reply Reply Quote 0
        • LindonL
          Lindon @trillbilly
          last edited by

          @trillbilly what is the attribute you are trying to change?

          HISE Development for hire.
          www.channelrobot.com

          trillbillyT 2 Replies Last reply Reply Quote 0
          • trillbillyT
            trillbilly @Lindon
            last edited by

            @Lindon Just to cover the unused effect modules with a "Blackout" image so they have the appearance of being "Turned Off".

            Power Off = Blackout Image ON, covers Effect Panel
            Power On = Blackout Image OFF, revealing effect knobs/sliders.

            LindonL 1 Reply Last reply Reply Quote 0
            • LindonL
              Lindon @trillbilly
              last edited by Lindon

              @trillbilly so what are these three lines for then?

              	Content.getComponent("FilterPowerbtn").setValue(value);
              	
              	FilterEQ.setAttribute(FilterEQ.setBypassed(!value), value);
              	Content.getComponent("FilterPowerbtn").setValue(value);
              

              especially as the first and third are the same...

              if you just want to bypass an effect all you need say is:

              	FilterEQ.setBypassed(1 - value);
              

              HISE Development for hire.
              www.channelrobot.com

              trillbillyT 1 Reply Last reply Reply Quote 0
              • trillbillyT
                trillbilly @Lindon
                last edited by

                @Lindon @Matt_SF I just removed all code, panels, tiles, etc that had to do with either EQ. I re-compiled in HISE with no issues but the problem of loading presets and crashing still persists.

                LindonL 1 Reply Last reply Reply Quote 0
                • LindonL
                  Lindon @trillbilly
                  last edited by

                  @trillbilly well fix your EQ code first - and then remove your sample loader...and try again.

                  HISE Development for hire.
                  www.channelrobot.com

                  1 Reply Last reply Reply Quote 0
                  • trillbillyT
                    trillbilly @Lindon
                    last edited by

                    @Lindon

                    	Content.getComponent("FilterPowerbtn").setValue(value); //power button of the effect, how else would "Blackout" image know to be ON or OFF?
                    	
                    	FilterEQ.setAttribute(FilterEQ.setBypassed(!value), value); //this is to bypass the effect
                    	Content.getComponent("FilterPowerbtn").setValue(value);  //this is a mistake, I was thinking incorrectly.
                    
                    LindonL 1 Reply Last reply Reply Quote 0
                    • LindonL
                      Lindon @trillbilly
                      last edited by Lindon

                      @trillbilly

                      its a miracle that this works at all:

                      FilterEQ.setAttribute(FilterEQ.setBypassed(!value), value); //this is to bypass the effect
                      

                      it should be this:

                      FilterEQ.setBypassed(1 - value);
                      

                      so you call back should look like this:

                      inline function onFilterPowerbtnControl(component, value)
                      {
                      	BlackoutImage3.showControl(1 - value);
                      	FilterEQ.setBypassed(1 - value);
                      };
                      Content.getComponent("FilterPowerbtn").setControlCallback(onFilterPowerbtnControl);
                      
                      

                      Link Preview Image
                      HISE | Docs

                      favicon

                      (docs.hise.audio)

                      HISE Development for hire.
                      www.channelrobot.com

                      trillbillyT 1 Reply Last reply Reply Quote 0
                      • trillbillyT
                        trillbilly @Lindon
                        last edited by trillbilly

                        @Lindon Awesome, thanks! That does look alot better in my script. My initial issue still persist of presets crashing within HISE.

                        When you say "Remove Sample Loader" do you mean the script + the panels? I have removed the sample loader settings via the .preset file and then the presets load. It's only when the preset calls for a sample to be loaded it seems.

                        LindonL 1 Reply Last reply Reply Quote 0
                        • LindonL
                          Lindon @trillbilly
                          last edited by

                          @trillbilly well you need to post as snippet

                          HISE Development for hire.
                          www.channelrobot.com

                          trillbillyT 2 Replies Last reply Reply Quote 0
                          • trillbillyT
                            trillbilly @Lindon
                            last edited by

                            @Lindon I tried to create minimal snippet of the problem but the issue only occurs in my project. If I create multiple samplers with the CustomSampleImport scripts and use it, it works just fine saving & recalling presets.

                            When I bring that same script into my project, all compiles fine but recalls presets incorrectly and crashes.

                            Do you have another suggestion on how to create a usable minimal snippet?

                            1 Reply Last reply Reply Quote 0
                            • trillbillyT
                              trillbilly @Lindon
                              last edited by

                              @Lindon Here is the SampleDropper from within a .preset file that crashes.

                              
                                  <Control type="ScriptPanel" id="SampleDropper" value="JSON{&quot;isCustom&quot;: true, &quot;value&quot;: &quot;273.nT6K8CFb.zCB.HqSy3BfKM.ZQBjVX.F.uHylje+06kKaOKzizB5UBSXaqTqVzViHswRluFAXo2Fe4w6Cppt.LDI.HCJ5hFUH44jUiMAmoPzcnkc0dxUOrn1SBtKcQKwgv3s.VGgCoabEBJvgY.F+Aluu9Fpd6cUIaX9IlV1Ww2+NhJ5SK99ghypzYTureHnLvwIY0FxSZrGjGq96hvFpi.VkgPNRawT7uKczCbKq9Y9a9dmR0KZlo4vlnlKiHIoqa01xi5MdRm3vTCPe9ZNtGq9vfa0HCarHj+vEn.JIPPidPorn4hSQwHyPM3TPFvjg.LXyWdq7hAUcqUC8RwYv2JaWUpAQ6rmQe8kRnEF+5dKC&quot;}"/>
                              
                              

                              If I remove everything and leave just the code below, all will load but with no WAV file (obviously).

                              <Control type="ScriptPanel" id="SampleDropper" value=""/>
                              
                              trillbillyT 1 Reply Last reply Reply Quote 0
                              • trillbillyT
                                trillbilly @trillbilly
                                last edited by

                                So what @Lindon suggested for the EQ Scripting did help get by the first bug in debugging, thank you!

                                Now its coming down to the Sample Dropper. It seems it can't recall/pull the audio and pulls error after error (if you hit "Continue" in VS debug mode). Not sure what basically any of it means as it looks like it's the JUCE code rather than HISE (like that makes a difference). Ill keep at it and see what I can come up with!

                                DanHD 1 Reply Last reply Reply Quote 0
                                • DanHD
                                  DanH @trillbilly
                                  last edited by

                                  @trillbilly are you sure your code for the custom import is correct? Sounds like the problem is in there somewhere

                                  DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                                  https://dhplugins.com/ | https://dcbreaks.com/
                                  London, UK

                                  trillbillyT 1 Reply Last reply Reply Quote 0
                                  • trillbillyT
                                    trillbilly @DanH
                                    last edited by

                                    @DanH I believe so. Ive used the code in other projects with no issue. I'll keep chugging away at it. Its just strange behavior.

                                    If I delete the presets from my preset folder, add a new preset with new audio, it saves fine. Then maybe a few times of opening/closing HISE and they start breaking/crashing again.

                                    LindonL 1 Reply Last reply Reply Quote 0
                                    • LindonL
                                      Lindon @trillbilly
                                      last edited by

                                      @trillbilly said in Preset Crashes DAW:

                                      @DanH I believe so. Ive used the code in other projects with no issue. I'll keep chugging away at it. Its just strange behavior.

                                      If I delete the presets from my preset folder, add a new preset with new audio, it saves fine. Then maybe a few times of opening/closing HISE and they start breaking/crashing again.

                                      show us the code you are using to load the sound

                                      HISE Development for hire.
                                      www.channelrobot.com

                                      trillbillyT 1 Reply Last reply Reply Quote 0
                                      • trillbillyT
                                        trillbilly @Lindon
                                        last edited by

                                        @Lindon @d-healey @Dan-Korneff @Matt_SF @DanH I did another rebuild and managed to get things saving correctly (so it seems). I messed with a few settings and properties so Im not 100% sure what it was but it's working so thats that. I appreciate all the help and input fellers!

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

                                        58

                                        Online

                                        1.7k

                                        Users

                                        11.7k

                                        Topics

                                        102.1k

                                        Posts