HISE Logo Forum
    • Categories
    • Register
    • Login

    Start/Stop AudioLoopPlayer

    Scheduled Pinned Locked Moved Scripting
    25 Posts 4 Posters 716 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.
    • Adam_GA
      Adam_G @d.healey
      last edited by

      @d-healey yes it usually plays back via midi note. i considered Synth.playNote but i have other Samplers and AudioLoopPlayers in the project and I cant figure out how to make that trigger a specific player only.

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

        @argon If you put the script containing Synth.playNote() within the loop player's chain that should (I think) limit its scope.

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

        Adam_GA 1 Reply Last reply Reply Quote 0
        • Adam_GA
          Adam_G @d.healey
          last edited by Adam_G

          @d-healey chain meaning inside of an onControl or something different? im a code noobie haha, your videos have been my bible

          edit: just to clarify, im attempting to have an audioloopplayer play a wav of a vinyl sample and have that sample always be playing. a knob will control the gain and keep it at zero unless the user increases it

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

            @argon The audio loop player has it's own midi processor section. Try putting your script there.

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

            Adam_GA 3 Replies Last reply Reply Quote 0
            • Adam_GA
              Adam_G @d.healey
              last edited by

              @d-healey ahhh good idea. ill give it a shot thank you

              1 Reply Last reply Reply Quote 0
              • Adam_GA
                Adam_G @d.healey
                last edited by

                @d-healey brilliant! it worked! thanks again :D

                1 Reply Last reply Reply Quote 1
                • Adam_GA
                  Adam_G @d.healey
                  last edited by

                  @d-healey i spoke too soon i guess, works in hise but not in a compiled plugin

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

                    @argon how are you loading the sample in the loop player?
                    The problem can be that the compiled plugin doesn't find it.

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

                    Adam_GA 1 Reply Last reply Reply Quote 0
                    • Adam_GA
                      Adam_G @Matt_SF
                      last edited by

                      @Matt_SF the samples are in the audio files folder and ive added them manually within the project

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

                        @argon said in Start/Stop AudioLoopPlayer:

                        @Matt_SF the samples are in the audio files folder and ive added them manually within the project

                        ..but did you add them to the AppData/AudioFiles folder in your compiled plugin?

                        HISE Development for hire.
                        www.channelrobot.com

                        Adam_GA 1 Reply Last reply Reply Quote 0
                        • Adam_GA
                          Adam_G @Lindon
                          last edited by

                          @Lindon yep, no luck

                          1 Reply Last reply Reply Quote 0
                          • Adam_GA
                            Adam_G
                            last edited by

                            @Matt_SF @Lindon ill try exporting with an audiowaveform panel connected to it to be sure the files are being found

                            1 Reply Last reply Reply Quote 0
                            • Adam_GA
                              Adam_G
                              last edited by

                              i wonder if its my hise version causing issues. im noticing now the audiowaveform panel doesnt function correctly as it does in other hise versions on my machine. im using a scriptnode commit from around may (i think). is there a newer one anyone can confirm is working?

                              d.healeyD Matt_SFM 3 Replies Last reply Reply Quote 0
                              • d.healeyD
                                d.healey @Adam_G
                                last edited by d.healey

                                @argon said in Start/Stop AudioLoopPlayer:

                                other hise versions on my machine.

                                9d174c46-d7de-40a5-bcd5-c6084a8a0bf7-image.png

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

                                Adam_GA 1 Reply Last reply Reply Quote 1
                                • Matt_SFM
                                  Matt_SF @Adam_G
                                  last edited by

                                  @argon I'm using the latest commit. I'm currently working with audio loop players and I can confirm it's working just fine.

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

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

                                    @argon but as David advertised (😂) , using multiple versions of HISE is the best way to mess everything up...

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

                                    1 Reply Last reply Reply Quote 0
                                    • Adam_GA
                                      Adam_G @d.healey
                                      last edited by

                                      @d-healey :anxious_face_with_sweat: bad practice eh?

                                      1 Reply Last reply Reply Quote 0
                                      • Adam_GA
                                        Adam_G @Matt_SF
                                        last edited by

                                        @Matt_SF thank you ill give it a try

                                        1 Reply Last reply Reply Quote 0
                                        • Adam_GA
                                          Adam_G
                                          last edited by

                                          i had to set the sampleIndex to 0 instead of -1. finally able to test it in a compiled plugin and the sample does not load after all. it shows the correct filename and when i right click the panel it opens the correct AudioFiles folder with the sample in it. any ideas for what might be causing it to not load?

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

                                            @argon you'll need to post a snippet I think

                                            HISE Development for hire.
                                            www.channelrobot.com

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

                                            49

                                            Online

                                            1.7k

                                            Users

                                            11.7k

                                            Topics

                                            101.8k

                                            Posts