This should play if your Web browser has WebAssembly enabled (most do). Most examples will play unless they need to load files. The first time you click Play, Csound will spend a few seconds loading, then play. You can edit this code and replay it.
-odac -d ; By Stefano Cucchi 2020 ; Required settings for WebAudio: sr = 48000 ksmps = 128 nchnls = 2 nchnls_i = 1 ; sr = 44100 ; ksmps = 10 ; nchnls = 2 0dbfs = 1 instr 1 a1 oscili 0.1, p4 a2 oscili 0.1, p5 ashape taninv2 a1, a2 kdeclick linseg 0, 0.3, 0.2, p3-0.6, 0.2, 0.3, 0 outs ashape*kdeclick, ashape*kdeclick endin instr 2 a1 diskin p4, 1 a2 = a1 ashape taninv2 a1, a2 kdeclick linseg 0, 0.3, 0.2, p3-0.6, 0.2, 0.3, 0 outs ashape*kdeclick*.5, ashape*kdeclick*.5 endin i 1 0 3 440 300 i 1 3 3 200 210 i 1 6 3 50 40 i 1 9 3 50 3000 i 2 12 3 "fox.wav"