sr = 96000
kr = 96000
nchnls = 2
0dbfs = 1
zakinit 2, 1
vbaplsinit 2, 2, -30.0, 30.0
gi_origin = -23.452656
gi_integer_width = 3.908776
gi_distance_to_speakers = 1.27
gi_vh_amplitude_A200648 ftgen 0, 0, 17, -2, 0.001520, 0.001856, 0.002730, 0.003604, 0.004774, 0.007755, 0.011140, 0.017507, 0.024934, 0.045094, 0.075864, 0.107696, 0.156504, 0.206373, 0.289135, 0.394179, 0.568376
gi_vh_panning_A200648 ftgen 0, 0, 17, -2, -24.53508, -20.01293, -16.54915, -13.75889, -10.39133, -8.082145, -5.388095, -2.501617, 0, 2.886480, 5.772962, 8.467008, 10.77619, 13.85510, 17.22266, 19.91671, 23.18805
gi_wavetable_0_A200648 ftgen 0, 0, 16384, 1, "falling_raw_charcoal_2.wav", 0, 0, 0
gi_lowest_integer = 1
gi_highest_integer = 13
instr A200648
i_duration = p3
i_integer = p4
i_azimuth = gi_origin+(i_integer-gi_lowest_integer)*gi_integer_width
k_amplitude table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_amplitude_A200648
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A200648
a_index lphasor 1
a_signal table a_index, gi_wavetable_0_A200648
a_panning = 1.0
vbapz 2, 0, a_panning, k_panning
a_0, a_1 delayst a_signal*k_amplitude, i_azimuth, gi_distance_to_speakers
a_p0 zar 0
a_p1 zar 1
a_0 = a_0*a_p0
a_1 = a_1*a_p1
outs a_0, a_1
endin