Html template for CsoundQt and WebAudio Csound
Press "Strart" to compile the orchestra, "Event" to make the sound and display number of harmonics used.
Event
Number of harmonics:
?
Volume:
Csound Code
sr = 44100 ksmps = 32 nchnls = 2 0dbfs = 1 chn_k "volume", 1 // the channel must be declared to work in CsoundQt chnset 0.5, "volume" instr 1 ifreq random 200, 400 iharm = int(random:i(1,20)) chnset iharm, "harmonics" print ifreq, iharm kvolume chnget "volume" asig buzz adsr(0.1,0.1,0.5, 0.5) *chnget:k("volume"), ifreq, iharm, -1 outs asig, asig endin
Csound Messages
In CsoundQt the messages are directed to console tab.