xxxxxxxxxx
23
let song;
function preload(){
song = loadSound('1.mp3');
}
function setup() {
createCanvas(400, 400);
// song.play();
}
function mousePressed(){
if (song.isPlaying()){
song.stop();
}
else {
song.play();
}
}
function draw() {
background(220);
}