HISE Logo Forum
    • Categories
    • Register
    • Login

    Continuous audio loop

    Scheduled Pinned Locked Moved General Questions
    17 Posts 2 Posters 735 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.
    • T
      TNTHM
      last edited by

      I'm trying to use the Loop Player to play a tone, say 200 Hz, continuously like a drone. I have the 200 Hz tone audio file loaded into the Loop Player but I can't figure out how to get it to play without clicking one of the keys on the piano roll. Is there a way to script a note on the piano roll to always be pressed? Or to have the Loop Player play its audio continuously some other way?

      Is there a way to script a button to control one of the notes on the piano roll so that when it's clicked on the note on the piano roll is engaged?

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

        Any reason you need to use the audio loop player for this?

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

        T 1 Reply Last reply Reply Quote 0
        • T
          TNTHM @d.healey
          last edited by

          @d-healey nope. I want to have a few drone notes at different pitches that can be turned on and off that's all. I thought the loop player was the best bet. Is there a better way to do this?

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

            @TNTHM

            Synth.playNote();

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

            T 1 Reply Last reply Reply Quote 1
            • T
              TNTHM @d.healey
              last edited by

              @d-healey Yeah that's better. Appreciate the tip. What do I put inside of the ( )? Is it the name of the note such as G1 or A2?

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

                Link Preview Image
                HISE | Docs

                favicon

                (docs.hise.audio)

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

                T 1 Reply Last reply Reply Quote 1
                • T
                  TNTHM @d.healey
                  last edited by

                  @d-healey I'm getting an error. What did I do wrong?

                  HiseSnippet 892.3oc4W0saaaCElL1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G7OYfqCiHkGoy2aRQ8vWx4tl8Whcmly3q13L95MNiGswY73MNimrwY7MabFe6Jxv8wmiJr5T+nGZX7fxSaRoCTLj4VxxIuG7CzvUC
                  
                  1 Reply Last reply Reply Quote 0
                  • d.healeyD
                    d.healey
                    last edited by d.healey

                    Skip the int, that's just telling you what datatype to use.

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

                    T 2 Replies Last reply Reply Quote 1
                    • T
                      TNTHM @d.healey
                      last edited by

                      @d-healey You're a legend. Thanks!

                      1 Reply Last reply Reply Quote 0
                      • T
                        TNTHM @d.healey
                        last edited by

                        @d-healey Trying to connect it to a button to turn the tone on and off. Any ideas?

                        HiseSnippet 987.3oc4W0saaaCElx1Zc1cIXsnWrKEJ1EN.cAVaMsEnWTm3XOXrlDinzhgcSGCEsMQnHUknxlQQeG2iReC1NjTxRdQy0dYaXXS9Fyye7imyGOGoIIRBMMUlfbZewhXJx4ybCVHTyGLGyDnwGib108Dbphl3YEczhXbZJMD43z7a0BbZ2BYd9vKNBywBBsTDB8ZIiPeIKhoJkNo+2w37Q3P5ErnJV+39iIRw.IWlA3ooaOTLlbEdF8Tr1rFtHmOYXHSISBTXEME4z5HY3hf4xeRXs+0rT1kbpdgOJ.BjU7HIOTiX8+QCly3gSJN2oHji6jxrPSaV3AtmvBYKkWlM9biBuROplObZrN34WEd81b34TAdsrv6dtAjDVrpTiFa20cr.JTSwPInJrr1hZPbbGHAKDp8ivWQGk.KV5Q2mzq2i7NnWu8d9Ncz+XBNSP8llIHJlT3IEGkoTRguNFIRdWhLJVJfn8Huqw7L5d6z4c6zwCdLLn8i43EmJUztG.A12F32aBdAJlQUCJBR2GlG9Gt29oZ4lMY.lyuDHAc+86tNXUfldeNSzcuNuqS6Nu+FZlNsNU4ghSSpSqlalrF25JxhtjlTb3ysCJQqxA57GyApRQI1TRECkhwBl5rX5x01CYgjdnkGtphJOTUkZNL0XVonaR7P4kIMEL2bvTkg.taNAzVTPLfm01MuBgLIjpMAPuZ7wXEtHPPLg8IllnX5LjywzqglDVlca2iooWojwFay4FPRcC11etbK+g9KVt3GI8Q27FDbOVFlwwpUubq6nkq.J1qbKReSQjxTKp1w6Vei2utD+FB264NgoHyqGuMpAuPA3ua7l2+bG2gSmRIpRv1xcz2+WayxOFT10Bk65F.8wLsjL.4N1AbqYP1uroCxh23AYmQT3qoWjfEowxzUBb.MhcAPySqJ7UoP6Y5aOWWVqJefDmTqpO7hQvorVeBvprDC+3vHYlPsBen4FWD1hAps9Wy.0ay0qae2flaFb+Hy7aWfw.VTLmNTbMkCcOMX79P6xo3LtpPp+Jn7DoPFOWJXjpE8yopD1rYzjpXu1CzgJEL7sTxC5eNkSwUIveY+WBDObBjmn+IyE9adtXc0quv0BWO8kQu+azEu4+O6hetLSwDyNACDUXrt6oYQAPuTBEPhPP4vF45zP2OzttmdssYpHzr3Wgmbk950N4J8KT9OxdDgIIx2Pru7jlK+oFIv4VX9jl1v2VAq8V9NS5bSDzO7MDhNY+UP1odO95s1iuYq83wasGGr0d7js1imt0d7r03gd3ygYJYj8pGHXxPy6p53LTfAlqgki9M.UbcPz
                        
                        d.healeyD 1 Reply Last reply Reply Quote 0
                        • d.healeyD
                          d.healey @TNTHM
                          last edited by

                          @TNTHM Are you subscribed to my patreon page?

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

                          T 1 Reply Last reply Reply Quote 0
                          • T
                            TNTHM @d.healey
                            last edited by

                            @d-healey I'm not, do you have a link?

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

                              FoooKINHELL I just loaded your snippet and nearly destroyed my house. I have no idea what is in your script but don't post snippets like that, it can damage speakers as well as ears.

                              @TNTHM said in Continuous audio loop:

                              @d-healey I'm not, do you have a link?

                              Ya, it's in my signature. I posted a video this month explaining pretty much what you're wanting to do. The general idea is in the button callback you have the call to playNote. The button needs to have saveInPreset disabled (I guess your snippet is missing that?).

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

                              T 1 Reply Last reply Reply Quote 0
                              • T
                                TNTHM @d.healey
                                last edited by

                                @d-healey Sorry about that. I didn't think it would do anything weird but obviously I was wrong. I will be more careful in the future.

                                The only things in it were the bit of code you recommended me and a button on the gui which I created a custom callback for and then put the bit of script inside of.

                                I'll check it out, thanks for the tip. I love your YouTube videos!

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

                                  @TNTHM I think your button is triggering playback as soon as the snippet is loaded, and it's loud. Just turn the gain down on the module before posting the snippet next time.

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

                                  T 1 Reply Last reply Reply Quote 1
                                  • T
                                    TNTHM @d.healey
                                    last edited by

                                    @d-healey I just closed and reopened the project and I see what you mean. Any pointers on how to get a button to turn the note on and off?

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

                                      @TNTHM If statement. You can use Engine.allNoteOff(); or Synth.noteOffByEventId(); to turn notes off.

                                      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

                                      47

                                      Online

                                      1.7k

                                      Users

                                      11.7k

                                      Topics

                                      101.8k

                                      Posts