HISE Logo Forum
    • Categories
    • Register
    • Login

    combobox for filter mode having strange behavior. Please help.

    Scheduled Pinned Locked Moved General Questions
    17 Posts 5 Posters 649 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.
    • G
      gryphonsegg
      last edited by

      Ok I have added my combo box to control the dropdown menu for a filter Mode. I have listed all of the types in the item list and made double sure they are spelled correctly etc. When I compile and run it all of the drop downs I select select the wrong ones on the main filter in the chain and eventually I get to one on that main filter in the chain that just says "Filter mode" spelled that way which I find weird because it has a lower case M. Also as I said, it is making my filter control not function correctly selecting what seem to be things 6 or so items down on the list. I tried even cutting and pasting them in another order but that same empty position that says filter mode comes up on the filter in the chain. Can you make sense of this?

      HiseSnippet 2222.3oc4Zs0baabEdgjVYIX4D4jLcl9FFO9AmoNND7pTZmZXQIFyw5Bkopb83LIZEvBwMBbWF.PcKMyn1m5asOze.Y5uh9TG0W5ef9GHoOzm6+fzcA.IVRBHwKpxww7AIr6hyteemyhy4rWp4xLwddLWfx76bZKLPYAX8So9MJ2.QnfpqBTdWX8FHK1wZUHN9XWvJm1B44gs.JJS+ohWRY9Y.A+9uOdEjChZhiqB.1kQLwqSZR7iqslwyHNNUPV3cHMkd67FUMYzxLGVaNflFlAzBYdH5.7lHwqMEDnL6ZVDelacejO1CnLyJLqSq2fcLM782k3Q12AKJnCpy6nvpqvbrDHVTKnbChiUsND2Cv6kZwpgoCUCe.bChEoa8wpiECZPKVBY8gxT8Buo6Ad5xvKiD7R.RJRPZlPHcWXcSWRK+3VD341vpTtYwFwU6xPI7cAJ+SXYF+En9OpI5PbEWdgtB7fhYx7PsBEx7g+R0fe1sol9DFUiQ2j4i2h9fOT8qUmW8aT05uIa6DaSLXtLGGrahMKr2tWlfOf1t49X2GpcDxoMt6KxUB8pYgoqYkM7lgbW5EYzpTh+VsvzzlN.hTXbqvciPE+U8CrAuSjMXk199LJfvU0yCCK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Jkmiq3RWpLkvKSX4LhxAtpvTqfB+.+WTi5hxJQMp2oQPSjoK6KLCuqUhO2mKnFNlnA4tMObCQYstWuJHLyix.ZRrHegoYmyqHYYxNFxjaLjI+XHSgwPlhigLkFCYV5RkQbYmeRadTkv4l7JpsVX7DktAyTlF7+.f9STqG
      
      1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey
        last edited by

        Link Preview Image
        Changing the filter mode from a ComboBox

        OK, checked here and in the documentation cant see any thing defining this. I've created a comboBox and linked it to the myFilter.Mode and added a line for e...

        favicon

        Forum (forum.hise.audio)

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

        G 2 Replies Last reply Reply Quote 0
        • G
          gryphonsegg @d.healey
          last edited by

          @d-healey I am sorry but that makes no sense to me. I am totally lost. I am not a programmer, just trying to do what I need to do this. So, the problem is with the program and now I need to learn how to fix the programs problem and if I am not a programmer and thisx looks like a bucn of mess than I am just out of luck?

          d.healeyD Christoph HartC 2 Replies Last reply Reply Quote 0
          • G
            gryphonsegg @d.healey
            last edited by

            @d-healey what I mean is, I have no idea what to put where. like, at all....

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

              @gryphonsegg said in combobox for filter mode having strange behavior. Please help.:

              I am not a programmer,

              You are now ;)

              Christoph provided a solution in that thread. The problem is that new filters were added at a later date and he didn't want to break backwards compatibility, but this meant that the names you see in the list don't align with the numerical indexes of the drop down menu.

              Here's his solution

              const var modes = Engine.getFilterModeList();
              
              const var myFunkyFilters = [modes.LowPass, 
                                          modes.StateVariableNotch];
              
              comboBox.addItem("LowPass");
              comboBox.addItem("Notch Funky Yeah");
              
              inline function onComboBoxControl(component, value)
              {
                 local filterIndex = value - 1;
                 filter.setAttribute(filter.Mode, myFunkyFilters[filterIndex]);
              }
              

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

              G 1 Reply Last reply Reply Quote 0
              • G
                gryphonsegg @d.healey
                last edited by

                @d-healey so what do I do with that? where do I put it? what do I need to change?

                G d.healeyD 2 Replies Last reply Reply Quote 0
                • G
                  gryphonsegg @gryphonsegg
                  last edited by

                  @gryphonsegg DO I need to make a reference to the filter and then add this underneath it and then add my own modes and names? I dont know what modes I am supposed to be looking for or adding. I feel totally lost and discouraged now.

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

                    @gryphonsegg You will struggle with anything but a simple project without scripting so you might want to watch my 101 video.

                    I've implemented it in your snippet. Basically what we're doing is taking the values of your combo box, 1, 2, 3, 4, etc. and remapping them to the correct values for the filter types.

                    HiseSnippet 2471.3oc4Z8zbaabEGTRvQDVNQNISmo2vnwGjmJqPPRQIkzVCKJwXNVxhRTUtdb9iWBrjbi.2kA.zxxodF0dnSu0dne.xzOE8Tq+Nzu.I8PN2uAsucAHwRR.IRQU43XdPBX28s6ueu2tu2aWrUbYVXOOlqRpzGbRarRp4TqdB0uYwlHBUo7lJodO0pMQ1ri0KQb7wtJabRajmG1VIUpo+TdiRkdFEwu+yc2.4fnV3nhTTNjQrvaSZQ7iJsh4CHNNkP13CHsjZcdyxVLZQlCqC.noUynzFYcDpA9gHdylRUI001xl3ybq5i7wdJolYCl8IUaxNlFz9CIdjZNX9KFJUgNJn3RLGaNh4kpTrIwwtRWh6o.8RkH0vzApgOTcGhMoW4Qpi4EUnGIgr9H0T8Cuo6CdFxvKiD7hARojfzLAP5lpUsbIs8ipgimqqVlBlk5HPsKCkf1pL0ebZ0hLnET+kagNBWxEdomDKVHSlkzWYkL29Szz.UumuNxwYGlM1S+WouEsAghWtA1OvzyKeahm+hPqCZbqvV9Dszcka4co3JLG71riq.fYogq49jFMGrJgB6PjKAApmsqjXU2O4pdHy2pYh0tAhZO3fdOGm1CTzNLVCX3SKUTLDINFrO1iAMco9krZSrS8AEcnBqfQG0mfHaaraIXUfPS1Gm2mPa.Oo848rXOC4Ft1z.LEhUu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LrMRYVS9t4JGYJM+yl7iNpNysU3GguGuBCNJURTBFRFpfs8J9Zzx25xOzjGFq6QxH0IUZh7vgmAfb2.c6ArcPdvTOQ9BxUVtAk4hCt6UxkGbDVcIf3tbxONqfu17STKjeY3W8eA+uqWD9Stcubd+Rb14Ti3ryOPX96YmEGv4XO0blQap4YewVUFKD22Zpeji3aJhgMQK9uRw6OWMzCpPK+lCteW089Q.X2m0geIZ1AAa2ied5OD14GqiqEF.JExwkecJSME2KSv6Y3uKbUgo1hW9uvuvJM3umJrRitUpzBY4x9RqfaPEe49rhR.LQE4tkVcG9658t0WppYVNiRKhM4Ksr3YDbG.6wKS1KfL4t.xj+BHyJW.YJbAjY0KfLqclxvuG92qCDUIXtITPksBhmjpWvrTSq7+P1C3BL
                    

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

                    G 2 Replies Last reply Reply Quote 0
                    • G
                      gryphonsegg @d.healey
                      last edited by

                      @d-healey I have watched all of your videos, some just dont make any sense because they dont explain how to implement what they show.

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

                        @d-healey like how would I ever know what those modes were called behind the scenes?

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

                          @gryphonsegg I often demonstrate things in isolation because there are hundreds of ways each idea could be implemented depending on a project. But sometimes an example project is the best way to show a concept and I usually upload the project or snippet to Patreon.

                          like how would I ever know what those modes were called behind the scenes?

                          I used the auto complete menu that pops up with all the filter names. But if you don't know what you're looking for in the first place then it wouldn't make sense anyway. This stuff takes years to learn and involves reading lots of code and writing lots of code and many hours of frustration.

                          69cae031-6b4d-45fc-ac0f-3a9cc190d93d-image.png

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

                          G 1 Reply Last reply Reply Quote 0
                          • G
                            gryphonsegg @d.healey
                            last edited by

                            @d-healey so unless I want to make stuff with HISE years down the road, I am just wasting my time. I am 52, not a good time to start learning to code.

                            d.healeyD musictopM DabDabD 3 Replies Last reply Reply Quote 0
                            • d.healeyD
                              d.healey @gryphonsegg
                              last edited by

                              @gryphonsegg

                              I am just wasting my time.

                              It depends on what you want to make. But if you don't enjoy coding and don't want or can't hire someone to do it for you then you will be missing out on a lot of functionality.

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

                              G 1 Reply Last reply Reply Quote 0
                              • G
                                gryphonsegg @d.healey
                                last edited by

                                @d-healey I have a super high IQ but I dont have any reference as to what is available and how it goes then I just cant. I want to make audio fx plugins and instruments, thats what I want to do.

                                1 Reply Last reply Reply Quote 0
                                • Christoph HartC
                                  Christoph Hart @gryphonsegg
                                  last edited by

                                  @gryphonsegg the problem is not with the program but the necessity to allow filters being added without messing up the indexes.

                                  You need to create one array with all the values you want using the Filtermode object and then populate the combobox with the respective items and get the real value for setAttribute with an array access myFiltermodes[value-1].

                                  1 Reply Last reply Reply Quote 0
                                  • musictopM
                                    musictop @gryphonsegg
                                    last edited by musictop

                                    @gryphonsegg Hi there! Don't get discouraged. I'm 54, started using HISE 4 years ago. I have yet a lot to learn but with experimenting and help from this forum I have so far managed to make these instruments.

                                    Regards.

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

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

                                      @gryphonsegg said in combobox for filter mode having strange behavior. Please help.:

                                      @d-healey so unless I want to make stuff with HISE years down the road, I am just wasting my time. I am 52, not a good time to start learning to code.

                                      Dear Sir, If you want to make plugins with HISE, you must need to learn (at least) some basic codes. If you stick on your decision that learning new code is not possible , ok you can try Romplur or Maize Sampler.
                                      where no coding skills are required. But you can't expect a industry standard, unique , powerful plugins that HISE offers you to build.

                                      In this forum we have many users who come from the background of Kontakt, Maize sampler, Romplur etc. And believe me, I am not good at coding yet I am doing with the help of this fantastic HISE forum. So please don't loose hope.
                                      ** Remember, age is just a number**

                                      Bollywood Music Producer and Trance Producer.

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

                                      38

                                      Online

                                      1.7k

                                      Users

                                      11.7k

                                      Topics

                                      101.9k

                                      Posts