AhdsrBall LAF
-
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); });
-
@tiesvdam
obj.area
gives you the entire area of the floating tile. UseConsole.print(trace(obj));
to see what other properties you have access to. -
-
@tiesvdam Within the look and feel function - you can delete it afterwards.
-
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); });
-
@tiesvdam You see nothing in the console? You might need to play a note.
-
@d-healey Thanks! fixed it. Love your help everytime