HISE Logo Forum
    • Categories
    • Register
    • Login

    Sliderpack rectangle? (Piano roll?)

    Scheduled Pinned Locked Moved General Questions
    9 Posts 5 Posters 377 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.
    • hisefiloH
      hisefilo
      last edited by hisefilo

      Hi people, anyone have any clue on how to archive this? I need to make each slider to show only the top line. or a custom SVG on that position?
      Is for some kind of piano roll

      Screenshot 2023-06-11 at 10.31.37.png

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

        @hisefilo I'd use a panel that draws based on the slider pack values

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

        DanHD 1 Reply Last reply Reply Quote 0
        • DanHD
          DanH @d.healey
          last edited by

          @d-healey why not laf?

          DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
          https://dhplugins.com/ | https://dcbreaks.com/
          London, UK

          Christoph HartC d.healeyD 2 Replies Last reply Reply Quote 2
          • Christoph HartC
            Christoph Hart @DanH
            last edited by

            definitely laf:

            HiseSnippet 1152.3ocsV0uahaDDecR7oKzdU8ptG.K9KnhyEHoomTUUCAB8nW9.ExEcUQnnM1K38xxtVqWBPqt2l9.12f1YrwXmKzT.oRT.Oe4827amY2oqV4whhTZh0tWNKjQr9R6dyjlflATtjzoEw5qrOkFYXZmDUGMKjFEw7IVVa+KnBqc2gD+4u94inBpzikohPtRw8XmvGwMYZ6d363BQapO6R9nbdu+gc7TxlJgZLfmssqRBod2QGxNihtskMw5YG6yMJcOC0vh.eNR4OqWfZhLw+q3Q7aELTnFoG7hRTSZFvE9cSy0HBwZmtYY91IY9qrOk6yWnOiA95XCNYQjmCr15ofTs0.RV4fzNIP5k187z7PSlEDOegcGIrgLfBTcdnj3KYql11MUfGRi6H5cr1ZPXQDkNnZ0JNvWk+wBE.5Nx3bOU6fL8M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wF0nj1APQ2iiOmxx5XIEprhqBI+C.cSw63
            
            hisefiloH DanHD 2 Replies Last reply Reply Quote 4
            • d.healeyD
              d.healey @DanH
              last edited by

              @DanH said in Sliderpack rectangle? (Piano roll?):

              @d-healey why not laf?

              Because I left my brain in a different room :p

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

              1 Reply Last reply Reply Quote 0
              • hisefiloH
                hisefilo @Christoph Hart
                last edited by

                @Christoph-Hart this is awesome!!! will try to figure out what have you done. But this is it!!! 🎊 : Thank mate!!!!!

                1 Reply Last reply Reply Quote 0
                • DanHD
                  DanH @Christoph Hart
                  last edited by

                  @Christoph-Hart out of interest how would you make this work if the sliderpack has negative values as well - currently the line will disappear at the maximum negative value.

                  DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                  https://dhplugins.com/ | https://dcbreaks.com/
                  London, UK

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

                    @DanH Just move h above and subtract it from the total height

                    pack_laf.registerFunction("drawLinearSlider", function(g, obj)
                    {
                    	g.setColour(obj.itemColour2);
                    	
                    	var h = obj.area[3] / 24.0;
                    	
                    	obj.area[1] = (1.0 - obj.valueNormalized) * (obj.area[3] - h);
                    	
                    	var x = obj.area[0];
                    	var y = obj.area[1];
                    	var w = obj.area[2];
                    	
                    	g.fillRect([x, y, w, h]);
                    });
                    

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

                    Christoph HartC 1 Reply Last reply Reply Quote 2
                    • Christoph HartC
                      Christoph Hart @ustk
                      last edited by

                      will try to figure out what have you done.

                      I've created the template functions for LAF (by right click on the slider pack and choose "Create local LAF for selection" and then I hacked around for 30 seconds...

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

                      16

                      Online

                      1.7k

                      Users

                      11.8k

                      Topics

                      102.4k

                      Posts