You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constsound=sono.create('foo.ogg');constanalyser=sound.effects.add(sono.analyser({fftSize: 512,smoothing: 0.7}));constwaveformer=sono.utils.waveformer({waveform: analyser.getFrequencies(),canvas: document.querySelector('canvas'),color: (position,length)=>{consthue=(position/length)*360;return`hsl(${hue}, 100%, 40%)`;},// normalise the value from the analysertransform: value=>value/256});// update the waveformfunctionupdate(){window.requestAnimationFrame(update);// request frequencies from the analyseranalyser.getFrequencies();// update the waveformer displaywaveformer();}update();