HISE Logo Forum
    • Categories
    • Register
    • Login

    How to use setGUISelection?

    Scheduled Pinned Locked Moved Solved Scripting
    5 Posts 2 Posters 160 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.
    • d.healeyD
      d.healey
      last edited by d.healey

      I'm expecting that what I pass in will show up as "selected" in the mapping window, is that correct?

      sampler.setGUISelection(["mysample.wav"], true);

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

      clevername27C 1 Reply Last reply Reply Quote 1
      • d.healeyD d.healey marked this topic as a question on
      • d.healeyD
        d.healey
        last edited by

        hmmm it says one sample selected, but no sample appears to be selected and the editable properties are all blank...

        e22e147e-7544-447f-b1a4-e0842bb010b4-image.png

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

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

          @d-healey I wish I could help, but if you don't know…well…I don't think anyone does. 😓

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

            @clevername27 said in How to use setGUISelection:

            I don't think anyone does

            I hope @Christoph-Hart does :D

            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

              Ah mystery solved (thanks source code!)

              So the API doc wasn't clear to me. You don't pass an array of file names, you pass an array of sample objects, created using one of the Sampler.createSelection... functions.

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

              1 Reply Last reply Reply Quote 2
              • d.healeyD d.healey has marked this topic as solved on
              • First post
                Last post

              61

              Online

              1.7k

              Users

              11.7k

              Topics

              102.1k

              Posts