Forum
    • Categories
    • Register
    • Login

    Script missing LAF element

    Scheduled Pinned Locked Moved General Questions
    21 Posts 3 Posters 898 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.
    • David HealeyD
      David Healey @MikeB
      last edited by

      @MikeB Yep I added comments to all the functions

      13ae2dfc-4185-49b0-8937-7e53fdf5faaa-image.png

      Free HISE Bootcamp Full Course for beginners.
      YouTube Channel - Public HISE tutorials
      My Patreon - HISE tutorials

      1 Reply Last reply Reply Quote 1
      • MikeBM
        MikeB
        last edited by

        Thanks David - This looks good - now I just need a few examples how to use one or the other
        and I'll program my own settings window :-)

        PS: a little patreon video maybe?

        "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

        David HealeyD 1 Reply Last reply Reply Quote 0
        • David HealeyD
          David Healey @MikeB
          last edited by

          @MikeB You only need those two functions + your GUI, probably radio buttons but you could do it with panels, combo boxes, or sliderpacks, whatever you prefer.

          Free HISE Bootcamp Full Course for beginners.
          YouTube Channel - Public HISE tutorials
          My Patreon - HISE tutorials

          1 Reply Last reply Reply Quote 0
          • David HealeyD
            David Healey
            last edited by David Healey

            I just added LAF support for the MIDI channel list :)

            I still need to test it and I'll make a pull request tomorrow.

            0729a3fa-cd85-47f6-9879-984fd824606d-image.png

            Free HISE Bootcamp Full Course for beginners.
            YouTube Channel - Public HISE tutorials
            My Patreon - HISE tutorials

            1 Reply Last reply Reply Quote 3
            • David HealeyD
              David Healey
              last edited by David Healey

              I've added a pull request to the Scriptnode branch for this now.

              Free HISE Bootcamp Full Course for beginners.
              YouTube Channel - Public HISE tutorials
              My Patreon - HISE tutorials

              LindonL 1 Reply Last reply Reply Quote 2
              • LindonL
                Lindon @David Healey
                last edited by

                @d-healey - could you do one for the midi device list too? Asking for a friend...

                HISE Development for hire.
                www.channelrobot.com

                David HealeyD 1 Reply Last reply Reply Quote 0
                • David HealeyD
                  David Healey @Lindon
                  last edited by David Healey

                  @Lindon That's already there ;) it's a list of toggle buttons (as is the channel list). If you check the obj.parentType in the LAF togglebutton function you can filter out the Midi Sources buttons.

                  Free HISE Bootcamp Full Course for beginners.
                  YouTube Channel - Public HISE tutorials
                  My Patreon - HISE tutorials

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

                    @d-healey - oh yeah - obviously - how silly of me...once its in the scriptnode branh could you ddo a quick demo of what you do to make it work?

                    HISE Development for hire.
                    www.channelrobot.com

                    David HealeyD 1 Reply Last reply Reply Quote 0
                    • David HealeyD
                      David Healey @Lindon
                      last edited by

                      @Lindon Midi sources is already in scriptnode, I didn't add it.

                      const var laf = Engine.createGlobalScriptLookAndFeel();
                      
                      laf.registerFunction("drawToggleButton", function(g, obj)
                      {
                          if (obj.parentType == "MidiSources")
                          {
                              obj.value == 0 ? g.setColour(Colours.darkgrey) : g.setColour(Colours.white);
                              g.drawAlignedText(obj.text, obj.area, "left");
                          }    
                      });
                      

                      Free HISE Bootcamp Full Course for beginners.
                      YouTube Channel - Public HISE tutorials
                      My Patreon - HISE tutorials

                      1 Reply Last reply Reply Quote 0
                      • MikeBM
                        MikeB
                        last edited by MikeB

                        @d-healey
                        but the Midi-Channel List is in your scriptnode?
                        On your page?

                        "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

                        David HealeyD 1 Reply Last reply Reply Quote 0
                        • David HealeyD
                          David Healey @MikeB
                          last edited by

                          It's in this branch - https://github.com/davidhealey/HISE/tree/channelListLAF - just waiting for @Christoph-Hart to merge it.

                          Free HISE Bootcamp Full Course for beginners.
                          YouTube Channel - Public HISE tutorials
                          My Patreon - HISE tutorials

                          1 Reply Last reply Reply Quote 0
                          • MikeBM
                            MikeB
                            last edited by

                            Ok i can wait

                            The question is rather where to merge it in
                            I hope in "scriptnode" and not in
                            "scriptnode_codegen_rewrite"
                            or in both

                            "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

                            David HealeyD 1 Reply Last reply Reply Quote 0
                            • David HealeyD
                              David Healey @MikeB
                              last edited by

                              @MikeB I've made the pull request on the scriptnode branch.

                              Free HISE Bootcamp Full Course for beginners.
                              YouTube Channel - Public HISE tutorials
                              My Patreon - HISE tutorials

                              1 Reply Last reply Reply Quote 1
                              • MikeBM
                                MikeB
                                last edited by

                                Super - thanks for the info

                                "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 0
                                • First post
                                  Last post

                                29

                                Online

                                2.1k

                                Users

                                13.0k

                                Topics

                                113.0k

                                Posts