sr = 96000
kr = 96000
nchnls = 2
0dbfs = 1
zakinit 2, 1
vbaplsinit 2, 2, -30.0, 30.0
gi_origin = -24.491917
gi_integer_width = 1.484359
gi_distance_to_speakers = 1.27
gi_vh_amplitude_A104450 ftgen 0, 0, 17, -2, 0.003679, 0.004471, 0.007027, 0.015970, 0.021907, 0.046634, 0.070980, 0.093907, 0.116548, 0.153956, 0.198920, 0.243391, 0.293219, 0.358379, 0.453047, 0.561525, 0.710679
gi_vh_panning_A104450 ftgen 0, 0, 17, -2, -25.42135, -22.40696, -19.19161, -16.27770, -12.96187, -9.746526, -6.531177, -3.416309, 0, 3.061489, 6.122979, 8.842212, 11.75611, 14.77051, 17.88537, 21.20121, 23.91415
gi_wavetable_0_A104450 ftgen 0, 0, 16384, 1, "knuckle_eighteen.wav", 0, 0, 0
gi_lowest_integer = 1
gi_highest_integer = 34
instr A104450
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_A104450
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A104450
a_index lphasor 1
a_signal table a_index, gi_wavetable_0_A104450
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