sr = 96000
kr = 96000
nchnls = 2
0dbfs = 1
zakinit 2, 1
vbaplsinit 2, 2, -30.0, 30.0
gi_origin = 28.787529
gi_integer_width = -2.303002
gi_distance_to_speakers = 1.27
;vh_wavetable
gi_vh_amplitude_A116402 ftgen 0, 0, 17, -2, 0.001533, 0.003696, 0.006910, 0.010445, 0.016230, 0.024908, 0.041621, 0.065727, 0.094871, 0.144830, 0.254103, 0.285324, 0.351234, 0.483056, 0.536825, 0.698133, 0.881196
gi_vh_panning_A116402 ftgen 0, 0, 17, -2, 29.87997, 26.21879, 21.96710, 17.47919, 13.58180, 10.27493, 5.905132, 3.306877, 0, -3.598441, -7.086162, -10.74734, -13.69991, -17.36109, -21.14038, -24.68346, -28.46274
gi_wavetable_0_A116402 ftgen 0, 0, 16384, 1, "cole_1980_30.wav", 0, 0, 0
gi_lowest_integer = 1
gi_highest_integer = 26
instr A116402
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_A116402
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A116402
a_index lphasor 1
a_signal table a_index, gi_wavetable_0_A116402
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