; Minimal example about using html section in CSD ; by Tarmo Johannes trmjhnns@gmail.com 2016 -odac -d

Minimal Csound-Html5 example



Frequency:


Get channel from csound with callback (QtWebchannel):
Value from channel "testChannel":

Get as return value (QtWebkit)
sr = 44100 nchnls = 2 0dbfs = 1 ksmps = 32 chnset 0.5, "testChannel" ; to test chnget in the host instr 1 kfreq= 200+chnget:k("testChannel")*500 printk2 kfreq aenv linen 1,0.1,p3,0.25 out poscil(0.5,kfreq)*aenv endin ; schedule 1,0,0.1, 1 i 1 0 0.5 ; to hear if Csound is loaded f 0 3600
100 100 320 240 true 255 255 255 button0 10 19 100 30 {d5a1d1e3-eb6f-461c-90dc-95647307dc87} true 0 0 event 1.00000000 Play / i1 0 1 false false