HISE Logo Forum
    • Categories
    • Register
    • Login

    [Solved] Sampler Glide Script Broken

    Scheduled Pinned Locked Moved General Questions
    45 Posts 5 Posters 2.4k 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.
    • SteveRiggsS
      SteveRiggs @d.healey
      last edited by

      @d-healey Thank you. It looks like the GLIDESCRIPT.js that I'm using has been replaced with portGlide.js on github? Is that the new version?

      Would I need to just swap the script files over in my projects scripts folder? I can't remember how I added it in now it's been that long. I'll try and find the original post and re-trace my steps...

      www.anarchyaudioworx.com

      www.facebook.com/groups/audioworx/

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

        Thank you. It looks like the GLIDESCRIPT.js that I'm using has been replaced with portGlide.js on github?

        Hmmm, you're right, but that is a really old script so I must have screwed something up in my git repo. Let me check it out.

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

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

          Ah ok, it's this script you want https://github.com/davidhealey/HISE-Scripting-Framework/blob/master/modules/monoMode.js

          Looks like I added a check to prevent that error you're getting ;)

          if (time.getValue() > 0 && eventId != -1)

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

          SteveRiggsS 2 Replies Last reply Reply Quote 1
          • SteveRiggsS
            SteveRiggs @d.healey
            last edited by

            @d-healey Amazing, Thats got it! It's back to normal now working again. Thanks!

            I'll have to start keeping up with the new github uploads then it seems.

            Thats made my day mate. I've finally finished my first sampler instrument project now thanks to your help there. Thank you!!! ☺

            www.anarchyaudioworx.com

            www.facebook.com/groups/audioworx/

            1 Reply Last reply Reply Quote 1
            • SteveRiggsS
              SteveRiggs @d.healey
              last edited by

              @d-healey

              Ah damn. 1 last obstacle just reared its ugly head!

              Converting the samples to monoliths pop- up said that I need to change the name of the sampler from Sampler1 to just Sampler.

              Done that and changed all instances in the code for the combo box switcher.. but it says that the getSampleMapList function can't be found now? I think I've missed something..

              (Line 71 is the sample maps array)

              Interface:! Line 71, column 48: function not found {SW50ZXJmYWNlfHwxOTM1fDcxfDQ4}
              
              
              //Sampler
              const var Sampler = Synth.getChildSynth("Sampler");
              
              //Sample maps array
              const var sampleMaps = Sampler.getSampleMapList();
              
              //Combo Box
              const var cmbSampleMap = Content.getComponent("cmbSampleMap");
              cmbSampleMap.set("items", sampleMaps.join("\n"));
              
              
              inline function oncmbSampleMapControl(component, value)
              {
                  Sampler.asSampler().loadSampleMap(sampleMaps[value-1]);
              };
              
              Content.getComponent("cmbSampleMap").setControlCallback(oncmbSampleMapControl);
              

              www.anarchyaudioworx.com

              www.facebook.com/groups/audioworx/

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

                @SteveRiggs Why can't it be called Sampler1? Seems like a strange error message. Sampler is an internal HISE object so I assume that's why you're getting the function not found error.

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

                SteveRiggsS 2 Replies Last reply Reply Quote 0
                • SteveRiggsS
                  SteveRiggs @d.healey
                  last edited by

                  @d-healey Not sure. It's weird as it worked before when I did a test version with just 1 sample. I get this pop-up now when going to tools/convert all samples to monoliths + sample maps

                  Screen Shot 2019-09-26 at 16.47.13.png

                  www.anarchyaudioworx.com

                  www.facebook.com/groups/audioworx/

                  LindonL 1 Reply Last reply Reply Quote 0
                  • SteveRiggsS
                    SteveRiggs @d.healey
                    last edited by SteveRiggs

                    @d-healey ..I think I was using HISE 1.6.0 then. It definitely worked though and I haven't changed the name of the sampler since

                    www.anarchyaudioworx.com

                    www.facebook.com/groups/audioworx/

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

                      Strange, maybe make a blank .hip file with a single sampler in it (in the same project) and see if you can export your sample maps from there.

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

                      SteveRiggsS 3 Replies Last reply Reply Quote 1
                      • LindonL
                        Lindon @SteveRiggs
                        last edited by

                        @SteveRiggs I get this a lot. Theres a really simple work around, if you have a sampler called "Sampler" then add another (with nothing in it) called "Sampler1"

                        HISE Development for hire.
                        www.channelrobot.com

                        1 Reply Last reply Reply Quote 1
                        • SteveRiggsS
                          SteveRiggs @d.healey
                          last edited by

                          @d-healey @Lindon Both very clever ideas!

                          I just made a new blank .hip in the same project folder and tried saving as monoliths and exporting samplers for installer, but I can't seem to find either a new .ch or .hr1 file anywhere.

                          It said all samples were exported without errors, and the target directory is the project folder. I'm pretty sure the .ch file went to the samples folder last time, and the .hr1 file was in the main project folder? Neither have gone in there this time though.

                          www.anarchyaudioworx.com

                          www.facebook.com/groups/audioworx/

                          1 Reply Last reply Reply Quote 0
                          • SteveRiggsS
                            SteveRiggs @d.healey
                            last edited by

                            @d-healey @Lindon

                            Hmmm, just checked every folder in the project folder and neither of the .ch or .hr1 files have been created

                            www.anarchyaudioworx.com

                            www.facebook.com/groups/audioworx/

                            1 Reply Last reply Reply Quote 0
                            • SteveRiggsS
                              SteveRiggs @d.healey
                              last edited by

                              @d-healey @Lindon is there any reason why HISE wouldn't create the 2 files? I can't find them anywhere ☹

                              www.anarchyaudioworx.com

                              www.facebook.com/groups/audioworx/

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

                                @SteveRiggs No idea, I would expect them to be in the Samples folder.

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

                                SteveRiggsS 1 Reply Last reply Reply Quote 0
                                • SteveRiggsS
                                  SteveRiggs @d.healey
                                  last edited by

                                  @d-healey Thats what I thought. Should be the same as last time. Weird.

                                  It's saying there are a couple of files with the wrong ID as well. Not sure if that could be the reason why, or how I'd go about fixing them.

                                  Sorry about all this! This is my first sampled instrument so I've not exported one before thats finished.

                                  Screen Shot 2019-09-26 at 20.44.33.png

                                  Screen Shot 2019-09-26 at 20.44.48.png

                                  Screen Shot 2019-09-26 at 20.44.56.png

                                  www.anarchyaudioworx.com

                                  www.facebook.com/groups/audioworx/

                                  1 Reply Last reply Reply Quote 0
                                  • SteveRiggsS
                                    SteveRiggs
                                    last edited by

                                    My guess would be that there shouldn't be spaces in the names of the sample maps?

                                    I'm not sure how to fix an absolute path though, or what that is?

                                    www.anarchyaudioworx.com

                                    www.facebook.com/groups/audioworx/

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

                                      Your raw samples (wav/aiff) should be inside the Samples folder. In your sample map they should have the {PROJECT_FOLDER} wildcard in the path, this will make them relative and not absolute. This is the default behaviour of HISE when you map samples by dragging them in from the Samples folder.

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

                                      SteveRiggsS 1 Reply Last reply Reply Quote 1
                                      • SteveRiggsS
                                        SteveRiggs @d.healey
                                        last edited by

                                        @d-healey Ah, the drum samples had a different path. Fixing that now. Thank you!

                                        Any idea why the ID is wrong for the .xml file though? I'm sure what would be classed as wrong. Do the spaces make a difference?

                                        www.anarchyaudioworx.com

                                        www.facebook.com/groups/audioworx/

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

                                          @SteveRiggs I don't think spaces make a difference

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

                                          SteveRiggsS 1 Reply Last reply Reply Quote 0
                                          • SteveRiggsS
                                            SteveRiggs @d.healey
                                            last edited by

                                            @d-healey Damn. Not sure what to do about that bit then. I wonder what it means by 'the correct ID'? 🤔

                                            www.anarchyaudioworx.com

                                            www.facebook.com/groups/audioworx/

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

                                            24

                                            Online

                                            1.7k

                                            Users

                                            11.8k

                                            Topics

                                            102.6k

                                            Posts