sr = 96000
kr = 96000
nchnls = 2
0dbfs = 1
zakinit 2, 1
vbaplsinit 2, 2, -30.0, 30.0
gi_origin = -26.085450
gi_integer_width = 0.023671
gi_distance_to_speakers = 1.27
gi_vh_amplitude_A022344 ftgen 0, 0, 17, -2, 0.002950, 0.003658, 0.009387, 0.013066, 0.021367, 0.038155, 0.054447, 0.081014, 0.108547, 0.128055, 0.159051, 0.191821, 0.224786, 0.262904, 0.304718, 0.367439, 0.445840
gi_vh_panning_A022344 ftgen 0, 0, 17, -2, -27.39641, -24.29291, -20.76134, -17.97889, -14.34031, -11.12979, -6.849102, -3.260681, 0, 2.247362, 5.029809, 9.524534, 10.80874, 15.83855, 18.19293, 20.97537, 24.50694
gi_wavetable_0_A022344 ftgen 0, 0, 16384, 1, "cole_1980_27.wav", 0, 0, 0
gi_lowest_integer = 1
gi_highest_integer = 2205
instr A022344
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_A022344
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A022344
a_index lphasor 1
a_signal table a_index, gi_wavetable_0_A022344
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