# The tempo is increased from the default 60 bpm to 75 bpm
# The 2 tracks create separate threads:
# (1) Track 1: A babbling brook rotates in a circle counterclockwise 1 and  1/4
# times around the listener and then recedes toward the right front corner
# (2) track 2 : An alternating series of whispers and membranophone rools moves
# linearly, 4 meters in front of themlistener, from 4 meters to the right
# to 4 meters to the left. A concluding  fingersnap is  3 meters behind the mic.
# The gain of the ambisonic mic is set to 1.9 because this produces
# a maximum amplitude close to maxamp, for good signal resolution
# The B format output soundfile  vspace2.wxyz was decoded with ambidec
# into the stereo WAVE soundfile /sflib/x/vspace2.decode.wav

##### [1] GENERAL parameters and EARLY & LATE REFLECTION parameters #####
tempo 75;  # tempo increased to 75 bpm
skip 0 ;
# disable early reflections; 
early reflection time 0.25;
early reflection minimum gain 0.005;

# disable late reflections
#late reflection time ?? ;
late reflection gain 1; 
late reflection echo density 1.0;
late reflection frequency density 1.0;
# late reflection cutoff ?? ;
# ===================================================================
##### [2]  ROOM DIMENSIONS & REFECTIVITY parameters  #####
distance unit metre;
room {
dimensions     -7.9, 11.3  ,     -9.43 , 9.57 ,        -1.55 , 4.7 ;
#             -rear, front,   -right,  left ,    -down,  up
reflections     0.5,  0.5,   0.5, 0.5,      0.5, 0.5 ;
}
# ===================================================================
##### [3] RECORDING devices (mics) : each "recording" produces an output soundfile #####
 recording vspace2.wxyz  {
  device ambisonic ;
  location <0, 0, 0>; 
  gain 1.9 ;
#  core radius 1;
 }
# -----------------------------------------------------
##### [4] TRACK parameters (MIX and MOTION) #####
track {
  mix     {
     0  /sflib/env/brook.wav  gain 2.0  from 0 to 12.0 ;  # use only 1st 12 seconds 
        }
  motion  {
       # first make 1 and 1/4 circular counter-clockwise revolutions around listener
     0 to 10.0  arc  centre <0,0,0> 
        #start <0, 3.0, 0>  to  <3.0, 0, 0> in 2.0 ; # distance of 3 meters
        start <0,3.0,0>  to  <3.0,0,0> in 2.0 ; # distance of 3 meters
    # during last 2 seconds recede toward right front corner
   10.0 to 12.0  line   <3.0,0,0>  to <11.0,-9.0,0> ;  # during last 2 seconds
        }
}
track {         #  Track 2 : ----------------
   mix      {   # input soundfile(s) for track 2 :
     2.5  /sflib/africa/whisper.ah.wav  gain 0.65 ; 
     2.7  /sflib/perc/bongo1.roll.wav  gain 1.1 ; 
     5.0  /sflib/africa/whisper.ay.wav  gain 0.65 ; 
     5.4  /sflib/world/sabaro.roll1.wav  gain 1.1 ; 
     7.5  /sflib/africa/whisper.oo.wav  gain 0.65 ; 
     7.9  /sflib/perc/tamb.roll.wav  gain 1.1 ; 
     10.0  /sflib/africa/whisper.ee.wav  gain 0.65 ; 
     12.1 /sflib/africa/fingersnaps.wav  gain 0.7 ;
     
        }
  motion  {
 0 to 10.5  line  <4.0, -4.0, 0>  to <4.0,4.0,0> ;
 10.5 fixed  <-3.0, 0,0> ;  # fingersnap 3 meters directly behind microphone
        }
}
   ## --- Template for adding more tracks: ---
# track {
#   mix      {   # add input soundfile(s) for track below:

#         }
#  motion  { # add fixed, line or arc locations for this track below:

#        } 
#}  
