HISE Logo Forum
    • Categories
    • Register
    • Login

    Custom DSP Network Crashes DAW

    Scheduled Pinned Locked Moved General Questions
    11 Posts 4 Posters 498 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.
    • Christoph HartC
      Christoph Hart @dejans
      last edited by

      Have you compiled it to a hardcoded FX before exporting (I would recommend doing this for effects with this complexity and no outside dependency).

      Also, please use the snippet format to post example codes - I had to download the XML, put it in the folder, rename it and create a network for it to replicate what could have been a single "File -> Import HISE Snippet" command.

      Christoph HartC 1 Reply Last reply Reply Quote 1
      • Christoph HartC
        Christoph Hart @Christoph Hart
        last edited by

        @Christoph-Hart Oh actually I can replicate the crash when I load the compiled network into a HardcodedMaster FX. It seems that it wrongly scales the initial delay time to a bogus value which then eats up all the memory when trying to allocate the delay buffers. I'll investigate more..

        Christoph HartC 1 Reply Last reply Reply Quote 1
        • Christoph HartC
          Christoph Hart @Christoph Hart
          last edited by

          So the reason why it's crashing is that you're using different ranges for the delay time parameter knobs and their targets. In order to solve it, always make sure that you're using the same range on both ends or it will create a conversion (which in this time, failed).

          I'll think about a way to display this to the user so that it doesn't crash silently, but in the meantime, all you need to do to solve this problem is to open the range editor of the target knobs (the one that displays the curve over the knobs) and then right click and choose "Copy range to source". This will make sure that there is no range conversion going on.

          dejansD 1 Reply Last reply Reply Quote 0
          • dejansD
            dejans @Christoph Hart
            last edited by

            @Christoph-Hart Thats awesome, thank you sir! :)

            Christoph HartC 1 Reply Last reply Reply Quote 0
            • Christoph HartC
              Christoph Hart @dejans
              last edited by

              Alright, I've added a warning icon next to the parameter knob if there is a range mismatch between source and target.

              I don't want to fix it automatically as there are a few reasons why you would want a different input range (eg. the soft_bypass templates map an integer range 0-4 to 0.0...1.0 of the fader node) but in most cases it's a subtle difference that will make the compiled node slightly less performant (or in this case even crash).

              Clicking on the button will show you a dialog with the source and target range and you can easily copy the target range back to the source to make the warning go away (if it's reasonable). Note: if the source range and the target range appear the same, it's most likely a difference in step size that causes the warning.

              70aab1f7-b639-4a04-b216-e968630740ec-image.png

              orangeO 1 Reply Last reply Reply Quote 8
              • orangeO
                orange @Christoph Hart
                last edited by orange

                @Christoph-Hart

                Ranges are the same, but still get this warning. Is it safe to use like this?

                Screen Shot 2023-01-09 at 17.33.33.png

                develop Branch / XCode 13.1
                macOS Monterey / M1 Max

                Matt_SFM 1 Reply Last reply Reply Quote 0
                • Matt_SFM
                  Matt_SF @orange
                  last edited by

                  @orange check the skew values 😉

                  Develop branch
                  Win10 & VS17 / Ventura & Xcode 14. 3

                  orangeO 1 Reply Last reply Reply Quote 0
                  • orangeO
                    orange @Matt_SF
                    last edited by

                    @Matt_SF said in Custom DSP Network Crashes DAW:

                    @orange check the skew values 😉

                    Skew values are the same too, also as it's shown in the image, middle points are even the same :)

                    develop Branch / XCode 13.1
                    macOS Monterey / M1 Max

                    Matt_SFM 1 Reply Last reply Reply Quote 0
                    • Matt_SFM
                      Matt_SF @orange
                      last edited by

                      @orange ah don't mind my sillyness. I assume you've check the other properties by right-clicking on the parameters? (stepSize, etc...)

                      Develop branch
                      Win10 & VS17 / Ventura & Xcode 14. 3

                      orangeO 1 Reply Last reply Reply Quote 0
                      • orangeO
                        orange @Matt_SF
                        last edited by

                        @Matt_SF Yes all of the properties are the same.
                        Threshold knob is connected to the converter node (dBtoGain mode)

                        develop Branch / XCode 13.1
                        macOS Monterey / M1 Max

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

                        25

                        Online

                        1.7k

                        Users

                        11.8k

                        Topics

                        102.3k

                        Posts