HISE Logo Forum
    • Categories
    • Register
    • Login

    1 Button + 2 sampleMaps

    Scheduled Pinned Locked Moved General Questions
    samplemapsbuttons
    3 Posts 2 Posters 277 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.
    • trillbillyT
      trillbilly
      last edited by

      Hey Gang,

      I've got an orchestral instrument Im working on. I'd like a button to load Single Instrument vs Ensemble Instrument.

      For example...

      I have a Violin. I'd like a button that, when clicked on, loads a samplemap containing the Violin Ensemble. When the button is clicked off, it loads the Single Violin samplemap. This will go on for each instrument.

      Im positive I am overlooking something easy. Anybody able to help?

      LindonL 1 Reply Last reply Reply Quote 0
      • LindonL
        Lindon @trillbilly
        last edited by

        @trillbilly

        in your button call back...

        if(value)
        {
            mySampler.loadSampleMap( "SingleViolin");
        }else{
            mySampler.loadSampleMap( "ViolinEnsemble");
        }
        

        HISE Development for hire.
        www.channelrobot.com

        trillbillyT 1 Reply Last reply Reply Quote 2
        • trillbillyT
          trillbilly @Lindon
          last edited by

          @Lindon I forgot the ELSE function. Forehead slap...

          Thanks.

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

          27

          Online

          1.7k

          Users

          11.7k

          Topics

          102.0k

          Posts