HISE Logo Forum
    • Categories
    • Register
    • Login

    Spectrum Analyzer gets stuck

    Scheduled Pinned Locked Moved General Questions
    21 Posts 3 Posters 203 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.
    • pcs800P
      pcs800 @d.healey
      last edited by

      @d-healey So here's what the code looks like now

      {
        "ProcessorId": "Parametriq EQ1",
        "Index": -1,
        "FollowWorkspace": false
        "AllowFilterResizing": true,
        "AllowDynamicSpectrumAnalyser": 0,
        "UseUndoManager": false,
        "ResetOnDoubleClick": true,
        "GainRange": 24.0,
        "AllowContextMenu": true
      }
      

      But I get an error when compiling.
      624abfa7-d2dd-43de-83d8-1e137e3f0097-image.png

      1 Reply Last reply Reply Quote 0
      • pcs800P
        pcs800 @d.healey
        last edited by

        @d-healey Never mind, i found the missing comma :-)

        1 Reply Last reply Reply Quote 0
        • pcs800P
          pcs800 @d.healey
          last edited by

          @d-healey This change in code didn't help. It still sticks.
          I did change the gainrange, to no avail.

          d.healeyD DanHD 2 Replies Last reply Reply Quote 0
          • d.healeyD
            d.healey @pcs800
            last edited by d.healey

            @pcs800 I looked further into my project (it's been a while) and seems I am setting up some properties in the script too - not sure if this is documented anywhere.

            local dbs = Synth.getDisplayBufferSource("parametriqEq");
            
            setEqProperties(dbs);
            
            inline function setEqProperties(displayBufferSource)
            {
            	local props = {
            		"BufferLength": 4096,
            		"WindowType": "Blackman Harris",
            		"DecibelRange": [-100.0, 0.0],
            		"UsePeakDecay": false,
            		"UseDecibelScale": true,
            		"YGamma": 1.0,
            		"Decay": 0.6,
            		"UseLogarithmicFreqAxis": true
            	};
            			
            	local dp = displayBufferSource.getDisplayBuffer(0);
            	dp.setRingBufferProperties(props);
            }
            

            Libre Wave - Freedom respecting instruments and effects
            My Patreon - HISE tutorials
            YouTube Channel - Public HISE tutorials

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

              @pcs800 it could be to do with suspend on silence. When audio's not passing through it will disable the module. But of course the analysis curve has a decay which hasn't fallen to 0.

              @Christoph-Hart is there a way to disable this?

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

              1 Reply Last reply Reply Quote 0
              • pcs800P
                pcs800 @d.healey
                last edited by

                @d-healey I put that code in onit and get an error
                Interface:! Line 107, column 7: Cannot define local variables outside of inline functions or callbacks.
                Parametric:! Line 107, column 7: Cannot define local variables outside of inline functions or callbacks.

                This line

                local dbs = Synth.getDisplayBufferSource("Parametriq EQ1");
                
                d.healeyD 1 Reply Last reply Reply Quote 0
                • d.healeyD
                  d.healey @pcs800
                  last edited by

                  @pcs800 Ah that makes sense. Change the local to a const.

                  Libre Wave - Freedom respecting instruments and effects
                  My Patreon - HISE tutorials
                  YouTube Channel - Public HISE tutorials

                  pcs800P 1 Reply Last reply Reply Quote 0
                  • pcs800P
                    pcs800 @d.healey
                    last edited by

                    @d-healey

                    Const dbs = Synth.getDisplayBufferSource("Parametriq EQ1");
                    

                    Interface:! Line 107, column 7: Found identifier when expecting ';'
                    Parametric:! Line 107, column 7: Found identifier when expecting ';'

                    d.healeyD 1 Reply Last reply Reply Quote 0
                    • d.healeyD
                      d.healey @pcs800
                      last edited by

                      @pcs800 Lowercase c

                      Libre Wave - Freedom respecting instruments and effects
                      My Patreon - HISE tutorials
                      YouTube Channel - Public HISE tutorials

                      pcs800P 1 Reply Last reply Reply Quote 0
                      • pcs800P
                        pcs800 @d.healey
                        last edited by

                        @d-healey Oh boy, it seems that upper/lower case thing trips me up a lot :-/
                        So yes, now the analyzer is retracting as expected.
                        My next adventure will be to change its color to cyan.
                        How do I do that? Is it a laf thing? If so, I will be stuck for a while, I have not watched any tutorials on laf.

                        d.healeyD 1 Reply Last reply Reply Quote 0
                        • d.healeyD
                          d.healey @pcs800
                          last edited by

                          @pcs800 Yeah laf is the way to go. There are a few laf functions for the analyser.

                          Libre Wave - Freedom respecting instruments and effects
                          My Patreon - HISE tutorials
                          YouTube Channel - Public HISE tutorials

                          pcs800P 2 Replies Last reply Reply Quote 0
                          • pcs800P
                            pcs800 @d.healey
                            last edited by

                            @d-healey Can you point me to something that would educate the quickest for this particular use?

                            d.healeyD 1 Reply Last reply Reply Quote 0
                            • d.healeyD
                              d.healey @pcs800
                              last edited by

                              @pcs800 Have you used paint routines?

                              Libre Wave - Freedom respecting instruments and effects
                              My Patreon - HISE tutorials
                              YouTube Channel - Public HISE tutorials

                              pcs800P 1 Reply Last reply Reply Quote 0
                              • pcs800P
                                pcs800 @d.healey
                                last edited by pcs800

                                @d-healey Actually I spoke too soon. The analyzer is still sticking, but not as much. Meaning, it leaves less of a peak showing than before. So I changed "Decay": 0.6, to "Decay": 0.3, and it seems to have fixed it

                                1 Reply Last reply Reply Quote 0
                                • pcs800P
                                  pcs800 @d.healey
                                  last edited by

                                  @d-healey Paint routines, no I have not

                                  d.healeyD 1 Reply Last reply Reply Quote 0
                                  • d.healeyD
                                    d.healey @pcs800
                                    last edited by

                                    @pcs800 In that case just search my channel for look and feel/laf/paint routine videos. I haven't done one specifically about the EQ or analyser but once you know how laf works for one component it's pretty much the same for all.

                                    In some of the older videos I'm using global look and feel because that's all we had. But these days you should use local look and feel instead - except for a few special places.

                                    You might also be able to use css for the analyser, but I haven't covered that in any videos.

                                    Btw, paint routines and laf are essentially the same. Paint routines are for panels only, while laf is for all other components.

                                    Libre Wave - Freedom respecting instruments and effects
                                    My Patreon - HISE tutorials
                                    YouTube Channel - Public HISE tutorials

                                    pcs800P 2 Replies Last reply Reply Quote 0
                                    • pcs800P
                                      pcs800 @d.healey
                                      last edited by

                                      @d-healey Ok I will check into it. Thanks

                                      1 Reply Last reply Reply Quote 0
                                      • pcs800P
                                        pcs800 @d.healey
                                        last edited by

                                        @d-healey So, instead of
                                        const laf = Engine.createGlobalLookAndFeel();

                                        I should use
                                        const laf = Engine.createLocalLookAndFeel();
                                        Correct?

                                        d.healeyD 1 Reply Last reply Reply Quote 0
                                        • d.healeyD
                                          d.healey @pcs800
                                          last edited by

                                          @pcs800 Content.createLocalLookAndFeel I think - check the API browser

                                          Libre Wave - Freedom respecting instruments and effects
                                          My Patreon - HISE tutorials
                                          YouTube Channel - Public HISE tutorials

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

                                          34

                                          Online

                                          1.9k

                                          Users

                                          12.2k

                                          Topics

                                          106.6k

                                          Posts