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 dnoise.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 ; analyze sound file and output result, and be verbose ires1 system_i 1,{{ dnoise -V -W -i MathewsNoise.wav -o outfile01.wav MathewsN.wav }} ; default settings (1024 bandoass filters) ires2 system_i 1,{{ dnoise -V -W -N8 -i MathewsNoise.wav -o outfile02.wav MathewsN.wav }} ; LoFi, only 8 bandpass filters ires3 system_i 1,{{ dnoise -V -W -N4096 -i MathewsNoise.wav -o outfile03.wav MathewsN.wav }} ; 4096 bandpass filters used instr 1 ; untreated signal asig diskin2 "MathewsN.wav", 1 ; sample = 17.6 secs prints "\n---***YOU NOW HEAR THE UNTREATED SOUND SAMPLE***---\n" outs asig, asig endin instr 2 prints "\n---***YOU NOW HEAR THE DENOISED FILE WITH DEFAULT SETTINGS:***---\n" adnoise diskin2 p4, 1 outs adnoise, adnoise endin instr 3 prints "\n---***YOU NOW HEAR THE LoFi FILE:***---\n" adnoise diskin2 p4, 1 outs adnoise, adnoise endin instr 4 prints "\n---***YOU NOW HEAR THE DENOISED FILE WITH MANY BANDS, CREATING SOME ECHOES:***---\n" adnoise diskin2 p4, 1 outs adnoise, adnoise endin i1 1 17.6 ; untreated signal i2 20 17.6 "outfile01.wav" ; default settings i3 40 17.6 "outfile02.wav" ; LoFi i4 60 17.6 "outfile03.wav" ; echo-y e