There are several problems here. I would suggest breaking your sketch down into small parts, then working back up.
- You are playing music.
- You are drawing a small live histogram at the bottom of the screen.
- BUT, you aren’t drawing each value a a dot of varying brightness arranged in a line, you are instead drawing a 2D area of pure white histogram lines.
- ALSO you aren’t drawing that to the PGraphics for texture – you beginDraw and endDraw, and there are no draw commands in there.
- ALSO, you aren’t drawing the PGraphics texture onto the arc at all – the PGraphics is empty, but even if it was not empty then still texturing an arc doesn’t work that way.
I’d suggest starting out by just drawing your texture to the main canvas. A collection of bright dots, a line at a time, that sweeps across the canvas in a rectangle. No PGraphics, no arc.
Once you get that working, draw that onto a PGraphics instead, and display it on the main canvas with image(pg,0,0)
.
Once you get that working, THEN try to texture the arc with it.
When you get to the arc step, you may find this past discussion helpful: