HISE Logo Forum
    • Categories
    • Register
    • Login

    How to load Sample maps after init ?

    Scheduled Pinned Locked Moved Scripting
    4 Posts 2 Posters 136 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.
    • L
      Lumi283
      last edited by

      Hi, I have a problem.

      My VST downloads the expansion automatically and unzips it automatically. However, when I want to map my sample maps, the new sample maps are not updated in the content and sampler interface.

      How can I upload samples in HISE after initialization?

      Thank you.

      function redrawComboBox() {
          var SampleMaps = Sampler.getSampleMapList();
          var expansion = Engine.getExpansionList();
          var all_sample_maps = [];
      	
          for (a in SampleMaps) {
              all_sample_maps.push(a);
          }
          for (e in expansion) {
              var expansion_SampleMaps = e.getSampleMapList();
              for (i in expansion_SampleMaps) {
                   all_sample_maps.push(i);
              }
      }
      	
      
      L 1 Reply Last reply Reply Quote 0
      • L
        Lumi283 @Lumi283
        last edited by

        @Lumi283 Note: I am even forced to reload the workspace to see the new sample maps.

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

          @Lumi283 Avoid using var and use inline function instead of function - unless it's a paint routine or callback.

          There is an expansion refresh function that you can use which I think will make the sample maps available. ExpansionHandler.refreshExpansions()

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

          L 1 Reply Last reply Reply Quote 0
          • L
            Lumi283 @d.healey
            last edited by

            @d-healey said in How to load Sample maps after init ?:

            ExpansionHandler.refreshExpansions()

            Thank you

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

            47

            Online

            1.7k

            Users

            11.7k

            Topics

            101.8k

            Posts