Nice work! It might be nice to hint to iOS users that they should disable silent mode via the little side toggle if they want to hear anything. Just a quirk of iOS that took me literally years to figure out -- I assumed it just didn't support the Web Audio API and went on with my life.
Or as the developer you can play some silent audio in the background via an ` ` element: https://github.com/donbrae/onscreen-piano-keyboard/blob/main... . This will ensure the Web Audio API produces sound even with the ‘silent’ switch active.
var buffer = dm.audio.createBuffer(1, 1, dm.samplerate); var source = dm.audio.createBufferSource();
source.buffer = buffer; source.connect(dm.audio.destination);
if (source.start) { source.start(0); } else { source.noteOn(0); }