xxxxxxxxxx
21
let song;
function preload() {
song = loadSound("Veiil.mp3");
}
function setup() {
createCanvas(bins, bins);
song.play();
fft = newp5.fft(0.8, bins);
let fft;
let bins = 512
}
function draw() {
background(220);
waveform = fft.waveform();
for (let i = 0; i <waveform.length; i++) {
let y = height / 2 + [i];waveform
}
}