HISE Logo Forum
    • Categories
    • Register
    • Login

    Layering Samples

    Scheduled Pinned Locked Moved General Questions
    23 Posts 3 Posters 882 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.
    • musictopM
      musictop @D.Williams23
      last edited by musictop

      @D-Williams23 i don't know how to do that, but i'm sure someone in the forum can help you with that!

      my website: https://musictop69.wixsite.com/ilirbajri
      https://musictop69.wixsite.com/creatools
      https://musictop69.wixsite.com/orchestools

      1 Reply Last reply Reply Quote 0
      • D.Williams23D
        D.Williams23
        last edited by

        Alright cool.. I'll post it out front. Thanks for the help!

        musictopM 1 Reply Last reply Reply Quote 0
        • musictopM
          musictop @D.Williams23
          last edited by

          @D-Williams23 a pleasure, good luck!

          my website: https://musictop69.wixsite.com/ilirbajri
          https://musictop69.wixsite.com/creatools
          https://musictop69.wixsite.com/orchestools

          1 Reply Last reply Reply Quote 0
          • LindonL
            Lindon @D.Williams23
            last edited by

            @D-Williams23 said in Layering Samples:

            @musictop Perfect man thanks. I think I've actually seen this before. I get it now. 👌

            So I have another question about comboboxes if you could. I'm trying to create sub categories within a combobox. For example, In my LFO Mod section lets say I want to set the destination to be a certain modules parameter, Instead of scrolling down one long list of every Parameter, I want to create different categories for the different Modules for a user to select then have that open another list to select the exact Parameter. Hope that makes sense.

            There's a fairly old post I did that covers how to make a simple category based selection system, try looking for that.

            HISE Development for hire.
            www.channelrobot.com

            1 Reply Last reply Reply Quote 0
            • D.Williams23D
              D.Williams23
              last edited by

              @Lindon Okay thanks I found it https://forum.hise.audio/topic/2834/layering-samples/9

              I'm lost at the part about: " ComboBox.set("items", myPreferedList.join("\n"));"

              What exactly is this doing?

              LindonL 1 Reply Last reply Reply Quote 0
              • LindonL
                Lindon @D.Williams23
                last edited by

                @D-Williams23 said in Layering Samples:

                @Lindon Okay thanks I found it https://forum.hise.audio/topic/2834/layering-samples/9

                I'm lost at the part about: " ComboBox.set("items", myPreferedList.join("\n"));"

                What exactly is this doing?

                its replacing the contents of the combo box with a list - the list itself its created when you select a category...

                HISE Development for hire.
                www.channelrobot.com

                1 Reply Last reply Reply Quote 0
                • D.Williams23D
                  D.Williams23
                  last edited by

                  @Lindon Okay I get that. Now on that line I get this " Line 14, column 13: Unknown function 'set"

                  LindonL 1 Reply Last reply Reply Quote 0
                  • LindonL
                    Lindon @D.Williams23
                    last edited by

                    @D-Williams23 -so is ComboBox actually a combobox?

                    HISE Development for hire.
                    www.channelrobot.com

                    1 Reply Last reply Reply Quote 0
                    • D.Williams23D
                      D.Williams23
                      last edited by

                      @Lindon Yes it is. It's compiled OK. How should I go about getting some actual values inside of the ComboBox? As it's empty now

                      LindonL 1 Reply Last reply Reply Quote 0
                      • LindonL
                        Lindon @D.Williams23
                        last edited by

                        @D-Williams23 look at the api for a combobox - there you will see "set"

                        so you can say

                        myComboBox.set("Attribute name", value);

                        look at the json for comboboxes and you will see:

                        {
                        "type": "ScriptComboBox",
                        "id": "OscilatorShapeA1",
                        "x": -6.0,
                        "y": -3.0,
                        "max": 9,
                        "parentComponent": "HolderPanel1",
                        "width": 94.0,
                        "height": 24.0,
                        "itemColour2": "3355443",
                        "textColour": "4290756543",
                        "itemColour": "3355443",
                        "bgColour": "16777215",
                        "items": "Sine\nTriangle\nSaw\nSquare\nNoise\nTriangle2\nSquare2\nTrapezoid1\nTrapezoid2\n",
                        "fontSize": 12.0
                        }

                        so there's an attribute called "items", which contains a string, and the string is separated by newline characters ("\n") - so build a string with the values you want separated by newline characters and apply it to your combo box using set.

                        HISE Development for hire.
                        www.channelrobot.com

                        1 Reply Last reply Reply Quote 0
                        • D.Williams23D
                          D.Williams23
                          last edited by

                          @Lindon That's cool! Gonna be using this a lot. Alright so, Now that I have these items inside of the ComboBox, how do i get that 2nd list to display?

                          LindonL 1 Reply Last reply Reply Quote 0
                          • LindonL
                            Lindon @D.Williams23
                            last edited by

                            @D-Williams23 what second list ?

                            if you mean you've used this to get a combo box with a list of categories,(lets call it categoryCombo) then you just repeat the exercise for the second list building a string based upon the value selected in categoryCombo

                            HISE Development for hire.
                            www.channelrobot.com

                            1 Reply Last reply Reply Quote 0
                            • D.Williams23D
                              D.Williams23
                              last edited by

                              @Lindon Alright I understand exactly what you mean, but I just don't know how to write it in the Editor Lol. I'm still learning that part but I do understand the "why". Could you give me an example of this? I have both lists filled. I want to use this method for switching SampleMaps & also Switching the different Lfo Destinations.

                              LindonL 1 Reply Last reply Reply Quote 0
                              • LindonL
                                Lindon @D.Williams23
                                last edited by

                                @D-Williams23 said in Layering Samples:

                                @Lindon Alright I understand exactly what you mean, but I just don't know how to write it in the Editor Lol. I'm still learning that part but I do understand the "why". Could you give me an example of this? I have both lists filled. I want to use this method for switching SampleMaps & also Switching the different Lfo Destinations.

                                the old post here on the forum is an example of this.

                                HISE Development for hire.
                                www.channelrobot.com

                                1 Reply Last reply Reply Quote 0
                                • D.Williams23D
                                  D.Williams23
                                  last edited by

                                  @Lindon Okay. Now that we have all of that. I think the last thing is that I want to separate the Categories of SampleMaps into Instrument Types. But the Samples I have recorded and mapped are all in Alphabetical Order. So as of now if I click a Bell name, it will play a Flute.

                                  LindonL 1 Reply Last reply Reply Quote 0
                                  • LindonL
                                    Lindon @D.Williams23
                                    last edited by

                                    @D-Williams23 then re-oredr your list - your in charge.

                                    HISE Development for hire.
                                    www.channelrobot.com

                                    1 Reply Last reply Reply Quote 0
                                    • D.Williams23D
                                      D.Williams23
                                      last edited by

                                      @Lindon Right So I reordered the list . So the SampleMapsList order is ABCDE. I want A & D to get selected under the 1st Category so I have those names in the ComboBox. But when I select the "D" in the ComboBox it selects "B" from the SampleMaps. How do I reorder that?

                                      LindonL 1 Reply Last reply Reply Quote 0
                                      • LindonL
                                        Lindon @D.Williams23
                                        last edited by

                                        @D-Williams23 post a snippet

                                        HISE Development for hire.
                                        www.channelrobot.com

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

                                        59

                                        Online

                                        1.7k

                                        Users

                                        11.7k

                                        Topics

                                        101.8k

                                        Posts