Forum
    • Categories
    • Register
    • Login

    How to control sample start time with the audio loop player?

    Scheduled Pinned Locked Moved Newbie League
    7 Posts 3 Posters 62 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.
    • Q
      Quemis
      last edited by Quemis

      • So im making my second vst, and I have this audio file - its the only one I'll be using,
        to do a bunch of things with. I want the ability to only play a section of that and loop it. I got some ideas about how to do this via modulating a start time property of the audio loop player, only to find the only one that exists is "Random start time."

      I don't think it makes sense to use a sampler when I only have the one short audio file.
      Also, I tried using the sampler and couldn't really figure out a way to do what I wanted anywho.

      I know there has got to be a way to do this.

      Any ideas?

      LindonL Q 2 Replies Last reply Reply Quote 0
      • LindonL
        Lindon @Quemis
        last edited by

        @Quemis said in How to control sample start time with the audio loop player?:

        I don't think it makes sense to use a sampler when I only have the one short audio file.
        Also, I tried using the sampler and couldn't really figure out a way to do what I wanted anywho.

        put a constant in the sample start modulation slots and use that - it will map its 0-1 values to 0-100% if the sample length...

        HISE Development for hire.
        www.channelrobot.com

        HISEnbergH 1 Reply Last reply Reply Quote 1
        • HISEnbergH
          HISEnberg @Lindon
          last edited by

          @Lindon 's answer is definitely the easier option. But just for some further information, in case you want to go down the scripting route, you can read about the AudioSampleProcessor API and the list of available functions.

          So reference the Audio Looper as an AudioSampleProcessor:
          const var AudioLoopPlayer1 = Synth.getAudioSampleProcessor("Audio Loop Player1");

          That gives you access to this API and you can use Audiofile.SampleRange(int startSample, int endSample); to adjust the start position. It will also give you a lot more control over the Audio Looper.

          Sonic Architect && Software Mercenary

          1 Reply Last reply Reply Quote 0
          • Q
            Quemis @Quemis
            last edited by Quemis

            @Lindon @HISEnberg

            I always have a problem with constants!

            Knobs wont point at them, macros wont point at them. They are so confusing.
            Usually I use the autolink thing, and point a dummy knob at it, and then point my actual knob at the dummy knob.. very confusing.

            I figured out how to use the sampler it turns out anyway.

            Thank you both for your help though! <3

            And in the future I will for sure use those scripts HISEnberg!

            Q 1 Reply Last reply Reply Quote 0
            • Q
              Quemis @Quemis
              last edited by

              @Quemis @HISEnberg @Lindon

              Ok I lied I guess - The sampler is so weird. I am trying to "Scroll through" loop start/end times along with sample start time at the same time,

              And its being all glitchy. Rarely plays the right part of the sample, sometimes stops playing sound all together...

              I have my preload size set to the entire sample..

              Very confused.

              Q 1 Reply Last reply Reply Quote 0
              • Q
                Quemis @Quemis
                last edited by

                @Quemis Actually nvm I figured it out ! : )

                HISEnbergH 1 Reply Last reply Reply Quote 0
                • HISEnbergH
                  HISEnberg @Quemis
                  last edited by

                  @Quemis Yea if that works for you then stick with it. If you wanted to explore the AudioLoopPlayer route this will get you started, but you'll need to make sure to update it anytime a new sample is loaded.

                  HiseSnippet 1265.3ocyW0saiSDEdbR7xVCrhkcu.t.IqJtHEU0jzjMP0JDoMsEpnsaTS2UbCpZh833Qc7LF6wsM.6a.2vaF2wqAuAvYFamX2l1MD1thb24+uY747MmLHR3PhiEQHCqSmDRPFef4vIboeeeLkiNXWjwiLOBGKIQ1op1YRHNNl3hLLp9sJEFqTCo+8WeyNXFl6PloBgdkf5PNjFPkyzNn22SYr8wtjSoAE7tSuCbD79BlHAvSUylnPry43wjiwJ2pXh9NbrOx3KLwNsa0rYmttsGgwib2bqNdj1c61oUausZ1AuEtays51rSKjwC1ykJEQCkXIIFYTaGg6jg9hK4oE3UzX5HFQIzBMDpbp58ELW0QToE02mxbGjeQEiPFlClcsUM8Z6olGQcoS0O656izFrmEQwKPiJkgW0Rvq0sAu4.IiBPpVJjdr4PmHZnblEEddeyC3vWSOL7cpHTR8EU4xJl8EfGb4FA3yI6GABSin9lMattMb0u1ysrrfOVwR6KvQ1GJDgPGxWaq6c1XLQtchKULDGDxHSqe8US8aUH5YwdNezYv4ORBgmWYHA8EAgBNHTe0odnBzJhL1lQ3ik9P.oIT4eZsNTan9ZO2tQCaPqcrVcd.0o7LMwqYMMsaDSfpDfuZ00ybLM9IhD6KwbosTXCtXK8I1fWzfj.kJxOkfYZkYYW3okRKfkEkynbhsWB2QREbaAeZEUmyHAqtS9gbc3pfkPVy5WrVI6LEmelNAyGSpqsOCeVuFtJJcBxxYeLiMBFapeyxot8JfliERxK3000z50V1W2jm2bskkLFIZtlUizQ2Uf04IAiHQEOwJGg11xyBOXwlEbRaYJ3nfe.mJeQHIS9tGlQY8bpYnLDBtJ0SPOJaBZHi5RhPTW03yzaUj9.Lk95W+8dnWdvtXINOUPVgJAeKkT0AxXWxE.YX5v4Jl6RhOWJB09l0E.ruKTgupHC6jYBedu.pqKLwIhopK8oVB+yd.Ed3P5OCI2zr0FMQAkotg9ZvhwO9YeJJNwyiBRVl4yJHI4J.bumYZ4uj5J8Ud+aPn9D5XeoRZSM29Mng.BPgaBCKKyJpd6HyfBoEohTzMb3DLoH.+WPU17NoJWTH9XyAToi+7wXk4fQ3y98AFydf4CM2yyi3HmAvZl6+CK6qIKd4eRd40L5obS5x+PyLgaeif+XQ2HHbg2H.dfwA9jPJ1Zn+NcZDP5Q4iKVJE.2iigyraQ0mHDRECWwMRRoZ082P5K4M4BRTb4LrOkksTRKyFuLFr2fDwIwxFYS0Mz2V1oYMtw3DJj4M2HHrc5fmowYPxJLzw.nlNckYiowtatcip20hL2J6X4orB9OmUHpcesUSsEqO7MvS++elkRKgsRNFGRU8.6wufvfwEMF+Xf72Cmvj4ZaUBkGI3hPeAm5TtOTFQGOlDUD6y8.ssTByByz7zdmPXDbLo3KEGB6lfit9nz85Boy860mXlBWa0ju8+kuauSaytyWGptPuN7VGuK+KEucfxIhDIv.eDFZTUDaGmDLDHtcH.R3bBKVQlUQsxUpbSkr5lYHg6pE9a3WlwVJYiLisxM9NoFAXmHwYNoKCp5kenVCbt4ZN+Uf+QLHa25Za.B+f8unm43TNU2HvMW1.aurA1YYC7YKafcW1.+xkMvu5MGn5QqsSjhfzQVD5nA6o2X2vX5dBFUQ+CrLBvRO
                  

                  Sonic Architect && Software Mercenary

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

                  25

                  Online

                  2.2k

                  Users

                  13.5k

                  Topics

                  117.6k

                  Posts