sr = 96000
kr = 96000
nchnls = 2
0dbfs = 1
zakinit 2, 1
vbaplsinit 2, 2, -30.0, 30.0
gi_origin = -25.461894
gi_integer_width = 1.543145
gi_distance_to_speakers = 1.27
gi_vh_amplitude_A103344 ftgen 0, 0, 17, -2, 0.007692, 0.011838, 0.018069, 0.033023, 0.051715, 0.067915, 0.092838, 0.117761, 0.141438, 0.172592, 0.209976, 0.243623, 0.281007, 0.352038, 0.433038, 0.525253, 0.639899
gi_vh_panning_A103344 ftgen 0, 0, 17, -2, -26.63705, -23.29436, -20.05613, -16.92236, -13.57967, -10.13252, -6.789838, -3.342689, 0, 2.820392, 5.954166, 8.879016, 12.32616, 15.56439, 18.59371, 21.83193, 24.65233
gi_wavetable_0_A103344 ftgen 0, 0, 16384, 1, "cluck_four.wav", 0, 0, 0
gi_lowest_integer = 1
gi_highest_integer = 34
instr A103344
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_A103344
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A103344
a_index lphasor 1
a_signal table a_index, gi_wavetable_0_A103344
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