HISE Logo Forum
    • Categories
    • Register
    • Login

    Feature request: extract XYZ data metadata

    Scheduled Pinned Locked Moved Solved Feature Requests
    24 Posts 4 Posters 2.0k 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.
    • griffinboyG
      griffinboy @griffinboy
      last edited by

      @griffinboy
      @Christoph-Hart
      @DanH

      Sorry to bother you! Important! : )

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

        @griffinboy sorry I'm on vacation right now so my ability to write code is limited.

        In order to load a sample map dynamically, you can use the {XYZ::SampleMap} wildcard, followed by the samplemap ID (without the .xml extension). So if your samplemap is called Piano.xml, then the string you pass into loadFile() is "{XYZ::SampleMap}Piano".

        so that as we load in a samplemap into the c++ sampler node, we can set the loop point parameters correctly.

        Remind me again, what's the problem with the loop points? They should be passed on correctly with the sample start applied to the range already, no?

        griffinboyG 2 Replies Last reply Reply Quote 2
        • griffinboyG
          griffinboy @Christoph Hart
          last edited by griffinboy

          @Christoph-Hart

          edit This issue is solved. Read my message below this post.


          okay the issue is that when we load a sample map into the c++ sampler, we need the Loop metadata to set the Loop Parameters of the c++ node.

          0bea0a38-8bf5-4a94-aef5-218b2d39e383-image.png

          Sure, I can just load in a sample map and internally use the loop values, the result will sound correct. However, the actual parameters will be in the wrong locations.

          1 Reply Last reply Reply Quote 0
          • griffinboyG
            griffinboy @Christoph Hart
            last edited by

            @Christoph-Hart

            Update

            You can forget it! Client decided that they didn't need this feature. Thanks for your help thus far. I no longer need to solve this!

            DanHD 1 Reply Last reply Reply Quote 0
            • DanHD
              DanH @griffinboy
              last edited by

              @Christoph-Hart client was me 😬

              DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
              https://dhplugins.com/ | https://dcbreaks.com/
              London, UK

              DanHD 1 Reply Last reply Reply Quote 2
              • DanHD
                DanH @DanH
                last edited by

                @Christoph-Hart is there a way to extract the volume info from sample maps for a c++ sampler?

                DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                https://dhplugins.com/ | https://dcbreaks.com/
                London, UK

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

                  @DanH Ideally it would be baked into the buffers directly but I donβ€˜t think Iβ€˜m doing that already.

                  DanHD 1 Reply Last reply Reply Quote 0
                  • DanHD
                    DanH @Christoph Hart
                    last edited by

                    @Christoph-Hart it would appear not πŸ˜„

                    DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                    https://dhplugins.com/ | https://dcbreaks.com/
                    London, UK

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

                      @DanH weird actually it should factor in these properties already, including the loop xfade:

                      https://github.com/christophhart/HISE/blob/61b6f7467eaa51fbad7a9bad60adbcc4d73204ad/hi_core/hi_sampler/sampler/MultiSampleDataProviders.cpp#L217

                      Let me check if that's the case and if not why it skips that code.

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

                        so:

                        the function is indeed called when loading a samplemap and

                        • volume
                        • pan
                        • pitch

                        is correctly applied to the buffers, I haven't tested the range properties but they should work too if the other ones are processed.

                        Are you sure that this is not something else on your side?

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

                        25

                        Online

                        2.0k

                        Users

                        12.7k

                        Topics

                        109.9k

                        Posts