HISE Logo Forum
    • Categories
    • Register
    • Login

    Analyser Oscilloscope Waveform On/Off (SOLVED)

    Scheduled Pinned Locked Moved General Questions
    7 Posts 3 Posters 497 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.
    • SteveRiggsS
      SteveRiggs
      last edited by SteveRiggs

      Afternoon all!

      I have 2 analyzers running oscilloscopes in my project. 1 for the unprocessed signal, and 1 for the processed signal with buttons set up to enable/disable both.

      The only thing is, when I push the button to disable one of them, the waveform only pauses.

      Is there a way for the waveform to totally turn off or disappear until it's enabled again instead of just pausing on the screen?

      I’ll put a quick 30-second video of my plugin below so you can see what I mean…

      www.anarchyaudioworx.com

      www.facebook.com/groups/audioworx/

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

        @SteveRiggs Why don't you just hide the floating tile in question?
        Look great by the way! 👍

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

        SteveRiggsS 1 Reply Last reply Reply Quote 2
        • SteveRiggsS
          SteveRiggs @ustk
          last edited by SteveRiggs

          @ustk Thanks man. The GUI is almost there now. A few more tweaks and we'll be rockin!!

          That's a good idea! If my button is named ‘unprocessedWaveformLabel’ and my floating tile is named ‘DrySignalWaveform’, Could it be something like this?...

          // Show/Hide DrySignalWaveform
          
          const var unprocessedWaveformLabel = Content.getComponent("unprocessedWaveformLabel");
          
          inline function onunprocessedWaveformLabelControl(component, value)
          {
           if (value)
              {
                  DrySignalWaveform.showControl(true);
              }
              else
              {
                  DrySignalWaveform.showControl(false);
              }
          };
          
          Content.getComponent("unprocessedWaveformLabel").setControlCallback(onunprocessedWaveformLabelControl);
          
          const var DrySignalWaveform = Content.getComponent("DrySignalWaveform");
          
          

          www.anarchyaudioworx.com

          www.facebook.com/groups/audioworx/

          1 Reply Last reply Reply Quote 0
          • SteveRiggsS
            SteveRiggs
            last edited by SteveRiggs

            @ustk Yep, that worked! ☺

            Cheers for the help dude! :beer_mug:

            www.anarchyaudioworx.com

            www.facebook.com/groups/audioworx/

            LindonL 1 Reply Last reply Reply Quote 1
            • LindonL
              Lindon @SteveRiggs
              last edited by

              @SteveRiggs very slightly less code...

              DrySignalWaveform.showControl(value);
              

              HISE Development for hire.
              www.channelrobot.com

              SteveRiggsS 1 Reply Last reply Reply Quote 1
              • SteveRiggsS
                SteveRiggs @Lindon
                last edited by

                @Lindon Ah! Nice one. I'm unsure which part to swap out though? The 'if/else' section?

                So more like this below? or something else? 🤔

                // Show/Hide DrySignalWaveform
                
                const var unprocessedWaveformLabel = Content.getComponent("unprocessedWaveformLabel");
                
                inline function onunprocessedWaveformLabelControl(component, value)
                {
                DrySignalWaveform.showControl(value);
                };
                
                Content.getComponent("unprocessedWaveformLabel").setControlCallback(onunprocessedWaveformLabelControl);
                
                const var DrySignalWaveform = Content.getComponent("DrySignalWaveform");
                

                www.anarchyaudioworx.com

                www.facebook.com/groups/audioworx/

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

                  @SteveRiggs
                  @Lindon's right, that's easier this way, even if both are good....

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

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

                  14

                  Online

                  1.7k

                  Users

                  11.9k

                  Topics

                  103.5k

                  Posts