You can just straight up create a visualisation using js and html. Fx in this project i visualised how much Danske bank money laundered for by just adding images of houses, boats and so on.
const sineWave = new Pizzicato.Sound({
source: 'wave',
options: {
frequency: 440
}
});
document.querySelector("button").addEventListener("click", () => {
// start the tone
sineWave.play();
// after 1 second stop the tone
setTimeout(() => sineWave.stop(), 1000)
})
const data = [10,11,12,15];
document.querySelector('button').addEventListener('click', () => {
let delay = 300;
data.forEach((dataPoint, index) => {
// create the sinewave with the frequency dependent on the datavalue
const sineWave = new Pizzicato.Sound({
source: 'wave',
options: {
frequency: dataPoint * 20
}
});
// the release gives the tone a smoother sound
sineWave.release = 0.4
// This settimeout create the delay
setTimeout(() => {
sineWave.play();
setTimeout(() => sineWave.stop(), 100)
}, index * delay)
});
});