HISE Logo Forum
    • Categories
    • Register
    • Login

    FFT Analyser Path - Need help drawing the magnitude to height

    Scheduled Pinned Locked Moved Unsolved Scripting
    24 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.
    • ustkU
      ustk @HISEnberg
      last edited by

      @HISEnberg Yes I do, but some very simple/small ones in a plugin and some much more complex in a standalone. None of them relying on a background task that having been said.
      But in the standalone FFT analyser I remember fighting against a lot of instabilities so I used some flags here and there. I don't remember exactly, but probably flags preventing a repaint until the new FFT path is sure to be ready (because it wasn't a simple path, it took a lot of cycles to generate...)

      Can't help pressing F5 in the forum...

      1 Reply Last reply Reply Quote 1
      • C
        Consint @HISEnberg
        last edited by

        @HISEnberg @oskarsh Has handling the FFT path in a background task solved the problem for you? A user described exactly the same problem to me with one of my plugins and I can't reproduce it. In Studio One on Windows 11, the plugin has so much lag that it is unusable for him and sometimes even crashes, whereas in Mixcraft it runs without any problems. I then installed Studio One in a Windows 10 VM for testing and the plugin runs without any problems.

        HISEnbergH 1 Reply Last reply Reply Quote 0
        • HISEnbergH
          HISEnberg @Consint
          last edited by

          @Consint I kind of gave up on it and used HISE's stock FFT instead, I couldn't risk the issue coming up again. So in short I never tested moving it to a background task. I did edit my original code so that it only repaints when a new FFT path is shown and to reduce the amount of bins. According to the profiler it was more efficient than the stock FFT but this doesn't necessarily address the issue users are facing.

          Sorry wish I could offer more help with this issue.

          C 1 Reply Last reply Reply Quote 1
          • C
            Consint @HISEnberg
            last edited by

            @HISEnberg I tried it and it fixed the problem. It doesn't seem to have caused any other problems either. I did exactly as @ustk suggested and simply moved the path creation to a background task.

            HISEnbergH 1 Reply Last reply Reply Quote 1
            • HISEnbergH
              HISEnberg @Consint
              last edited by

              @Consint Do you mind sharing an example snippet? I recall trying this but it didn't work in my case. Perhaps I was doing something incorrectly.

              C 1 Reply Last reply Reply Quote 0
              • C
                Consint @HISEnberg
                last edited by

                @HISEnberg I couldn't make a better example snippet than @ustk has already done above. Maybe you can post your code and we can see if we can get it to work.

                1 Reply Last reply Reply Quote 0
                • ILIAMI
                  ILIAM @oskarsh
                  last edited by

                  @oskarsh Hey man, I tested the FFTVisual.
                  It works the first time (importing the snippet), but after just one change in the namespace and hitting compile, Hise freezes and crashes. Any ideas?

                  ChazroxC 1 Reply Last reply Reply Quote 0
                  • ChazroxC
                    Chazrox @ILIAM
                    last edited by

                    @ILIAM crucial 'one' change?

                    ILIAMI 1 Reply Last reply Reply Quote 0
                    • ILIAMI
                      ILIAM @Chazrox
                      last edited by

                      @Chazrox Nah, just changing a number!

                      oskarshO 1 Reply Last reply Reply Quote 0
                      • oskarshO
                        oskarsh @ILIAM
                        last edited by

                        @ILIAM not sure what is going wrong can you share a snippet and what to change? Are you using windows ?

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

                        26

                        Online

                        1.8k

                        Users

                        12.2k

                        Topics

                        106.1k

                        Posts