Forum
    • Categories
    • Register
    • Login

    Kill the audio

    Scheduled Pinned Locked Moved Solved Scripting
    9 Posts 5 Posters 108 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.
    • Oli UllmannO
      Oli Ullmann
      last edited by

      Hi everyone :-)

      Is there a way to kill the audio? Something like AllNotesOff.

      Here’s the situation:
      I have several hardcoded effects, such as reverb, that continue to echo when I change plugin settings, causing unpleasant artifacts. I want to prevent this by kill all audio.

      I found
      BackgroundTask.killVoicesAndCall(var loadingFunction)
      Threads.killVoicesAndCall(var functionToExecute)
      but I’m not sure if this is the right approach or if it will actually do the job. And I don’t need any additional functionality.

      It is an effects plug-in.

      Thanks for your help,
      Oli

      David HealeyD trillbillyT ulrikU 3 Replies Last reply Reply Quote 0
      • David HealeyD
        David Healey @Oli Ullmann
        last edited by

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • trillbillyT
          trillbilly @Oli Ullmann
          last edited by

          @Oli-Ullmann could you use a gain?

          1 Reply Last reply Reply Quote 0
          • ulrikU
            ulrik @Oli Ullmann
            last edited by

            @Oli-Ullmann If you use "UserPresetHandler" you could set the gain to -100dB in the "setPreCallback()" and gain to 0dB in the "setPostCallback()"

            Hise Develop branch
            MacOs 15.6.1, Xcode 16.2
            http://musikboden.se

            Oli UllmannO 1 Reply Last reply Reply Quote 0
            • Oli UllmannO
              Oli Ullmann @ulrik
              last edited by

              @ulrik
              @trillbilly
              When I use a gain, the reverb tail is still there and becomes audible again as soon as I turn the gain back up. I’d rather have to clear the audio buffer or something like that... But I don't know if that's possible.

              ulrikU 1 Reply Last reply Reply Quote 0
              • ulrikU
                ulrik @Oli Ullmann
                last edited by

                @Oli-Ullmann try this, I use the backgroundTask

                HiseSnippet 1556.3oc2XE0aaaCDlxNJswcqXcnnXOJDrGbGJLraRZ6vvPRbbblwpSLhbSKvdnflh1lvRjZTzIwaX.6w8ya+D5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TWrRxfZO6CmF3B20Sn6kfNPlUIMUP7355w57EWJ2yL3efeIS1PO1JYxFoSliE4Pp5Lgbh43H4aj0s0w9aaKomRkCP656KNSyavRxbg3uQVOg+rvwBNinEEqQJJ2M.tYSkB0rz9loGEonF5VoOl4qqBbmFAzfdGwcg0wzhjU4SnxHyddK650f+fphCEdvT2pMl.w6Y8vZNn6YqYVg7WprFYdd7bWHepSbeRymRuZocSEiHvQBLDjPuT5SvdXIXBb4djoTnbNd13bX8HnxsTbFamnSzyRv9nSz4HZOyrKwwXC3WUq5ZIP.37y6J2wd340dq3NynqG3VkxCSTNe.R7lOBJ35x3IvLi4oK97KI6hscUzv3ysL8bmPOKF640L12ZA0ePZLpO8bUegY4frN.5ls8A1GJjAXeXA85Qgja3vaDEf4n3dXcmN3.n2nPyfqfuVzg3o9pKI+Mai936X2x9kla89v6VuY6+GcqUsM59g2qt3F3U5DzlBwj.rgHZo5rI+8Z2Mdx6.9DmZdllgM3AlwNuDZ3v4.JvTnugtw07Vs+9l9Vsva7a0NhnfsuuDyiBEQKd3PCX8gVyhxK7EQviKn+5wZty7x2SfkEN0Ea2FbxBswEqlJMjvojy450n7RcA+hsfkS+BtsekOVuG7SZeb+2a6r7MCtui9kVKEitLceN6CEq9PQhAiescRMWpzESx6J3hzqsyx.NlB8aLZDcQpghbncUJ3EaYRt+NGS8o37Yye6NOGxBwxtla6VpXw6+S4K775arigqitxz4yimKT9ynmK7d.kOEMF+oXOBvDo30j32SnykusQB327jV75pG6z.c5kunO.XEeMgr3RcECe7xZ3FKqgatrFt0xZ3SVVCe5xZ3yd2FpuzZ2oJQPbIKzXVu8MsxXYsu4+7go5.8uTOUQ7B
                

                Hise Develop branch
                MacOs 15.6.1, Xcode 16.2
                http://musikboden.se

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

                  usually the reverbs in HISE clear their buffers when they are bypassed and unbypassed.

                  Oli UllmannO 1 Reply Last reply Reply Quote 2
                  • Oli UllmannO
                    Oli Ullmann @Christoph Hart
                    last edited by

                    @Christoph-Hart
                    @ulrik

                    Hi guys,
                    thanks for your help! :-) I'm using granular and reverb effects whose buffers unfortunately aren't cleared via the bypass or backgroundTask functionality.

                    These were originally Max patches that I imported into HISE via RNBO. I then combined them further in a network and, after compiling, integrated them back into my plugin as hardcoded effects.

                    My workaround now is to unload the effects at the critical moment, then reload them and reset the parameters accordingly. There might be a better way, but this one works—at least so far. Let’s see what the beta testers have to say... :-)

                    Christoph HartC 1 Reply Last reply Reply Quote 0
                    • Oli UllmannO Oli Ullmann has marked this topic as solved
                    • Christoph HartC
                      Christoph Hart @Oli Ullmann
                      last edited by

                      @Oli-Ullmann The RNBO wrapper sends a reset message at the bypass / unbypass - can you react to that in the RNBO patch and clear out the buffers?

                      void reset()
                      {
                          for(auto& o: obj)
                              o.scheduleEvent(RNBO::MessageEvent(RNBO::TAG("reset"), RNBO::RNBOTimeNow));
                      }
                      

                      RNBO side: https://rnbo.cycling74.com/learn/sending-and-receiving-messages-cpp

                      Try an inlet called reset, should receive a bang.

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

                      19

                      Online

                      2.3k

                      Users

                      13.6k

                      Topics

                      118.5k

                      Posts