HISE Logo Forum
    • Categories
    • Register
    • Login

    How do you load samples into the sampler via scripting?

    Scheduled Pinned Locked Moved Scripting
    21 Posts 5 Posters 3.3k 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.
    • Dan KorneffD
      Dan Korneff
      last edited by

      @Christoph-Hart Anything else I can do to help track this down? Or do yo know what it might be?

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

        Can you send me the sample? It appears to just happen with audio files that have a DC offset.

        Dan KorneffD 1 Reply Last reply Reply Quote 0
        • Dan KorneffD
          Dan Korneff @Christoph Hart
          last edited by

          @Christoph-Hart Here's a link to the samples from the video above. I don't see and can't calculate any offset in the files. They display properly in the LoopPlayer module, but not in the AudioWaveform script panel.
          https://we.tl/t-qNFLXXShpI

          I'm not concerned about the waveform display as much I am with the fixed velocity during playback ;) Do you think that's an easy fix? It's the only roadblock to finishing my current project (other than the overlapping midi issue).

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

            I have fixed the velocity a few hours ago - I just forgot to add sound.applyConstantGainModulation() :)

            Dan KorneffD 2 Replies Last reply Reply Quote 0
            • Dan KorneffD
              Dan Korneff @Christoph Hart
              last edited by

              @Christoph-Hart ❤❤

              1 Reply Last reply Reply Quote 0
              • Dan KorneffD
                Dan Korneff @Christoph Hart
                last edited by

                @Christoph-Hart Is the new version okay to build? I'm getting a bunch of errors on my Mac.

                fatal error: too many errors emitted, stopping now [-ferror-limit=]
                35 warnings and 20 errors generated.
                

                Screen Shot 2018-12-30 at 4.25.05 PM.png

                1 Reply Last reply Reply Quote 0
                • Dan KorneffD
                  Dan Korneff
                  last edited by

                  PC build seemed to go fine... maybe it's me.

                  1 Reply Last reply Reply Quote 0
                  • Dan KorneffD
                    Dan Korneff
                    last edited by

                    @Christoph-Hart I don't think it's me. I tried Xcode 10 and 8. Can't get the Mac version to compile.

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

                      My build server didn't complain. Also these errors look like some intermediate file BS. Try a clean rebuild, something is messing with you.

                      Dan KorneffD 1 Reply Last reply Reply Quote 1
                      • Dan KorneffD
                        Dan Korneff @Christoph Hart
                        last edited by

                        This post is deleted!
                        1 Reply Last reply Reply Quote 0
                        • C
                          Cyberdyne387
                          last edited by

                          Sorry for my frequent silence, first of all. It seems my commitment to distributing my own HISE project keeps phasing in and out.

                          That in mind, when it comes to the original subject, I was able to heavily edit the source code so that you could specify a different sample in a sample map via scripting. I don’t recommend this, as even if it had Christoph’s input, I’ve had occasional loading errors in the past, particularly over looping and whatnot, but it is a way to make use of user multisampling, for instance.

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

                          47

                          Online

                          1.7k

                          Users

                          11.7k

                          Topics

                          101.8k

                          Posts