Use Non-Frames Version Previous Page Next Page
Signal Modifiers: Reverberation

babo

  a1, a2  babo      asig, ksrcx, ksrcy, ksrcz, irx, iry, irz[, idiff[, ifno]]

Description

babo stands for ball-within-the-box. It is a physical model reverberator based on the paper by Davide Rocchesso "The Ball within the Box: a sound-processing metaphor", Computer Music Journal, Vol 19, N.4, pp.45-47, Winter 1995.

The resonator geometry can be defined, along with some response characteristics, the position of the listener within the resonator, and the position of the sound source.

Initialization

irx, iry, irz – the coordinates of the geometry of the resonator (length of the edges in meters)

idiff – is the coefficient of diffusion at the walls, which regulates the amount of diffusion (0-1, where 0 = no diffusion, 1 = maximum diffusion - default: 1)

ifno – expert values function: a function number that holds all the additional parameters of the resonator. This is typically a GEN2--type function used in non-rescaling mode. They are as follows:

Performance

asig – the input signal

ksrcx, ksrcy, ksrcz – the virtual coordinates of the source of sound (the input signal). These are allowed to move at k-rate and provide all the necessary variations in terms of response of the resonator.

Examples

Orchestra File - Simple usage
                   ; minimal babo instrument
                   ;
                   instr 1
                   ix     =p5          ; x position of source
                   iy     =p6          ; y position of source
                   iz     =p7          ; z position of source
                   ixsize =p8          ; width  of the resonator
                   iysize =p9          ; depth  of the resonator
                   izsize =p10         ; height of the resonator

       ainput      soundin p4

       al,ar       babo    ainput*0.9, ix, iy, iz, ixsize, iysize, izsize

                   outs    al,ar

                   endin

Score File - Simple Usage

       ; simple babo usage:
       ;
       ;p4     : soundin number
       ;p5     : x position of source
       ;p6     : y position of source
       ;p7     : z position of source
       ;p1     : width  of the resonator
       ;p12    : depth  of the resonator
       ;p13    : height of the resonator
       ;
       i1  0 10 1  6  4  3     14.39 11.86 10
       ;           ^^^^^^^     ^^^^^^^^^^^^^^
       ;           |||||||     ++++++++++++++: optimal room dims according to
       ;           |||||||                     Milner and Bernard JASA 85(2), 1989
       ;           +++++++++: source position
       e

Orchestra File - Expert usage

                   ; full blown babo instrument with movement
                   ;
                   instr 2
                   ixstart=p5          ; start x position of source (left-right)
                   ixend  =p8          ; end   x position of source
                   iystart=p6          ; start y position of source (front-back)
                   iyend  =p9          ; end   y position of source
                   izstart=p7          ; start z position of source (up-down)
                   izend  =p10         ; end   z position of source
                   ixsize =p11         ; width  of the resonator
                   iysize =p12         ; depth  of the resonator
                   izsize =p13         ; height of the resonator
                   idiff  =p14         ; diffusion coefficient
                   iexpert=p15         ; power user values stored in this function

       ainput      soundin p4
       ksource_x   line    ixstart, p3, ixend
       ksource_y   line    iystart, p3, iyend
       ksource_z   line    izstart, p3, izend

       al,ar       babo    ainput*0.9, ksource_x, ksource_y, ksource_z,                    ixsize, iysize, izsize, idiff, iexpert

                   outs    al,ar

                   endin

Score File - Expert Usage

       ; full blown instrument
       ;p5         : start x position of source (left-right)
       ;p6         : end   x position of source
       ;p7         : start y position of source (front-back)
       ;p8         : end   y position of source
       ;p9         : start z position of source (up-down)
       ;p10        : end   z position of source
       ;p11        : width  of the resonator
       ;p12        : depth  of the resonator
       ;p13        : height of the resonator
       ;p14        : diffusion coefficient
       ;p15        : power user values stored in this function

       ;         decay  hidecay rx ry rz rdistance direct early_diff
       f1  0 8 -2  0.95   0.95   0  0  0    0.3     0.5      0.8  ; brighter
       f2  0 8 -2  0.95   0.5    0  0  0    0.3     0.5      0.8  ; default (to be set as)
       f3  0 8 -2  0.95   0.01   0  0  0    0.3     0.5      0.8  ; darker
       f4  0 8 -2  0.95   0.7    0  0  0    0.3     0.1      0.4  ; to hear the effect of diffusion
       f5  0 8 -2  0.9    0.5    0  0  0    0.3     2.0      0.98 ; to hear the movement
       f6  0 8 -2  0.99   0.1    0  0  0    0.3     0.5      0.8  ; default vals
       ;        ^
       ;         ----- gen. number: negative to avoid rescaling


       i2   10 10 1  6  4  3   6   4  3  14.39  11.86  10   1   6 ; defaults
       i2   +   4 2  6  4  3   6   4  3  14.39  11.86  10   1   1 ; hear brightness 1
       i2   +   4 2  6  4  3  -6  -4  3  14.39  11.86  10   1   2 ; hear brightness 2
       i2   +   4 2  6  4  3  -6  -4  3  14.39  11.86  10   1   3 ; hear brightness 3
       i2   +   3 2  .6 .4 .3 -.6 -.4 .3  1.439  1.186  1.0 0.0 4 ; hear diffusion 1
       i2   +   3 2  .6 .4 .3 -.6 -.4 .3  1.439  1.186  1.0 1.0 4 ; hear diffusion 2
       i2   +   4 2 12  4  3 -12  -4 -3  24.39  21.86  20   1   5 ; hear movement
       ;
       i2   +   4 1  6  4  3   6   4  3  14.39  11.86   10  1   1 ; hear brightness 1
       i2   +   4 1  6  4  3  -6  -4  3  14.39  11.86   10  1   2 ; hear brightness 2
       i2   +   4 1  6  4  3  -6  -4  3  14.39  11.86   10  1   3 ; hear brightness 3
       i2   +   3 1  .6 .4 .3 -.6 -.4 .3  1.439  1.186  1.0 0.0 4 ; hear diffusion 1
       i2   +   3 1  .6 .4 .3 -.6 -.4 .3  1.439  1.186  1.0 1.0 4 ; hear diffusion 2
       i2   +   4 1 12  4  3 -12  -4 -3  24.39  21.86   20  1   5 ; hear movement
       ;            ^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^  ^   ^
       ;            |||||||||||||||||||  |||||||||||||||||  |    --: expert values function
       ;            |||||||||||||||||||  |||||||||||||||||  +--: diffusion
       ;            |||||||||||||||||||  ----------------: optimal room dims according to Milner and Bernard JASA 85(2), 1989
       ;            |||||||||||||||||||
       ;            --------------------: source position start and end
       e

Authors

Paolo Filippi
Padova, Italy
1999

Nicola Bernardini
Rome, Italy
2000

New in Csound version 4.09


Use Non-Frames Version Previous Page Next Page
Signal Modifiers: Reverberation