HISE Logo Forum
    • Categories
    • Register
    • Login

    Frequency Items in combobox like Filter

    Scheduled Pinned Locked Moved General Questions
    12 Posts 3 Posters 500 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.
    • MikeBM
      MikeB @Sawer
      last edited by MikeB

      @nesta99
      here it is

      • as a combobox
      • as combo box with knob
      • as Knob with Panel

      Bildschirmfoto 2021-09-03 um 14.07.11.png

      HiseSnippet 1368.3oc0X0saaaCElJIbqVao+LTrgcGgwtvAvI0VMos.ECS0NwMAM+3T2FTfhhNZI5XtPS5JQ0E2hd+d.1CvvdJ1kauA6IXXOB6MXijRxR101wMnsXQA1QjG9c3GOmiNmiby.gGILTD.rJ7nA8I.qOG1Z.W1sdWLkC1YSf0WA259GrZCJSRB1S3SPgDFwSBpMnONLj3CrrV795EaUXIf45e9tZXFl6QxlB.NRP8H6R6QkYy1z8ATFqA1m7HZubqdc2c7D75BlHRQrEgU.8wdmfOlrOVurEf.qOYKepTDzRhkjPf0R0D9CZ0U7i730eDMj1lQzCpBZoTT7zMDLeMi0yBp2kx7alZ.BAJszLybrXr435v8n9zgymYVtpQ.JCQd6g0ByhdUySuJyO8rxQukho20fs7Bn8kYRzb6yf6vUdqNXkKHOshWKXg8gv5B0J3x05gOgzHPMXHhR2pRkxnMpTYk6trc5eJ2QnD8Rb.JNPnJ5aQl3j0NlH2pSGU.QohIhJlB7F2XuAwys56oq7DotnWaQMwoNJpjdZTjQMceAWMnTwgqvvnLjOfKZWcpnLRGCwt31D1zgDKN4bS4LJmf5Dw8jTAGI3FMpQFHXk7RgUVoYVDYkkse8x1ExNNqERjGokTJV9cGUpWWL+XhuY1DCtFw8jx.Z6HIoT5j5mUKi5o9N7oYvUDeGIo2iHmJKsxyhUdL80ZoTQoRPwxno.Pu92n9LSKmVQIm15XFqs5Q2RiZDxGYkEj379KJYbusyL81NSxa6Lau83X5XNBgJPOsXqiZf1sYwxla1VeydBwwloPl41WH85lNnlY5cw99j.z5nlBFo3ylft2OPq7aUFc6xn6TFU0Q84lpOa7roEy4L6Xt4LBJc2epAZ9PFmQBYRr.irryJZwYVQKNiEsj6zoLfjC3kVw901EreiMZbQc5LQYIJjQBlnXcQnfYArDOpWaRPpULcgprwiltGN8z84qF4EaWxsPAeGNUdPeBeZEA.IFSc0pDVoVpzTL3pIECRe3EP800BRGVEXncVY1K4BFWEWNQEsXTU3nQAeJz7n63fAuM3yX+clCUL08+s.ecWvi2YSrDqKLlXTTFp9j.IU6Cr1j7RUGGwkIK.2jDdhTzW4aFFBpZhXNsamNba+6dtCFN.gcopTipM6Wg10nuHB6qdHO8tsaZuq.0pKg0As0g1aSytuIAeh9+CwfdH4U1woMriSZXmjxvtpIiPt6Tx3BIRUTmdLm3aOLghcb1D66wX5R91ijRAzCqNEPqqBLwPiaBlgeO6v+6OI2gG7CtFUlN7abCkj9snuhjuQPv6r01I2F5xyugmjZs+Y3GSi86l88Jui127GWfH2w8Oewn12qel1WX7VsbxVYRQa1oKAiSWmeqNM2V0OvUmCGXcE3nmIva2vopsWgeDCKGsWX8K.jHPkwbjlN0MVxCoxA448GjFjmW5dMXSpxeNY9tvD3qJEyGZ9l75FKCialNirKAa7jOxuaQxaB9EPUPvf9cEbpWbKAFBU.lzevLdCP.nQ.4EQDtWpU76+se5WbOLeHft6hrwq4dXDlkY0cqu+e8G0n8ELbvb4QVb9p4dFu02rBa9R3vCE5BTrt1ybwgueMLwoizF6KN79xvC+e.YenHRR4GuGV0Jutbz9Q8ZIhB7HJhx4Dlt2TqEzUnhGWQOVSnVDtuYv+ptRDVUO1JQX0TgpBcdAhm6E23l94mKYlQwIt4Wmo.bO8XzvNFgvJqUAzi5SetmmNg1pJtOYLNmCL27bfY8yAlMNGXt04.ysOGXtyLwn+gptWjTzKN1TMQysLcNaYsEGqhxLgof+ihcoF9
      

      "One hour of trial and error can save 10 minutes of reading the manual."
      "It's easier to hit the developer with feature requests than to spend 10 minutes reading the manual. :-)))"
      HISE Develop - Mac Pro 5.1, OS X 10.14.6, Projucer 6.02, Xcode 10.3

      1 Reply Last reply Reply Quote 2
      • S
        Sawer
        last edited by

        This post is deleted!
        S 1 Reply Last reply Reply Quote 0
        • S
          Sawer @Sawer
          last edited by

          @nesta99 Solved! Thanks so much!

          S 1 Reply Last reply Reply Quote 1
          • S
            Sawer @Sawer
            last edited by

            @MikeB @ustk I think I have an index issue. When i Select the filter style in the combobox, the filter comes with the next one, so there's an offset +1 between my combobox and the filter's combobox. How can i solve this? Thanks

            ustkU 1 Reply Last reply Reply Quote 0
            • ustkU
              ustk @Sawer
              last edited by ustk

              @nesta99 Exact, comboboxes aren't starting at 0 but 1, so you need a -1 somewhere ;)
              0 means "nothing selected"

              Can't help pressing F5 in the forum...

              S 1 Reply Last reply Reply Quote 0
              • S
                Sawer @ustk
                last edited by Sawer

                @ustk @MikeB is this right? Still not working?

                const var ComboboxFxStyles = Content.getComponent("FxStyles"); //CMB
                
                inline function onFxStylesControl(component, value)
                {
                 FxStyles.setValue(value - 1);
                 FxStyles.changed;
                	Filter1.setAttribute(Filter1.Mode,  modes[FxStyles.getItemText()]);
                
                
                };
                
                Content.getComponent("FxStyles").setControlCallback(onFxStylesControl);
                
                ustkU 1 Reply Last reply Reply Quote 0
                • ustkU
                  ustk @Sawer
                  last edited by ustk

                  @nesta99 You set the value of the combobox in the combobox callback (bad),
                  you call "changed()" in the callback as well (bad),
                  and you are trying to set a parameter value with a text string... (this is where you need value-1)

                  You need to go back to some basics, watch Dave's videos and take all examples from the doc ;)

                  Can't help pressing F5 in the forum...

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    Sawer @ustk
                    last edited by

                    @ustk ok Thanks.

                    ustkU 1 Reply Last reply Reply Quote 0
                    • ustkU
                      ustk @Sawer
                      last edited by ustk

                      @nesta99 I realise I should give at least some info on why it's bad...

                      changed() is what you need to actually call a callback from elsewhere in the code, so the value of the corresponding parameter (as well as all that is inside the CB) is updated.

                      It is the same thing for setValue. You set the value of a component somewhere in the code, then you call changed() so the CB of that component is called and runs with the new value.

                      So you understand setting something inside its own CB is more than ambiguous, since the CallBack is called BECAUSE it has changed...

                      As for the line of code you need, it is just

                      Filter1.setAttribute(Filter1.Mode,  value - 1); // 0 to the max of the combobox
                      

                      Can't help pressing F5 in the forum...

                      S 1 Reply Last reply Reply Quote 3
                      • S
                        Sawer @ustk
                        last edited by

                        @ustk Ok, so I had the right Idea but the execution was wrong.

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

                        27

                        Online

                        1.8k

                        Users

                        12.0k

                        Topics

                        104.2k

                        Posts