giuliomoro
doing some sound design with this MIDI instrument with reverb - quite a lot of mode switching still - and some crickets too. Try it out. You might need to change your CC numbers. I am using the Novation LaunchKey mini and it is set up for controllers 21 - 28 by default
324559 mode switches detected on the audio thread.
327326 mode switches detected on the audio thread.
330092 mode switches detected on the audio thread.
Underrun detected: 1 blocks dropped
332858 mode switches detected on the audio thread.
335625 mode switches detected on the audio thread.
======
; Adam Boulanger
; MIDI added to Hans Mikelson's 'River' instrument from The Csound Catalog
<CsoundSynthesizer>
<CsOptions>
-Mhw:1,0,0 --daemon -dm0
</CsOptions>
<CsInstruments>
sr = 44100
ksmps = 16
nchnls = 2
0dbfs = 1
maxalloc 1, 6
ctrlinit 1, 21, 110, 22,110, 23,120, 24,1, 25,0, 26,64
garvb init 0
instr 1
iamp ampmidi .75
kcps cpsmidib 1
icps cpsmidi
kvol midic7 21, 0,1
kcut1 midic7 22, 50,800 ;Added:Tune reson filters
kcut2 midic7 23, 50,800
kcut3 midic7 24, 440,880
kmod midic7 25, .6, 1.4
krvbsend midic7 26, 0,.5
klfo lfo kmod, .02+rnd(.09)
aplk pluck iamp, kcps+klfo, icps, 0, 1
asig dcblock2 aplk
af1 reson asig, kcut1+rnd(440), 80
af2 reson asig, kcut2+rnd(222), 80
af3 reson asig, kcut3+rnd(880), 80
abalnc balance af1+af2+af3, asig
afinal linenr abalnc, .01, .4, .5
adry = afinal*kvol
outs adry,adry
vincr garvb, adry*krvbsend
endin
instr Reverb
irevtm = 2.6
ihidif = 0.2
denorm garvb
aout reverb2 garvb, irevtm, ihidif ; DELAY FOR TIME
out aout ; OUTPUT THE CHANNEL
clear garvb
endin
</CsInstruments>
<CsScore>
f0 z
f1 0 16384 10 1 ; sine wave
i "Reverb" 0 -1
</CsScore>
</CsoundSynthesizer>