sorry, but there is no
- code to play a sound file
- code to operate the tiles.
how about team work,
you get a song loaded and played, stopped for play a other …
and i do the operation of 9 tiles with keyboard and mouse click…
interface between the “modules” is a variable
let mysel = -1;
and 0 … 8 for a song to play.
https://editor.p5js.org/kll/sketches/QUnp7YbGv