| 1 |
<CsoundSynthesizer> |
| 2 |
<CsOptions> |
| 3 |
; Select audio/midi flags here according to platform |
| 4 |
-odac ;;;RT audio out |
| 5 |
;-iadc ;;;uncomment -iadc if RT audio input is needed too |
| 6 |
; For Non-realtime ouput leave only the line below: |
| 7 |
; -o babo_expert.wav -W ;;; for file output any platform |
| 8 |
</CsOptions> |
| 9 |
<CsInstruments> |
| 10 |
|
| 11 |
/* Written by Nicola Bernardini */ |
| 12 |
|
| 13 |
sr = 44100 |
| 14 |
ksmps = 32 |
| 15 |
nchnls = 2 |
| 16 |
|
| 17 |
; full blown babo instrument with movement |
| 18 |
; |
| 19 |
instr 2 |
| 20 |
ixstart = p4 ; start x position of source (left-right) |
| 21 |
ixend = p7 ; end x position of source |
| 22 |
iystart = p5 ; start y position of source (front-back) |
| 23 |
iyend = p8 ; end y position of source |
| 24 |
izstart = p6 ; start z position of source (up-down) |
| 25 |
izend = p9 ; end z position of source |
| 26 |
ixsize = p10 ; width of the resonator |
| 27 |
iysize = p11 ; depth of the resonator |
| 28 |
izsize = p12 ; height of the resonator |
| 29 |
idiff = p13 ; diffusion coefficient |
| 30 |
iexpert = p14 ; power user values stored in this function |
| 31 |
|
| 32 |
ainput soundin "drumsMlp.wav" |
| 33 |
ksource_x line ixstart, p3, ixend |
| 34 |
ksource_y line iystart, p3, iyend |
| 35 |
ksource_z line izstart, p3, izend |
| 36 |
|
| 37 |
al,ar babo ainput*0.7, ksource_x, ksource_y, ksource_z, ixsize, iysize, izsize, idiff, iexpert |
| 38 |
|
| 39 |
outs al,ar |
| 40 |
endin |
| 41 |
|
| 42 |
|
| 43 |
</CsInstruments> |
| 44 |
<CsScore> |
| 45 |
|
| 46 |
/* Written by Nicola Bernardini */ |
| 47 |
; full blown instrument |
| 48 |
;p4 : start x position of source (left-right) |
| 49 |
;p5 : end x position of source |
| 50 |
;p6 : start y position of source (front-back) |
| 51 |
;p7 : end y position of source |
| 52 |
;p8 : start z position of source (up-down) |
| 53 |
;p9 : end z position of source |
| 54 |
;p10 : width of the resonator |
| 55 |
;p11 : depth of the resonator |
| 56 |
;p12 : height of the resonator |
| 57 |
;p13 : diffusion coefficient |
| 58 |
;p14 : power user values stored in this function |
| 59 |
|
| 60 |
; decay hidecay rx ry rz rdistance direct early_diff |
| 61 |
f1 0 8 -2 0.95 0.95 0 0 0 0.3 0.5 0.8 ; brighter |
| 62 |
f2 0 8 -2 0.95 0.5 0 0 0 0.3 0.5 0.8 ; default (to be set as) |
| 63 |
f3 0 8 -2 0.95 0.01 0 0 0 0.3 0.5 0.8 ; darker |
| 64 |
f4 0 8 -2 0.95 0.7 0 0 0 0.3 0.1 0.4 ; to hear the effect of diffusion |
| 65 |
f5 0 8 -2 0.9 0.5 0 0 0 0.3 2.0 0.98 ; to hear the movement |
| 66 |
f6 0 8 -2 0.99 0.1 0 0 0 0.3 0.5 0.8 ; default vals |
| 67 |
; ^ |
| 68 |
; ----- gen. number: negative to avoid rescaling |
| 69 |
|
| 70 |
|
| 71 |
i2 0 10 6 4 3 6 4 3 14.39 11.86 10 1 6 ; defaults |
| 72 |
i2 + 4 6 4 3 6 4 3 14.39 11.86 10 1 1 ; hear brightness 1 |
| 73 |
i2 + 4 6 4 3 -6 -4 3 14.39 11.86 10 1 2 ; hear brightness 2 |
| 74 |
i2 + 4 6 4 3 -6 -4 3 14.39 11.86 10 1 3 ; hear brightness 3 |
| 75 |
i2 + 3 .6 .4 .3 -.6 -.4 .3 1.439 1.186 1.0 0.0 4 ; hear diffusion 1 |
| 76 |
i2 + 3 .6 .4 .3 -.6 -.4 .3 1.439 1.186 1.0 1.0 4 ; hear diffusion 2 |
| 77 |
i2 + 4 12 4 3 -12 -4 -3 24.39 21.86 20 1 5 ; hear movement |
| 78 |
; |
| 79 |
i2 + 4 6 4 3 6 4 3 14.39 11.86 10 1 1 ; hear brightness 1 |
| 80 |
i2 + 4 6 4 3 -6 -4 3 14.39 11.86 10 1 2 ; hear brightness 2 |
| 81 |
i2 + 4 6 4 3 -6 -4 3 14.39 11.86 10 1 3 ; hear brightness 3 |
| 82 |
i2 + 3 .6 .4 .3 -.6 -.4 .3 1.439 1.186 1.0 0.0 4 ; hear diffusion 1 |
| 83 |
i2 + 3 .6 .4 .3 -.6 -.4 .3 1.439 1.186 1.0 1.0 4 ; hear diffusion 2 |
| 84 |
i2 + 4 12 4 3 -12 -4 -3 24.39 21.86 20 1 5 ; hear movement |
| 85 |
; ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^ ^ |
| 86 |
; ||||||||||||||||||| ||||||||||||||||| | --: expert values function |
| 87 |
; ||||||||||||||||||| ||||||||||||||||| +--: diffusion |
| 88 |
; ||||||||||||||||||| ----------------: optimal room dims according to Milner and Bernard JASA 85(2), 1989 |
| 89 |
; ||||||||||||||||||| |
| 90 |
; --------------------: source position start and end |
| 91 |
e |
| 92 |
|
| 93 |
|
| 94 |
</CsScore> |
| 95 |
</CsoundSynthesizer> |