HISE Logo Forum
    • Categories
    • Register
    • Login

    Spectrum ballistic (display buffer)

    Scheduled Pinned Locked Moved Unsolved General Questions
    52 Posts 7 Posters 3.7k 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 @Christoph Hart
      last edited by ustk

      @Christoph-Hart The analyser buffer path produces plenty of artefacts:

      Screen Recording 2022-05-14 at 14.59.43.gif

      Although the code is as simple as it can be
      This happens 50% of the time after hitting compile, so try to compile several times if you don't see the issue
      It seems to happen more with highest buffer size (like 16384 or 32768)

      HiseSnippet 2149.3ocwY0saajaElisobrVmfDffhd4Ti8BY.GgYjkUraw1H4ejsPrcDr75cMBBBnmgRhvyecFpUVcQ.ReE5c6c8In226xqSup6aP6gjynYFYoXas6lJH3Qj7bN7iGd324vwsC8snQQ9gHsUNeT.EosJtyHOd+85SXdnV6iz9c3lMOWe2Ac6RC02OjLj40SeSztiBHQQTajl1hGJjUakkPxO+7q1k3P7rnocgPW3yrnGybY7zdaW+0LGmlDa54L2LRWsdKKeu87c7G.3ZQrAJfXcMoG8ThPrEvHsBGXy39gc3DNMBoszt91i5z2enmR9KXQrqbnhFlnNfgTc2z2wVfXQun85ybramr9iPfUZm5MVT4MdN9DlMab+odkmJGPOUir9CsExCuEyAOyrvyHC7lBjzx.IrBROC2wJjEvSGQfmuB2xiSC6R.2dVnb5.28YQANjQpcP.MXsE.mrxHnEnKh2yGT0iW1kbMsYHzXroJYVwvXC8ZFFq+mJVD1Th35+.ITuMwi5Xp+M5Ip1ix2y2Mv2CZTZM0vqA5jpRDrYZQAUjgWBExgqNxgKslBV5M+do5EUVprMgSJekJD7ahM0sLQIIHSTIhxaCaV7y7GvYdzRcG3YwY9dk5sdwer3J8DBnBwJodDUdHi2ugSPex3d7CId8nanaT9kasNXcPMa3DPaBueIdeVjBXAPyMzeK3nfuxtAn8cLaPn0S63HJqWedo0emvbaY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19NiB566wrDcojHIVpgq+.QFaU.kl1o91.ZvMIVPn7HQgYhbTh5IfDBhB1FmXHGXR4lEwzBijbOLUjILotxJCD2BaQw3hk2hwylxb9QVPAphzinaM8gzxYF9gMahErC8ljRZlHMwj8.sa4YSuQj46EPcRoj7hyJiaAS0ILuKTadXwN.5DxMiaWEZ2gSCDTNh1.onzoUPTC.EkSNTFiVH0nEvUxa0UfNLDD1Yr7ygY1zP8wr5NFll0.xkqoCUdPk.UpryNFU2pVkJaVc6Wt8Vw27SPAOf5YMJANOCaZr4Vk2VXqsL2rVsbPK250LGxJfMqMiE7pxoQ+LQDIJm5n6quzbl9xCAl1YazktKiJLxx318IQYrhw7XkBxBMmDJoEMiPYhzw3tc44CweLl3QbFEQKKF5KS3sL4S1n6oA3BJejkCkLwoxUwtvyxpQxi3ruuj6.8Kj63k1Ce2S00D6dYWGybEJK+TzBJtdAUnZqnKDiBk1jXQfULOEbALjbm++cx2XXLWzt+xcIy08CKj49gO5gToQlqJ90Yup3WW2kHJORq.zfwotvj+G.JrJUKVwn51EqZrSshaatSkhxJkKtYkWVaaT9qW9w2N40KQ+YQ566ERmnVlYgySSv4xo3rN9L3VVPMHNzhSTudwif5Jfx+fmddEeMgEQCKddHSIbSH75bvc9.WFO49ULUlk.K6RnUcWlssCssObYTYzcxDe9mhFSMmTCy+5UtYewtW9I45eru4SQv9qrvVrt8tHWYPuHPQdwh6dk0pNmdCWbWwyZb5gGne7aP1ztjAN7KlRsficAO99UM3rbAHzLbAnJ2oK3iWj2EfP+J6BNpEJ6Rck6UYqY.znIVoYAa834ZE7k5G13jSZLCuMZVwHneNiyP5axh0kuyJjmENaUOEme74+y+yqlBtjUTqv+x38OXuFW9k45UtDqP+2aE+pB.lxGI6AHg8j+yHVAehnstYR8+pTWfGj8dKqjZOmtNUlCc1bNzo5bnyVygN0lCcd4bny1eVcD+eYZLf66pReCcz9.YVNMsC7DupI46cB8+..XsOx.
      

      I thought it would be better once compiled but the same thing happens in the binary
      I don't always get it as bad as it is in this example but in every attempt I still have some artefacts here and there wich is unfortunately not usable in a commercial project as it is...

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

      ustkU 1 Reply Last reply Reply Quote 0
      • ustkU
        ustk @ustk
        last edited by ustk

        @Christoph-Hart Some more debug info:

        Strangely this only happens to the first external buffer when you create two of them

        HiseSnippet 2187.3ocyY8zaajaEmx1TNVqSPBPPQON0XOn.jHLirrhcKZirrsrEhsifkWuqQPP.8LTRDdlgZmgZsUWDfzuB81dqeB58dKm6GjBzSc+Fz9H4LZlQVxVV6lfZj.YR99yO93iueOJ2JfaSCC4Anbqb5v9TTtUwsG5K5sSOByG0bWTteCtQiSMpOnSGZfwtAjqX9cMpfpOrOILj5fxkaw8kxlakkPpe94WUm3R7soISgPmwY1zCYdLQxrsp8ZlqaChC8TlWJoqTqoM2eGtKe.fqEwln9D6KIcoGSjhs.FkK+dNLAOnsfHngnbKUm6LrcO9U9Z4OiExtvkJGXgZCFROcCtqiDwxYQ6zi45zJd+Gh.qzJIZrnNZ7T7QLG1n4ShJOVsfQhFoiG4VHK7VLC7rRCOyTvaBPJWJHg0P5I311Ar9hjUj34qvM8EzfNDHrmFJGOvaWVXeWxP8IHfFbtEffr1HnE9WKh2gCp5KJ4Qtj1H.FLxTEsJaZ9bipllO6OTn.bnDJL9ARfQKhO00x3OZDqZWpXGtWetOLn3Z5kWCzIQkP3vzlBpnRujJjAWsUKWbMMrLZ7cJ0KnsTIGhfT5BkflfIz15F1nnDk2TCqaQCKoSh0IjJZAmuhS3CDLeZwNC7sELtewtOqvOVXktRAzYkE0eDVhGP76RAi.q5.2MZQD8JJ5wB0.nOLDheuE9O7O07.D9VlCH0yRl3.JqaOQwm8NPrRaXpM2McF46GPtUWYockk48yYeXrff71XvNDW2KfqcIQAUPXr8FDZSlI5.pjc.Ex6U36drye6KrJIAeIsJuv5cpAxM7X6xI3TqOSNMf1WlQTLJJEGiDj.cTp35paFi9INXYv8OlKnuIJpU3CELFeoNcl3ZxaTAbWWv1SZYsWu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KfVxR3Sj2UFMBb0QL+yzGdX4I.5Hx0iFWAF2VP6KK4HGC0QUAs7x1MnnLxgRYz7IFMOtbVqtBLgorFeJK+TvyVl5erprkokUUn3xkzqzQPs.kKu0VlU1nZ4xqWYyWt4FQuxUV0d.02dXLbdB1xb8MJsozVaXsd0pYfVl8qUFjkGaUcJa3UUtw3DYFIJi5nYMVZM0X49Pk1oazktKiJMxx3V8Hgorh47Xk7pdZGGJI8miPoxzw3NcDYSweHl3SbGFRKIW5KS5sh7Ic18TAbdIfs9+ADac2HNu9T01kRFqNxpXO3yR5Uxh3zeaV2A5WHSAgb2+7M8TikukdeL0cnp2b4H3kGKnub0L7L4pP+awVDpiWmygVFULHnrDH4wPqIhOOTG4lcpiHXLWjF+xCOy0Coym5gzO39zmTp2T+0oeS8WWyiHatKWdX.SP8.m+6fBvkqTnrYkMKTwbqpE1zZqxErpt9lUJndf.J66v+3aG+c3n+jr4iYBoi0I1zv4ww3b4DbVCeB7bTnCJWZgwdfRgCfthflWgO88K7ZBKjFT3z.lV3FP50oP37dtMdzr0JXps.K8VnYMOliiKsEGd0tJ6N1wm9ovQDKwcf8OdkW5uB9y+jZ+OJ17oP37U0VN1voNxSkzKSTTuj5t2YMqInWKjOp9jsOd+8LN7MHGZGx.WwYSnS1QgfGNa8xNsP.BMkP.p7cFB93YYCAHzuxgfCZhRuUWYlZ5NEfFN1NMMXqE4qUvmar+1Gcz1SIZilVNB5mSELTwlzXc46r+9ogyl0Rv4Ge5e++7pIfK06Az3eY7t6sy1m+k4wgdD6.96si9NUfJkOPMCTD1W8mMZE7QxwFVwudQSiAQP16ssi6bdx5TdNzY84PmJygNaLG5TcNz4kygNadq5H+Kns8.A2SSeCSzZOEKWtb64K+N4TeAcn+G9U3qj
        

        Screen Recording 2022-05-14 at 17.35.46.gif

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

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

          @ustk yes this is most likely a multithreading issue between the UI thread and the scripting thread. I‘ll look into it. It‘s on macOS?

          ustkU 3 Replies Last reply Reply Quote 0
          • ustkU
            ustk @Christoph Hart
            last edited by

            @Christoph-Hart Thanks, yep macos

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

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

              @ustk I couldn't reproduce it consistently (I can imagine it depends on your hardware because the glitch only happens when both threads access the same data). I've pushed a fix, but I can't ensure it fixes your problem.

              1 Reply Last reply Reply Quote 0
              • ?
                A Former User @Christoph Hart
                last edited by A Former User

                @Christoph-Hart

                		windows.add("Flat Top");
                		windows.add("Blackman Harris");
                		windows.add("Hann");
                		windows.add("Hamming");
                		windows.add("Kaiser");
                		windows.add("Gaussian");
                		windows.add("Triangle");
                		windows.add("Rectangle");
                

                It's great to see to customize the spectrum analyzer, well done! In the source code there are various Window Types. While swapping them, I couldn't see any difference on the spectrum except Rectangle type. Is there anything we should know about these?

                Except this cubic spectrum, can the spectrum type be changed (for example curvy spectrums like below)?

                alt text

                DanHD 1 Reply Last reply Reply Quote 0
                • ustkU
                  ustk @Christoph Hart
                  last edited by

                  @Christoph-Hart Unfortunately that didn't fix the issue

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

                  1 Reply Last reply Reply Quote 0
                  • ustkU
                    ustk @Christoph Hart
                    last edited by ustk

                    @Christoph-Hart Check at this, it appears that the glitch isn't from createPath but within the buffer itself.

                    Here I use getReadBuffer/getResizedBuffer with a sinus and you can see the spectral trace of the first harmonic as we should, plus the oscillo trace of the sine as a glitch at the same time. This means the buffer sometimes contains both sets of data so it is probably not clean as it should.

                    Another issue -> the data are spread only on the first half of the buffer (for instance the full spectrum goes from 0 to 128 in a 256 length resized buffer (or full read buffer), the remaining are zeros)

                    When using createPath, it isn't the sine that we see as a glitch, but it might be the imaginary part
                    The problem might not be a thread access issue after all...

                    HiseSnippet 2268.3ocyY0raajbDtojFJqYsMrALB1iSD1CzXkomg5GKua1Xp+nMgsjID0pcMLLLZMSSx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wr1CXgtCSgycMbrWc8pah5ZcmU2XiBPqf85T.YkMb1XJF7MUGi0gXDIof3jY0W5LUe4SgLsSWoKbYJEUxhFs5Qi+H2HyjVJqJscbnjUlNgjKR2vnSGYwP7aYPCo9CiYUwk9zDdqHexGcOU.WFAry+OfXmKGwk02ppFhKB4aZD.epaUdLDm+6m5RP+bERHT5pGuomZr3s71wTsPUI53HnAj4zOtZFeLtJT+VpFg73aKDPIiJFDRQBjxFPoIxeanNJM6TGIv3ZQZ7K28bs5mtbt9ouwUoNobsV+E4as9KpGPwh6JUFFvkr.3v+8F3WHjYM601zbM6GugI1bfoyFqt4ZlpFDHEaG+8ud71wI+Qr3iYBoiUI1zv4Ao3bwLbV23PnqTnBJel4XMnX9LnpHn3U3yvPymS4wrHyih35M2.BuNBbmWQy31yVof4LAddSnY8.tmmOqk.ZdWEcmdvG8g3QDKoUf8OeRP9uT8W8Ak8Ox27gX39UUVtgk21j.UPOFnn5j5xsrl0krykXu0Gt0AOcOqW7RhGqCcfu73ITI6HWvslsZYmlKfPlhKfT6RcAu+3ht.B4WYWvyZRxapKMSEcmCPCGyRyC15Im0RFux5oas+9aMEuMYZwHjeNmyP4axi0Euz56mFNaVOCmu+d+8+ySl.tT8Cnw+hF6t2Na8pOMMGFPciDu0M4qVAxTdC0LPR3P0eHnkL1GGa4j18hlFC7f7255lV47jko10PlUuFxr10Pl0uFxrw0PlGcMjYyOpL3eSrsFHEAZ5aXhV6oX4JUZuP7qlS88zQ9eP5i+5d
                    

                    Screen Recording 2022-05-16 at 01.50.36.gif

                    Below I generated two spikes (20Hz & 20kHz) + noise to demonstrate the buffer is going up to SR instead of 20kHz. Maybe a remaining of the real + imaginary part that necessitates doubling the Nyquist length? That isn't as bad as the glitch though because it is easy to limit the drawing to 20kHz...

                    SR = 48kHz

                    Screen Recording 2022-05-16 at 14.43.02.gif

                    SR = 96kHz

                    Screen Recording 2022-05-16 at 14.48.55.gif

                    @Christoph-Hart Any insight on this ? I really need the spectrum to work :)

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

                    1 Reply Last reply Reply Quote 0
                    • ustkU ustk marked this topic as a question on
                    • DanHD
                      DanH @A Former User
                      last edited by

                      @harris-rosendahl yep, curves would be nicer than the square edge current design...

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

                      ustkU 1 Reply Last reply Reply Quote 0
                      • ustkU
                        ustk @DanH
                        last edited by ustk

                        @DanH you can implement it yourself with a read buffer and an interpolation of your choice. This way you can make the desired shape (cubic, line, bars, etc...)

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

                        ? 1 Reply Last reply Reply Quote 0
                        • ?
                          A Former User @ustk
                          last edited by

                          @ustk said in Spectrum ballistic (display buffer):

                          @DanH you can implement it yourself with a read buffer and an interpolation of your choice. This way you can make the desired shape (cubic, line, bars, etc...)

                          Is it possible to give an example for this iteration & read buffer please?

                          ustkU 1 Reply Last reply Reply Quote 1
                          • ustkU
                            ustk @A Former User
                            last edited by ustk

                            @harris-rosendahl For a readBuffer just look at my snippet above

                            for any data interpolation, type "cubic interpolation code" in your favorite engine and you'll get plenty of math explanations and code examples.

                            be aware that a buffer goes from 0Hz to SR and is linear. So you have to take only the chunk you want (typically 20Hz-20k) and perform a logarithmic scaling (both for freq and level). You also need to downsample, unless you want to draw 20k pixels in a panel (getResizedBuffer might be preferable if you don't want to make the downsampling yourself)...
                            This is what the internal createPath of Hise is doing. In comparison, the readBuffer contains the raw data so the whole filtering and shaping part is on your side. But for now it is broken anyway. You can still work with it though, but it can't be used in a final product so much it is glitchy.

                            Yeah, that's a lot to read and learn ahead :)

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

                            ? 1 Reply Last reply Reply Quote 2
                            • ?
                              A Former User @ustk
                              last edited by

                              @ustk Thank you! 🙏 🙏

                              DanHD 1 Reply Last reply Reply Quote 0
                              • DanHD
                                DanH @A Former User
                                last edited by

                                @Christoph-Hart @ustk so on Windows do I need to add ipp when exporting with this new Analyser module?

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

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

                                  @Christoph-Hart said in Spectrum ballistic (display buffer):

                                  @ustk Yes I've added this recently. if you click on the edit button (where you can assign an external slot), you can see a new entry called "Edit properties". This opens a JSON editor that lets you change the properties:

                                  6f72eb4e-d2b9-4494-9801-2b893c936339-image.png

                                  Be aware that these properties are not stored in the network, but you can set them programmatically using the scripting API:

                                  // only works with ring buffers that you have registered as external.
                                  const var dp = Engine.createAndRegisterRingBuffer(0);
                                  
                                  const var mySpecialProperties = {
                                    "BufferLength": 4096,
                                    "WindowType": "Triangle",
                                    "DecibelRange": [
                                      -90.0,
                                      0.0
                                    ],
                                    "UsePeakDecay": false,
                                    "UseDecibelScale": true,
                                    "YGamma": 1.8,
                                    "Decay": 0.2,
                                    "UseLogarithmicFreqAxis": true
                                  };
                                  
                                  dp.setRingBufferProperties(mySpecialProperties);
                                  

                                  Can I apply these setting to an EQ displaying in a FloatingTile (not in ScriptNode)?

                                  HISE Development for hire.
                                  www.channelrobot.com

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

                                    @Lindon I think I've done it recently (just for testing). I've simply copy/pasted the JSON datato the empty floating tile data.

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

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

                                      @Matt_SF you mean like this?

                                      Screenshot 2022-09-20 at 13.14.01.png

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

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

                                        @DanH I think so, it's been a while and I didn't spent much time on it 😅

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

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

                                          @Matt_SF ok thanks! Doesn't do anything for me sadly...

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

                                          Matt_SFM 3 Replies Last reply Reply Quote 0
                                          • Matt_SFM
                                            Matt_SF @DanH
                                            last edited by

                                            @DanH I'll try again in a minute, I'm just compiling the last commit

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

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

                                            19

                                            Online

                                            1.7k

                                            Users

                                            11.8k

                                            Topics

                                            103.2k

                                            Posts