HISE Logo Forum
    • Categories
    • Register
    • Login

    LAF for Tables broken in develop branch?

    Scheduled Pinned Locked Moved Scripting
    49 Posts 7 Posters 2.2k 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.
    • ?
      A Former User @Casey Kolb
      last edited by

      @Casey-Kolb How do you get it to gradient? I love gradients!!!
      I mean how do you draw the actual waveform in the LAF function?

      PS: Have you checked the new color vec4 options as well?

      Casey KolbC 1 Reply Last reply Reply Quote 0
      • Casey KolbC
        Casey Kolb @A Former User
        last edited by

        @UrsBollhalder Gradients are definitely the way to go :) This is all you have to do:

        laf.registerFunction("drawThumbnailPath", function(g, obj) {
            var a = obj.area;
            g.setGradientFill([0xCC0000FF, a[0], a[1], 0xCC00FF00, a[2], a[3]]);
            g.fillPath(obj.path, obj.area);
        });
        

        PS: Have you checked the new color vec4 options as well?

        Not yet but sounds intriguing!

        Casey Kolb
        Founder & CEO of Lunacy Audio
        Composer | Producer | Software Developer

        ? NatanN 2 Replies Last reply Reply Quote 2
        • ?
          A Former User @Casey Kolb
          last edited by

          @Casey-Kolb Thanks Casey... Weird... I tried the fillPath-thingie, but didn't get it to work this morning... Well... Thanks a lot! This is awesome!

          1 Reply Last reply Reply Quote 1
          • NatanN
            Natan @Casey Kolb
            last edited by

            @Casey-Kolb Casey thanks for the Code,
            Wondering if the Tiny border is removable?
            i just don't like the White line :/

            Casey KolbC 1 Reply Last reply Reply Quote 1
            • Casey KolbC
              Casey Kolb @Natan
              last edited by

              @Natan I think these are the options you can use LAF with:

              drawThumbnailBackground
              drawThumbnailText
              drawThumbnailPath
              drawThumbnailRange
              drawThumbnailRuler
              

              You might also have to try drawPath inside the drawThumbailPath function?

              Casey Kolb
              Founder & CEO of Lunacy Audio
              Composer | Producer | Software Developer

              DabDabD 1 Reply Last reply Reply Quote 1
              • DabDabD
                DabDab @Casey Kolb
                last edited by

                drawThumbnailBackground
                drawThumbnailText
                drawThumbnailPath
                drawThumbnailRange
                drawThumbnailRuler
                

                @Casey-Kolb Is this available in old Master branch or only in the latest Develop branch?

                Bollywood Music Producer and Trance Producer.

                NatanN 1 Reply Last reply Reply Quote 0
                • NatanN
                  Natan
                  last edited by

                  Thanks a Lot @Casey-Kolb 👋👏
                  Will give it a try now 😎

                  1 Reply Last reply Reply Quote 0
                  • NatanN
                    Natan @DabDab
                    last edited by

                    @DabDab No! it is Only Available on the new Layout Branch

                    Casey KolbC 1 Reply Last reply Reply Quote 1
                    • Casey KolbC
                      Casey Kolb @Natan
                      last edited by

                      @Natan That's correct. Christoph just added it a few days ago.

                      Casey Kolb
                      Founder & CEO of Lunacy Audio
                      Composer | Producer | Software Developer

                      DanHD 1 Reply Last reply Reply Quote 1
                      • DanHD
                        DanH @Casey Kolb
                        last edited by

                        @Casey-Kolb going back to tables, and for audio waveforms too, do you use a method to differentiate between tables or are they all the same? i.e do an 'if (obj.text == myawesometable1)', else 'if (obj.text == myawesometable2)' etc

                        I never got it to work for tables...

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

                        d.healeyD Casey KolbC 2 Replies Last reply Reply Quote 0
                        • d.healeyD
                          d.healey @DanH
                          last edited by d.healey

                          @DanH

                          Console.print() is your friend. Tables don't expose their text property in laf. Shouldn't be too difficult to add it though.

                          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 Confused, what do you think I should be printing? And you mean add to source code?

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

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

                              @DanH

                              Confused, what do you think I should be printing?

                              You should check out my LAF videos ;)

                              Console.print(trace(obj))

                              And you mean add to source code?

                              Yes. Probably in ScriptingApiObjects.cpp

                              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 oh wait I did it by using the itemColour / bgColour (which you suggested a while back but I did it wrong!)

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

                                1 Reply Last reply Reply Quote 1
                                • Casey KolbC
                                  Casey Kolb @DanH
                                  last edited by

                                  @DanH said in LAF for Tables broken in develop branch?:

                                  @Casey-Kolb going back to tables, and for audio waveforms too, do you use a method to differentiate between tables or are they all the same? i.e do an 'if (obj.text == myawesometable1)', else 'if (obj.text == myawesometable2)' etc

                                  We use the same LAF for all tables. I think @d-healey is referring to editing the HISE source code to include text properties for table LAF. This is what I'm currently doing:

                                  laf.registerFunction("drawTablePath", function(g, obj) {
                                  	var a = obj.area;
                                  
                                  	g.setGradientFill([0xCC0000FF, a[0], a[1], 0xCC00FF00, a[2], a[3]]);
                                  	g.drawPath(obj.path, obj.area, 0.5);
                                  	g.fillPath(obj.path, obj.area);
                                  });
                                  

                                  Casey Kolb
                                  Founder & CEO of Lunacy Audio
                                  Composer | Producer | Software Developer

                                  1 Reply Last reply Reply Quote 1
                                  • DabDabD
                                    DabDab
                                    last edited by

                                    OMG.. Today I compiled Develop branch. Sorry, but this version is Total useless for now. Table with LAF not working. We need this to be worked.

                                    HiseSnippet 997.3ocsV8ziaTCE2NalUMAJhJwMtLpmRTWFkTx1tqPH5tYSJQc+SDYao2pblwSF20i8nYbRHBsm3.eH3.eG5ctwWB9VvcDBd1dRlDX11sAgOj32e8u2adum8vToOMKSlhv0tbQBEg+PmQKDpntQDl.M3DD9ibNijonotVVGuHgjkQCPX7NOUy.WqJxr98u5XBmH7oErPnWHY9zSYwLUA2gO4YLNuOIfdIKdMs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LweAHA
                                    

                                    Bollywood Music Producer and Trance Producer.

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

                                      @DabDab Pretty sure Christoph has changed his focus to New Layout branch. I don't think Develop is being developed any more so I probably wouldn't use it

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

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

                                        @DanH new_layout will probably be merged into develop before going into master

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

                                        1 Reply Last reply Reply Quote 0
                                        • DabDabD
                                          DabDab
                                          last edited by DabDab

                                          It is crashing....:grinning_squinting_face: :grinning_squinting_face: :grinning_squinting_face:

                                          Bollywood Music Producer and Trance Producer.

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

                                          58

                                          Online

                                          1.7k

                                          Users

                                          11.7k

                                          Topics

                                          102.1k

                                          Posts