| 1 |
<CsoundSynthesizer> |
| 2 |
<CsOptions> |
| 3 |
--midi-key-cps=4 --midi-velocity=5 |
| 4 |
</CsOptions> |
| 5 |
<CsInstruments> |
| 6 |
|
| 7 |
sr = 44100 |
| 8 |
ksmps = 128 |
| 9 |
nchnls = 2 |
| 10 |
0dbfs = 1 |
| 11 |
|
| 12 |
instr 1 |
| 13 |
icps = 440 * 2^((p4 -69)/12) |
| 14 |
iamp = p5/600 |
| 15 |
|
| 16 |
print icps |
| 17 |
|
| 18 |
iplk = 0.1 |
| 19 |
kpick = 0.75 |
| 20 |
krefl = 0.15 |
| 21 |
|
| 22 |
xtratim 1 |
| 23 |
|
| 24 |
aenv linseg 1, (p3 + 1) - 0.1, 1, 0.1, 0 |
| 25 |
|
| 26 |
aout wgpluck2 iplk, iamp, icps, kpick, krefl |
| 27 |
outs aout*aenv,aout*aenv |
| 28 |
endin |
| 29 |
|
| 30 |
</CsInstruments> |
| 31 |
<CsScore> |
| 32 |
|
| 33 |
</CsScore> |
| 34 |
</CsoundSynthesizer> |
| 35 |
<bsbPanel> |
| 36 |
<label>Widgets</label> |
| 37 |
<objectName/> |
| 38 |
<x>0</x> |
| 39 |
<y>22</y> |
| 40 |
<width>400</width> |
| 41 |
<height>140</height> |
| 42 |
<visible>true</visible> |
| 43 |
<uuid/> |
| 44 |
<bgcolor mode="nobackground"> |
| 45 |
<r>255</r> |
| 46 |
<g>255</g> |
| 47 |
<b>255</b> |
| 48 |
</bgcolor> |
| 49 |
</bsbPanel> |
| 50 |
<bsbPresets> |
| 51 |
</bsbPresets> |