HISE Logo Forum
    • Categories
    • Register
    • Login

    Samplers- loops -start points.....

    Scheduled Pinned Locked Moved General Questions
    10 Posts 2 Posters 610 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.
    • LindonL
      Lindon
      last edited by

      Okay I have a user who wants to playback a user-defined part of the sample - and set this via the UI - sure not a problem I think - I can set the SampleStart and SampleEnd - but they also want it to loop round this user defined area without clicking.....this I think is a bigger problem - because I cant use a x-fade, as the x-fade data would now be outside the defined playable area..

      So I thought maybe I could use the loopStart and loopEnd values to define my "playable area" and then when the sample playback starts jump to the loop start point using a SampleStart Modulator - but I think this percentage based SampleStart modulator wont be accurate enough to hit the sample loop start point dead on.... so the loop will actually be a bit off..

      Anyone got any good ideas how to do this?

      HISE Development for hire.
      www.channelrobot.com

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

        @Lindon Could you use Synth.playNoteWithStartOffset() instead of using a modulator?

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

        LindonL 1 Reply Last reply Reply Quote 0
        • LindonL
          Lindon @d.healey
          last edited by

          @d-healey - maybe - but I dont know what "offset" is measured in....

          HISE Development for hire.
          www.channelrobot.com

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

            @Lindon Samples

            706175ef-72da-47d2-abfe-5fb6312e5799-image.png

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

            LindonL 1 Reply Last reply Reply Quote 0
            • LindonL
              Lindon @d.healey
              last edited by

              @d-healey - sadly

              onNoteOn() - Line 5, column 37: Max start offset is 65536 (2^16)

              so not much use...

              HISE Development for hire.
              www.channelrobot.com

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

                @Lindon What about the audio loop player, is that any good for this?

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

                LindonL 1 Reply Last reply Reply Quote 0
                • LindonL
                  Lindon @d.healey
                  last edited by

                  @d-healey - nope the user wants hundreds of sample sets...

                  So I tried a combo of both approaches:
                  I set the loop up, and moved the SampleStart 16000 before the loop , set the xfade = 16000 and used playNoteWithStartOffset = 16000

                  So this plays but... it clicks the first time thru as it hasnt got the relevant data it needs - it seems you have to actually play thru the x-fade data at least once to then have it used as x-fade data....

                  HISE Development for hire.
                  www.channelrobot.com

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

                    @Lindon - Okay so assuming there's no way anyone has thought of to do this.... @Christoph-Hart - I'm, thinking of suggesting a loop envelope maybe - or if possible to have the x-fade data "pre-read" so it can be used the first time thru..probably wildy complex and requires an entire restructure of the HISE Sampler....

                    HISE Development for hire.
                    www.channelrobot.com

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

                      @Lindon said in Samplers- loops -start points.....:

                      have the x-fade data "pre-read" so it can be used the first time thru

                      This seems like a bug to me, surely the xfade should be click free the first time through.

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

                      LindonL 1 Reply Last reply Reply Quote 0
                      • LindonL
                        Lindon @d.healey
                        last edited by Lindon

                        @d-healey -well I can see why it isnt, the x-fade "data" hasnt been read the first time thru... but if it is a bug and it can get fixed colour me a happy camper...

                        nope thinking about it more - I think you are right this is a bug...

                        HISE Development for hire.
                        www.channelrobot.com

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

                        27

                        Online

                        1.8k

                        Users

                        12.0k

                        Topics

                        104.1k

                        Posts