HISE Logo Forum
    • Categories
    • Register
    • Login

    Trim Sample Start + Multi-channel

    Scheduled Pinned Locked Moved General Questions
    11 Posts 2 Posters 1.8k 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.
    • d.healeyD
      d.healey
      last edited by

      Which mic position does the trim sample start feature read from in order to do its task? And with single stereo samples does it look at both the left and the right or just one channel?

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

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

        To be honest, I didn't check if this feature supports multichannel at all (and if, it would use the first channel).

        For stereo samples, it's supposed to look at both channels. However, looking at the code, I found this gem:

        float l = analyseBuffer.getSample(0, sample);
        float r = analyseBuffer.getSample(0, sample);
        
        if (l > threshHoldLevel || r > threshHoldLevel)
        {
        	break;
        }
        

        Can you spot the mistake :)?

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

          For multi-channel it would be good if we could specify the channel it analyses because usually you want it to use the closest microphone to the instrument since that will have the shortest delay.

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

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

            Yeah, good idea. It was a quick and dirty implementation for a particular use case but it may be smarter to make this more generic.

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

              I think it's a really neat feature, can allow me to be more lazy with sample editing :) Could the threshold also be adjustable or would it not add any real benefit?

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

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

                I think currently it's hardcoded to something like 18dB below the max level, but it is certainly better if this is tweakable...

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

                  Has there been any development with this feature since the last post?

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

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

                    Now there is :)

                    Link Preview Image
                    - added variable threshhold level & mic position for sample start tri… · christophhart/HISE@583b615

                    The open source framework for sample based instruments - - added variable threshhold level & mic position for sample start tri… · christophhart/HISE@583b615

                    favicon

                    GitHub (github.com)

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

                      Excellent, thanks :)

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

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

                        This seems to work well, is a good default -18?

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

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

                          I might have stumbled across a bug but as yet I haven't been able to repeat it reliably. It occurs when I load some samples into a sampler, run trim start, then decide I'm not happy with the threshold I chose so I reset the start time of all the samples to 0 and run trim start again with a different threshold. What happens is some of the samples end up with their start time being set to the same as their end time.

                          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