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.
    • 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
                            • Matt_SFM
                              Matt_SF @DanH
                              last edited by

                              @DanH Yep you're right, it's not working... Maybe I'm confusing this with something else I did... If I come up with a solution I'll post it here.

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

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

                                @DanH @Lindon this is one way to do it, but it uses a scriptnode analyzer :

                                HiseSnippet 1487.3oc2XstaaaCElJNpaw8BVGJF1OEJ1OT.RMr2Z6FPQQcrSbavZR8hSSGPwP.iDsMWnH0jnSh6PA1O2i0dD1ivdD5av14PJYIk3kk5s1ATmzByyEpOdt7cnR+DU.KMUkPbVYuowLhy0bGLUpG2cLkKIasAw4FtaSS0rDOqnNSiooorPhiSsGiBbVYYh4yadTGpfJCXEhHj8U7.1S4Qbcgz9s+VtPziFx1iGUx561dq.krqRnl.3olaSRLM3H5H1NTzrkbINWYyPtVkLPS0rThyxcTgSGLVchzZ+97T9gBFtnEY.rQVw8ThPDw32IcGyEg8yO2oDhia+hnPMaT3VtayC4yjWDM9DiBuBOJGObVpJ7pUAdsJCulkf2bfjSIHsrER2zcPPBOVWnAwyUc2RBImgTHrWFJVaIK8vZtcUfERciH5QrdIvhYd3e+lMWyC9uUeP85PnOU6cLMwKVJVWRESeEjzenWt6iX5tpnXkDV3e6R1bav6BmoYRG.Iw.F3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WA32uruBP7k9U.dFb+qiY6kPkowpzJa7.VDeOXhWZYgOOEtjK6m1EKyKKuqhlLWUu4Q8fC4b8Y.UOIwzuj2JThzu1klosLgQ0YgkreNztK+t58RduNP8e+7++adMpUxw3.N1kto7Xl.ZRLX7SgthgzIBctzpE4aqjpbRxhJfcY.C+nQXibA1m6AZcsFtXdgja0dWlfQKWM+EseJTERS11vSsPwhVu0uR4byWetqEtdXmo2GF2aq1G72aq0+WWE48wyHhFjnNHvdCNrV9iMRfysz7WFZE2sw0dsHGam76h2KgDALhGDDfg66.wm46yWt.97UKfO2cA74dKfO2eA74qW.e9lKzGbXz5SzpHaqHHn+l1603rojBUxlpdxeA7SAq9M
                                

                                You'll have to thank @ustk for his previous R&D on the matter :)

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

                                LindonL DanHD 2 Replies Last reply Reply Quote 0
                                • LindonL
                                  Lindon @Matt_SF
                                  last edited by

                                  @Matt_SF said in Spectrum ballistic (display buffer):

                                  @DanH @Lindon this is one way to do it, but it uses a scriptnode analyzer :

                                  HiseSnippet 1487.3oc2XstaaaCElJNpaw8BVGJF1OEJ1OT.RMr2Z6FPQQcrSbavZR8hSSGPwP.iDsMWnH0jnSh6PA1O2i0dD1ivdD5av14PJYIk3kk5s1ATmzByyEpOdt7cnR+DU.KMUkPbVYuowLhy0bGLUpG2cLkKIasAw4FtaSS0rDOqnNSiooorPhiSsGiBbVYYh4yadTGpfJCXEhHj8U7.1S4Qbcgz9s+VtPziFx1iGUx561dq.krqRnl.3olaSRLM3H5H1NTzrkbINWYyPtVkLPS0rThyxcTgSGLVchzZ+97T9gBFtnEY.rQVw8ThPDw32IcGyEg8yO2oDhia+hnPMaT3VtayC4yjWDM9DiBuBOJGObVpJ7pUAdsJCulkf2bfjSIHsrER2zcPPBOVWnAwyUc2RBImgTHrWFJVaIK8vZtcUfERciH5QrdIvhYd3e+lMWyC9uUeP85PnOU6cLMwKVJVWRESeEjzenWt6iX5tpnXkDV3e6R1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0dufdLy6wLHMhTkstfWA32uruBP7k9U.dFb+qiY6kPkowpzJa7.VDeOXhWZYgOOEtjK6m1EKyKKuqhlLWUu4Q8fC4b8Y.UOIwzuj2JThzu1klosLgQ0YgkreNztK+t58RduNP8e+7++adMpUxw3.N1kto7Xl.ZRLX7SgthgzIBctzpE4aqjpbRxhJfcY.C+nQXibA1m6AZcsFtXdgja0dWlfQKWM+EseJTERS11vSsPwhVu0uR4byWetqEtdXmo2GF2aq1G72aq0+WWE48wyHhFjnNHvdCNrV9iMRfysz7WFZE2sw0dsHGam76h2KgDALhGDDfg66.wm46yWt.97UKfO2cA74dKfO2eA74qW.e9lKzGbXz5SzpHaqHHn+l1603rojBUxlpdxeA7SAq9M
                                  

                                  You'll have to thank @ustk for his previous R&D on the matter :)

                                  sadly not a path I can go down now...

                                  HISE Development for hire.
                                  www.channelrobot.com

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

                                    @Matt_SF Thanks. A potential solution perhaps. It's still glitchy like @ustk pointed to originally and I'm still not crazy about the blocky lines 😆 Any chance of reinstating the old Analyser on top of these or adding a curvier Window Type @Christoph-Hart ?

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

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

                                      @Christoph-Hart This bug hasn't been yet resolved... Is it still the best way to draw a buffer, or something replaced it?

                                      This topic from above seems the best example for reproducing it:
                                      https://forum.hise.audio/topic/5791/spectrum-ballistic-display-buffer/17

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

                                      1 Reply Last reply Reply Quote 2
                                      • ustkU
                                        ustk
                                        last edited by

                                        @Christoph-Hart Any idea to sort this out?

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

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

                                          Has anyone ever released a product that uses a buffer drawing, or am I the only one counting on it at the moment?

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

                                          Matt_SFM DanHD 2 Replies Last reply Reply Quote 0
                                          • Matt_SFM
                                            Matt_SF @ustk
                                            last edited by

                                            @ustk I'm working on a project - far from being released - but I sure am counting on this one :)

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

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

                                            11

                                            Online

                                            1.7k

                                            Users

                                            11.8k

                                            Topics

                                            103.2k

                                            Posts