Processing, using texture inside the audio waveform
问题 I've been trying to make the texture ( the img ) to be visible only where wave form active is. But so far my attempts failed. I didn't quite understand the usage of vertex. PImage img; import ddf.minim.*; Minim minim; AudioPlayer song; void setup() { size(800, 600,P2D); minim = new Minim(this); song = minim.loadFile("song.mp3"); song.play(); img = loadImage("img.jpg"); } void draw() { background(0); stroke(255); for (int i = 0; i < song.bufferSize() - 1; i++) { beginShape(); texture(img);