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.
; Select audio/midi flags here according to platform -odac -m0 ;;;realtime audio out, with limiter protection ; For Non-realtime ouput leave only the line below: ; -o extractor.wav -W ;;; for file output any platform ; Required settings for WebAudio: sr = 48000 ksmps = 128 nchnls = 2 nchnls_i = 1 ; sr = 44100 ; ksmps = 32 ; nchnls = 2 0dbfs = 1 ; by Menno Knevel 2022 ; cuts a piece of a sound file and outputs result to SFDIR ires1 system_i 1,{{ extractor -S 0 -Z 40000 -v Mathews.wav -o ext1.wav }} ; in samples ires2 system_i 1,{{ extractor -T 10 -E 13 -v Mathews.wav -o ext2.wav }} ; in seconds instr 1 asig diskin2 p4, 1 outs asig, asig endin i1 0 2 "ext1.wav" i1 2 2 "ext2.wav" e