HISE Logo Forum
    • Categories
    • Register
    • Login

    Setting the Folder for SampleMaps and Samples?

    Scheduled Pinned Locked Moved Solved Scripting
    10 Posts 2 Posters 335 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.
    • clevername27C
      clevername27
      last edited by

      Does anyone know how to hardcode the folder path for SampleMaps and for Samples in a script? (I'm starting with one of the folders defined in FileSystem, and drilling down from there.) Cheers.

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

        @clevername27

        Sample maps are embedded in the plugin.

        The samples location can't be hardcoded, it's taken from the LinkOSX/LinkWindows file (I wonder why it's not just called Link...)

        You can use Settings.setSampleFolder() to change it.

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

        clevername27C 1 Reply Last reply Reply Quote 1
        • clevername27C
          clevername27 @d.healey
          last edited by

          @d-healey said in Setting the Folder for SampleMaps and Samples?:

          Settings.setSampleFolder()

          Thank you, as always. Do you also know how I might specify the location for SampleMaps?

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

            @clevername27 they're embedded in the compiled binary, there is no external location for them

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

            clevername27C 2 Replies Last reply Reply Quote 1
            • clevername27C
              clevername27 @d.healey
              last edited by

              @d-healey Awesome - thanks.

              1 Reply Last reply Reply Quote 0
              • clevername27C clevername27 has marked this topic as solved on
              • clevername27C clevername27 has marked this topic as unsolved on
              • clevername27C
                clevername27 @d.healey
                last edited by

                @d-healey Sorry to bother you again. I seem to be having trouble setting the location of the Sample folder (or I don't know what that means).

                In my example, the samples for each SampleMap are in a different directory. (A corresponding MIDI file is there, too.) I can load the MIDI files from this directory, using the same code as below (except the last step is to load into a MidiPlayer, of course.) But the SampleMap doesn't seem to stick? Thank you.

                28b69b31-15b3-4744-a095-b0ff9e5f7ac9-image.png

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

                  @clevername27 once the samples are converted to monoliths they will all be placed in the root of the samples folder in your project.

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

                  clevername27C 1 Reply Last reply Reply Quote 1
                  • clevername27C
                    clevername27 @d.healey
                    last edited by clevername27

                    @d-healey Understood. I wish to tell HISE where the samples are in the compiled plugin (instead of reading them from the SampleMap). It seems like this would need to be possible, or the user couldn't move their samples? I've been following this thread…

                    Link Preview Image
                    Method for detecting whether the samples were found

                    @aaronventure Found a better solution inline function onlocateSamplesButtonControl(component, value) { if (errorHandler.getCurrentErrorLevel() == 9 || er...

                    favicon

                    Forum (forum.hise.audio)

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

                      @clevername27 If you load a sample map HISE will look for the samples within that sample map in the monoliths inside the samples folder specified in the Link file, you don't need to do anything in your script for this. If the samples are moved, and the Link file is updated they will still be found.

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

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

                        @d-healey Ah, I understand. Cheers, mate.

                        1 Reply Last reply Reply Quote 0
                        • clevername27C clevername27 has marked this topic as solved on
                        • First post
                          Last post

                        52

                        Online

                        1.7k

                        Users

                        11.7k

                        Topics

                        102.1k

                        Posts