HISE Logo Forum
    • Categories
    • Register
    • Login

    Loading samples into compiled plugin

    Scheduled Pinned Locked Moved General Questions
    9 Posts 2 Posters 347 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.
    • J
      JeHathor
      last edited by

      I currently have the problem that my compiled vst sampler only loads audio files if I specify a fixed path in the samplemap. E.g. "C:\Users\Public\MyPlugin\Samples\trumpet_080-G#.wav" But I want to be able to load the samples relative to the plugin location, so that both samples and plugin are in one place and loadable from anywhere. But if I compile the whole thing with something like "{PROJECT_FOLDER}trumpet_080-G#.wav" instead, I get no sound in my DAW. Unfortunately, for the time being, I have not been able to find a solution for this.

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

        You should use relative paths with {PROJECT_FOLDER} etc. and then let the user choose to locate the samples, because there is no guarantee the user will keep the file structure you give them.

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

        1 Reply Last reply Reply Quote 0
        • J
          JeHathor
          last edited by JeHathor

          That's what I tried, but it didn't work.
          Can't I just point to a subfolder somehow?

          Or how can I give the user the choice to locate a folder?

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

            @JeHathor If you haven't changed anything in the default HISE setup then the user will be prompted on first run to locate/install the samples. If you're using the settings floating tile there is also a button there where they can change the location.

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

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

              @d-healey said in Loading samples into compiled plugin:

              @JeHathor If you haven't changed anything in the default HISE setup then the user will be prompted on first run to locate/install the samples.

              Only in the standalone application...

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

                @JeHathor Plugin also.

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

                1 Reply Last reply Reply Quote 0
                • J
                  JeHathor
                  last edited by JeHathor

                  Hmmm. I'll check it again.
                  Maybe it's something with my samplemap.

                  [edit]
                  Let's assume I have already set a location.
                  How can I relocate it then? @d-healey

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

                    @JeHathor Either through the settings floating tile or remove the link file that HISE created in the appData folder for your plugin and then next time you run the plugin you'll be prompted again.

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

                    1 Reply Last reply Reply Quote 1
                    • J
                      JeHathor
                      last edited by JeHathor

                      Nevermind.
                      I must have tried to load the samples before and pointed the plugin to the wrong project folder. After identifying and temporarily moving this folder I was able to relocate my samples.

                      Thanks anyway!

                      It's good to know were to find these files.

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

                      12

                      Online

                      1.7k

                      Users

                      11.8k

                      Topics

                      102.6k

                      Posts