Collection of code snippets for tixy.land
- Render a simple white bar graph. 210 char.
// Not working on safari, not working using link ( audio context need user interaction )
i?(a.getByteFrequencyData(d),(16-d[x]/18)-y)<0:t||(d=new Uint8Array(16),c=new AudioContext(),navigator.mediaDevices.getUserMedia({audio:a=c.createAnalyser()}).then(s=>{c.createMediaStreamSource(s).connect(a)}))