HISE Logo Forum
    • Categories
    • Register
    • Login

    AhdsrBall LAF

    Scheduled Pinned Locked Moved General Questions
    7 Posts 2 Posters 209 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.
    • T
      tiesvdam
      last edited by

      I am trying to change the color of the ball in the AHDSR graph. I am doing it this way, but I end up with a giant ball on the screen (no diddy). Can someone explain what I need to change? Thanks in advance!

      laf.registerFunction("drawAhdsrBall", function(g, obj)
      {
          var a = obj.area; 
      
          g.setColour(0xFFFF5400); 
          g.fillEllipse(a);
      });
      
      

      Scherm­afbeelding 2025-02-27 om 13.55.30.png

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

        @tiesvdam obj.area gives you the entire area of the floating tile. Use Console.print(trace(obj)); to see what other properties you have access to.

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

        T 1 Reply Last reply Reply Quote 0
        • T
          tiesvdam @d.healey
          last edited by

          @d-healey said in AhdsrBall LAF:

          Console.print(trace(obj));

          Where should i place this in my script?

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

            @tiesvdam Within the look and feel function - you can delete it afterwards.

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

            T 1 Reply Last reply Reply Quote 0
            • T
              tiesvdam @d.healey
              last edited by

              @d-healey

              I placed it here, But it gives no information

              laf.registerFunction("drawAhdsrBall", function(g, obj)
              {
              	Console.print(trace(obj));
              
                  var a = obj.area; 
              
                  g.setColour(0xFFFF5400); 
                  g.fillEllipse(a);
              });
              
              
              d.healeyD 1 Reply Last reply Reply Quote 0
              • d.healeyD
                d.healey @tiesvdam
                last edited by d.healey

                @tiesvdam You see nothing in the console? You might need to play a note.

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

                T 1 Reply Last reply Reply Quote 0
                • T
                  tiesvdam @d.healey
                  last edited by

                  @d-healey Thanks! fixed it. Love your help everytime

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

                  21

                  Online

                  1.7k

                  Users

                  11.8k

                  Topics

                  102.6k

                  Posts