HISE Logo Forum
    • Categories
    • Register
    • Login

    samplemap recall w/user presets. what is the standard practice? not working ever lol

    Scheduled Pinned Locked Moved General Questions
    user presetssamplemaps
    19 Posts 5 Posters 3.6k 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.
    • M
      mwplugs
      last edited by

      and how could i not save the samplemaps correctly lol. you click save samplemaps...it saves them...it says samplemaps saved :/ ill upload a simple project that has the code exactly how the only help ive had here tells me how to do it

      1 Reply Last reply Reply Quote 0
      • Dominik MayerD
        Dominik Mayer
        last edited by

        Hey mwplugs,

        i just checked your code, and found, that you perhaps accidently misnamed this line:
        const var cmbSampleMap = Content.addComboBox("CmbSampleMap", -110,-110); //add a dummy combobox

        The variable declaration should always match the StringName of the Content Component. Lowercase c is it.

        //onInit Callback
        Content.makeFrontInterface(600, 500);
        
        const var mainSampler = Synth.getSampler("Sampler"); 
        const var cmbSampleMap = Content.addComboBox("cmbSampleMap", 0,0);
        const var samplemaps = Sampler.getSampleMapList(); 
        cmbSampleMap.set("items", samplemaps.join("\n")); 
        

        The Combobox should now give you all the Samplemaps that are saved in the SampleMaps folder. Try it out.

        Best,
        d

        1 Reply Last reply Reply Quote 1
        • M
          mwplugs
          last edited by

          here is a zip of an example of where im at
          http://www.mediafire.com/file/p96u8ouvxx1iri2/Test_Sampler.zip

          1 Reply Last reply Reply Quote 0
          • M
            mwplugs
            last edited by

            thanks @Dominik-Mayer i replaced the code but it still doesnt change the samplemap when i change user presets. i even tried selecting the corresponding samplemap and saving the user preset. in fact when i compile it doesnt even recall any samplemap it makes no noise

            1 Reply Last reply Reply Quote 0
            • M
              mwplugs
              last edited by

              and fyi it showed the samplemaps before actually. it even shows on the combobox that they change, but the audio never reflects it its the same sample sitting there

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

                You've got a typo in your case statement (uppercase instead of lower case)

                1 Reply Last reply Reply Quote 1
                • M
                  mwplugs
                  last edited by

                  ha!!! figured it out. it was actually a mix of two things. first the Cmb case was wrong, and it was referring to the wrong name for sampler. i got it to properly recall samples and samplemaps now thanks guys!!! wow that was a stressful 15 days lmao

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

                    Console.print() is your friend here...

                    1 Reply Last reply Reply Quote 1
                    • M
                      mwplugs
                      last edited by

                      so is there a way to have the currently loaded samplemap be selected in the combobox? basically so i can hide it and not have to select the corresponding samplemap before saving the user preset everytime. as of now the only way i can get it so recall correctly is by selecting the samplemap in the dropdown before saving. thanks in advance

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

                        No, but you might be able to just edit the .preset files (they are plain XML files after all) and change the value of the combobox in the text editor.

                        Depending on the workflow, this might be more faster - check out the latest video tutorial from David for this:

                        https://www.youtube.com/watch?v=sjKkHiHlWuY)

                        1 Reply Last reply Reply Quote 1
                        • JayJ
                          Jay @mwplugs
                          last edited by

                          @mwplugs how did you manage to solve it? I can't figure it out

                          Joansi Villalona

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

                          22

                          Online

                          1.7k

                          Users

                          11.8k

                          Topics

                          103.1k

                          Posts