Forum

    • Register
    • Login
    • Search
    • Categories

    1 Button + 2 sampleMaps

    General Questions
    samplemaps buttons
    2
    3
    67
    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.
    • trillbilly
      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?

      Lindon 1 Reply Last reply Reply Quote 0
      • Lindon
        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

        trillbilly 1 Reply Last reply Reply Quote 2
        • trillbilly
          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

          14
          Online

          1.1k
          Users

          6.8k
          Topics

          62.3k
          Posts