| 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.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 |
; minimal babo instrument |
| 18 |
; |
| 19 |
instr 1 |
| 20 |
ix = p4 ; x position of source |
| 21 |
iy = p5 ; y position of source |
| 22 |
iz = p6 ; z position of source |
| 23 |
ixsize = p7 ; width of the resonator |
| 24 |
iysize = p8 ; depth of the resonator |
| 25 |
izsize = p9 ; height of the resonator |
| 26 |
|
| 27 |
ainput soundin "drumsMlp.wav" |
| 28 |
|
| 29 |
al,ar babo ainput*0.7, ix, iy, iz, ixsize, iysize, izsize |
| 30 |
|
| 31 |
outs al,ar |
| 32 |
endin |
| 33 |
|
| 34 |
|
| 35 |
</CsInstruments> |
| 36 |
<CsScore> |
| 37 |
|
| 38 |
/* Written by Nicola Bernardini */ |
| 39 |
; simple babo usage: |
| 40 |
; |
| 41 |
;p4 : x position of source |
| 42 |
;p5 : y position of source |
| 43 |
;p6 : z position of source |
| 44 |
;p7 : width of the resonator |
| 45 |
;p8 : depth of the resonator |
| 46 |
;p9 : height of the resonator |
| 47 |
; |
| 48 |
i 1 0 20 6 4 3 14.39 11.86 10 |
| 49 |
; ^^^^^^^ ^^^^^^^^^^^^^^ |
| 50 |
; ||||||| ++++++++++++++: optimal room dims according to |
| 51 |
; ||||||| Milner and Bernard JASA 85(2), 1989 |
| 52 |
; +++++++++: source position |
| 53 |
e |
| 54 |
|
| 55 |
|
| 56 |
</CsScore> |
| 57 |
</CsoundSynthesizer> |