-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
;example by Tarmo Johannes ;reformatted for flossmanual by Hlödver Sigurdsson