sr = 96000
kr = 96000
nchnls = 2
0dbfs = 1
zakinit 2, 1
vbaplsinit 2, 2, -30.0, 30.0
gi_origin = -26.154734
gi_integer_width = 1.585135
gi_distance_to_speakers = 1.27
gi_vh_amplitude_A104451 ftgen 0, 0, 17, -2, 0.002682, 0.006388, 0.007549, 0.015680, 0.018003, 0.029618, 0.042394, 0.064463, 0.078401, 0.107438, 0.137637, 0.166674, 0.195712, 0.239849, 0.310700, 0.380390, 0.585470
gi_vh_panning_A104451 ftgen 0, 0, 17, -2, -28.64949, -25.10854, -21.67489, -17.81204, -14.48569, -11.26665, -7.511102, -3.862852, 0, 2.682537, 5.257770, 8.906021, 11.80316, 15.34410, 18.56315, 21.56759, 24.67933
gi_wavetable_0_A104451 ftgen 0, 0, 16384, 1, "cluck_nine.wav", 0, 0, 0
gi_lowest_integer = 1
gi_highest_integer = 34
instr A104451
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_A104451
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A104451
a_index lphasor 1
a_signal table a_index, gi_wavetable_0_A104451
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