AudioWaveForm LAF - The play head
-
OK so in an attempt to get around the current problems with the native rendering of AudioWaveform, I'm trying LAF -
So I can get:
drawThumbnailBackground - which allows me to draw the background
drawThumbnailPath - which allows me to draw the waveform shape itself
drawThumbnailRange - where index 2 allows me to draw the loop positionbut I cant find anything that lets me draw the playhead.... which I think is the problem in the current native code, so I'd really like to get around it...
Anyone have any ideas?
-
@Lindon drawThumbnailRuler ?
-
@DanH said in AudioWaveForm LAF - The play head:
@Lindon drawThumbnailRuler ?
I cant get that to even respond in the LAF like this:
AudioWaveformLAF.registerFunction("drawThumbnailRuler", function(g, obj) { Console.print(trace(obj)); });
gives me nothing in the console....
Oh hang on it only fires when a note is playing....
-
@Lindon yep thats it - solved, unless someone knows how to paint/remove the "green" offset area...?
-
@Lindon said in AudioWaveForm LAF - The play head:
@Lindon yep thats it - solved, unless someone knows how to paint/remove the "green" offset area...?
I would be interested in that too! Doesn't look good.
-
@Oli-Ullmann isn't that only visible in HISE?
-
@DanH said in AudioWaveForm LAF - The play head:
@Oli-Ullmann isn't that only visible in HISE?
nope:
-
@DanH
I haven't tested it but Lindon has. :-) -
@Lindon @Oli-Ullmann does this help?
HiseSnippet 6100.3oc25stirajjdcKodvpimAPq8Z.CXXiFB1.GgRKGdqHYgAF6gWKRVjrXwKEYUBxC386WJRV71fAvuR9MXeD7+7qw9FXyp6yk9n4HsZD106rt9Q2jQjQleQjQFYjLC0lJuf11pl6t+KMlpCt69e8C5SkcwzwNIk2Ivb28u5gAm9fvplh6nlpcZaC7u696+7s23e+W9E28zu+g+NJmbmRufOP5t6NVk3EHkTjz8AppuYWRdNmiefQRwKZM5aD7pJoqxqttfkO+Av6pc7xbhBTbt0rO6g6t+Ww5mzU0n24zEzd28eAUk+jdb0P4ys+XRahadvsWftSeoidlLWUt+MDei5czwI49puSmau6t6eP8CVfO+YKveyCxI9Ium9GrDe0SLd7CR7R6w8e1GCuO+ifGzKgG3Kf2m.RewKfzW7Lj9qeP2qIot6Cbtgm+MOHT1EzD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+dOual3+Vn6t6SKC7u.YP9EHC5u.YV+KPFreAxf+KPFheRYts4B40tpm+roKSnxprOcZ+6u+8aWe+me2+W.Aqf2qB
-
@Straticah
That looks great! :-) Thank you! -
@Straticah said in AudioWaveForm LAF - The play head:
@Lindon @Oli-Ullmann does this help?
Well no it doesnt -as its an Audio loop player - and that has no offset area display... as it has no offset.
-
@Lindon ah i thought you were looking for the playhead