HISE Logo Forum
    • Categories
    • Register
    • Login

    Select Wavetables with Combo Box?

    Scheduled Pinned Locked Moved General Questions
    20 Posts 7 Posters 1.3k 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.
    • FatMitchellF
      FatMitchell
      last edited by

      Hello all!

      I've gotten wavetable to work really well with custom wavetables. (if anyone has questions lmk)

      MYYY question is, Is there a way for the user to select what wavetable they would like?

      ideally, I want to build a combobox that cycles through the wavetables I've created. Then id like to hide the box and "build in" the wavetables to each preset.

      Is this something i can accomplish with script? im looking and i dont see Wavetable in the API.

      S 1 Reply Last reply Reply Quote 0
      • S
        Soundavid @FatMitchell
        last edited by

        @FatMitchell Hi, You can do it without scripting just connect the combobox to the processor Id in the Property editor and select LoadedBankIndex, and you can hide the Box with the showControl() Callback, but how do you manage the Wavetable to work?

        FatMitchellF 1 Reply Last reply Reply Quote 1
        • FatMitchellF
          FatMitchell @Soundavid
          last edited by

          @Soundavid I just got it to work but i have to individually list the names of the wavetables in the parameters of the box list. Then it will switch when i change the combobox.

          Wondering if there is code to automatically get the names of the wavetables and assign them to the combo box?

          I use Wav files into WaveEdit.

          I can make a post about my exact process if people find that helpful.

          S 1 Reply Last reply Reply Quote 0
          • FatMitchellF
            FatMitchell
            last edited by

            Update:

            Set the combobox to ProccesorID = wavetable then the Paramater to LoadedBankIndex.

            THEN

            Create a list numerically. The numbers you put in the box will match the numeric order of the wavetables you've added... EX:

            "
            1
            2
            3
            4
            5
            "

            Those numbers will cycle through the 1st, 2nd, 3rd wavetables and so on Regardless of the wavetable names

            1 Reply Last reply Reply Quote 1
            • S
              Soundavid @FatMitchell
              last edited by

              @FatMitchell There is a tutorial for it but it never worked for me, if you make a post will be really helpful.

              FatMitchellF 1 Reply Last reply Reply Quote 1
              • FatMitchellF
                FatMitchell @Soundavid
                last edited by

                @Soundavid word I absolutely will the process is so fun tbh.

                What would be the appropriate thread to post such a thing?

                I could do a video I guess! Or a post whichever would be better for the forums purpose

                Also: ^^^ cycles through the waveforms alphabetically it seems automatically. Something to note

                S 1 Reply Last reply Reply Quote 1
                • S
                  Soundavid @FatMitchell
                  last edited by

                  @FatMitchell Maybe In the Scripting Forum or Presets/Snippets Category? But if you want to make a Video with the whole process will be awesome.

                  FatMitchellF 1 Reply Last reply Reply Quote 0
                  • FatMitchellF
                    FatMitchell @Soundavid
                    last edited by

                    @Soundavid okay I will. I’ll tag you

                    DabDabD 1 Reply Last reply Reply Quote 0
                    • DabDabD
                      DabDab @FatMitchell
                      last edited by

                      @FatMitchell How can I link Combobox With Wavetables? I am trying but weird sound stopping.

                      Bollywood Music Producer and Trance Producer.

                      DabDabD VorosMusicV 2 Replies Last reply Reply Quote 0
                      • DabDabD
                        DabDab @DabDab
                        last edited by

                        @DabDab Bump Bump...

                        Bollywood Music Producer and Trance Producer.

                        1 Reply Last reply Reply Quote 0
                        • VorosMusicV
                          VorosMusic @DabDab
                          last edited by

                          @DabDab
                          What functionality exactly would you like to achieve?

                          DabDabD 1 Reply Last reply Reply Quote 0
                          • DabDabD
                            DabDab @VorosMusic
                            last edited by

                            @VorosMusic I want ComboBox will change Wavetables. I have tried from ProcessorId > WaveTable Synthesizer & parameter Id > bank index... but my problem is Sound is not changing. is there a way to do it via scripting like sampler?

                            Bollywood Music Producer and Trance Producer.

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

                              @DabDab

                              inline function onWavetableSelectors(component, value)
                              {
                                  pos = theWavetableSelectors.indexOf(component);
                                  TheWavetables[pos].setAttribute(TheWavetables[pos].LoadedBankIndex,value);   
                              }
                              
                              

                              HISE Development for hire.
                              www.channelrobot.com

                              DabDabD 2 Replies Last reply Reply Quote 1
                              • DabDabD
                                DabDab @Lindon
                                last edited by

                                @Lindon Okay...Thank you i will try it. (y)

                                Bollywood Music Producer and Trance Producer.

                                1 Reply Last reply Reply Quote 0
                                • DabDabD
                                  DabDab @Lindon
                                  last edited by

                                  @Lindon Sorry, but didn't understand.. can you please correct it?

                                  HiseSnippet 1024.3oc6W0saiSDEdbZlUjrrncQ6E6kVq3hVwRUx9GTgPjMooKQzzFUGJ6cqlZeRxPsmwLdbaiPHwqDuI7nva.blwNI1znPZ.J6Equvxm+l4aNm47iGnj9PRhTQbpMbZLPb9Pp2TgdRmILtfzaehyGQ6yRzfxMiU6owrjDHf33r0qMLbpUkXe98utMKjI7gErHjSkbe3PdDWuf6fVeKOL7.V.LjGUP6m2pmuTzQFJSQ7rEsAIl4eNaLbDynVEJw4NcC3ZoxSyzPBpSaYvTuIxKEY5eJOgeVHXHZR7vEJiMoyDdXvfYm0DBwgNXwIeqrS9Co84A747W3AtuUf6BKJ5CbprJH07F.ImBPpZFjd.0yWwi0KjXvyco8DX.YDCc0EgRltjJCcncjnFB8tQrygCTHwbK19kMZ7DW70NeYczamncufob+d1Eflg3zF7gDdBnZ59UtVxcGCZKbsTa+34J6VT6GesEbnQmNQmgqyL7XVIYTrTfDYKzLkLliOiRE9ZtT3JEGI0vwhs2o9OUuV8ett6eUznQKUlYqTxvPPsTwlqbpUY31hzny.0SviQXJLWQLlTNPem0KP6mcxKnnTzSv0GGC4zGHCCLAPy2W+ZAI20YtfjiPTUs85w8yudftzyjskWQ3Al70htUh8TTLIk7c81moYyVObowsKFTZt4T4rObAlwlc8qFceH4bsL1padXCO4q+te07ct0OzZ5bhe4zVQLTF0wPy0PDt06P8XWNHMLApmvtbnTpmTeBaZp6q2au5CY3lnXtnJ0wJHWKSAyQkAogLc4DWSEpbAXPtT1hIiPjv0SK5btAYyMVY175BwGPGv09SVNFqrDLhws+KvXdMv6Q6NZD3qW.vpzCdylVva8296NyEUtPjEAOht7BNqnUzustshhW6VQeyOhwnRq2gRzrf1Lw48DAvUEE4ExC.0.r6kMUqxuVg9hlOcW7YzmZduWG70yN98zum9cTZ7Re4z7pqW6txEbKn+s4LXUWuRR+MMde2uISoQFqMCid7n3Pnq3BHD6qaw3GiMxGwRC0y3Vt3YeoPFOQJ39EKhcBnU7wiAUQruzCzqzZrT2BNOr0IPHvRJTt7SZcHW.LU4hn2HewMe74kFudDMCttlJ9t+Sha2pWyV4fBasVCJ7uNd27gFtUcc2iZmG0MqM8+Sg4SjoZtXbeFlTYl78nzHOb3Be.woP.gIlogqXl2Oitgg1NKAHBrD+A9jKrog1IWXyYBuU1iHluR9V+r+Dwj28AVN34VX+K8Zz9FZ2ly9yCJswtMHQX06256atZ7Yn+Y417zMvlmsA177MvlWrA17xMvlOeCr4KVoMlFmuJUKixJafLFz0NVpiSWgIwvlJP9SZ+yrxA
                                  

                                  Bollywood Music Producer and Trance Producer.

                                  ulrikU 1 Reply Last reply Reply Quote 0
                                  • ulrikU
                                    ulrik @DabDab
                                    last edited by

                                    @DabDab

                                    In your cmb callback

                                    inline function onWaveTableCmbControl(component, value)
                                    {
                                    	WavetableSynthesiser1.setAttribute(WavetableSynthesiser1.LoadedBankIndex, value);
                                    };
                                    
                                    Content.getComponent("WaveTableCmb").setControlCallback(onWaveTableCmbControl);
                                    

                                    Hise Develop branch
                                    MacOs 15.3.1, Xcode 16.2
                                    http://musikboden.se

                                    DabDabD 1 Reply Last reply Reply Quote 1
                                    • DabDabD
                                      DabDab @ulrik
                                      last edited by

                                      @ulrik Thank you so much.. it is working (y)

                                      Bollywood Music Producer and Trance Producer.

                                      1 Reply Last reply Reply Quote 0
                                      • Adam_GA
                                        Adam_G
                                        last edited by Adam_G

                                        @ulrik @Lindon @DabDab hey guys, is there a way to populate the combobox with the LoadedBankIndex like we do with getSampleMapList? Im trying to create this array but getting function not found:

                                        wtMaps = WavetableSynthesiser1.LoadedBankIndex();
                                        
                                        ulrikU 1 Reply Last reply Reply Quote 0
                                        • ulrikU
                                          ulrik @Adam_G
                                          last edited by

                                          @Adam_G said in Select Wavetables with Combo Box?:

                                          @ulrik @Lindon @DabDab hey guys, is there a way to populate the combobox with the LoadedBankIndex like we do with getSampleMapList? Im trying to create this array but getting function not found:

                                          wtMaps = WavetableSynthesiser1.LoadedBankIndex();
                                          

                                          The code you're referring to is the WavetableSynths attribute, "index number of the loadedBank", not the the name of the loaded bank

                                          To get the list of names use this

                                          YourComboBox.set("items", Engine.getWavetableList().join("\n"));
                                          

                                          Hise Develop branch
                                          MacOs 15.3.1, Xcode 16.2
                                          http://musikboden.se

                                          Adam_GA 1 Reply Last reply Reply Quote 0
                                          • Adam_GA
                                            Adam_G @ulrik
                                            last edited by Adam_G

                                            @ulrik ahhhhh thank you Ulrik. you sir are the man :beaming_face_with_smiling_eyes:

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

                                            49

                                            Online

                                            1.7k

                                            Users

                                            11.7k

                                            Topics

                                            101.9k

                                            Posts