HISE Logo Forum
    • Categories
    • Register
    • Login

    [bug] Unwanted pitch shifting when using Apply sample map properties to sample files

    Scheduled Pinned Locked Moved Bug Reports
    5 Posts 1 Posters 223 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 d.healey

      I've made some tuning adjustments to my sample map using the pitch envelope. I now want to apply those to the samples using the Apply sample map properties to sample files tool. However there are two issues I'm finding.

      1. All the files it outputs that have a pitch envelope applied are a semi-tone lower than they should be. (samples without a pitch envelope are unaffected).

      2. Only the first mic position is affected.

      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

        1. It only outputs 44.1khz/16bit, even though my samples are 48Khz/24bit :(

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

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

          @d-healey said in [bug] Unwanted pitch shifting when using Apply sample map properties to sample files:

          1. It only outputs 44.1khz/16bit, even though my samples are 48Khz/24bit :(

          So solving this problem also solves problem 1. The pitch shifting is due to the sample rate change.

          The CompressionHelpers::dump function is hardcoded to use 44100/16. I'm trying to think of the best way to get around this.

          @Christoph-Hart My ideas so far are I could overload the function to pass an optional sample rate and bit depth, or I could get the sample rate and bit depth from the existing file - however I think by this point the file won't exist. Any suggestions?

          Looks like I don't need to overload it, I can just add some optional arguments with default values :D I think I have a solution.

          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 d.healey

            Here's a pull request with a fix to the auto generated pitch envelope, to remove some useless nodes, and the additions/fixes to get the Apply sample map properties tool to use the sample rate and bit depth of the original audio files - https://github.com/christophhart/HISE/pull/488

            @Christoph-Hart The only thing that is missing now is that the sample map properties are not applied to all mic positions when using a merged sample map. I've had a poke around but I haven't found a solution yet. It's something to do with the fileList that's created in the backup function but I'm not quite there. Do you have any idea?

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

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

              @d-healey said in [bug] Unwanted pitch shifting when using Apply sample map properties to sample files:

              @Christoph-Hart The only thing that is missing now is that the sample map properties are not applied to all mic positions

              Ok I've figured out what's causing this. The samples are all there in the list. But (for a reason that I don't know) you are removing the properties from the property list after each file has been processed. However before processing you are checking if the property is in the list. Of course this means once the first mic position has been processed, and the property has been removed, the subsequent mic positions won't be processed.

              Short version, comment out this line and it works - https://github.com/christophhart/HISE/blob/develop/hi_backend/backend/BackendApplicationCommandWindows.cpp#L2390

              @Christoph-Hart Any downsides?

              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 referenced this topic on
              • First post
                Last post

              44

              Online

              1.7k

              Users

              11.7k

              Topics

              101.8k

              Posts