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