sr = 96000
kr = 96000
nchnls = 2
0dbfs = 1
zakinit 2, 1
vbaplsinit 2, 2, -30.0, 30.0
gi_origin = -27.817552
gi_integer_width = 0.389057
gi_distance_to_speakers = 1.27
gi_vh_amplitude_A199538 ftgen 0, 0, 17, -2, 0.001256, 0.002856, 0.006300, 0.011514, 0.014555, 0.025575, 0.037125, 0.051976, 0.075076, 0.101477, 0.137778, 0.175729, 0.235130, 0.324232, 0.424885, 0.565138, 0.827494
gi_vh_panning_A199538 ftgen 0, 0, 17, -2, -29.55793, -26.02010, -22.48228, -18.25972, -14.95014, -11.64057, -7.646261, -3.537822, 0, 3.537822, 6.733276, 9.586357, 13.01005, 16.66200, 19.51508, 22.82465, 25.33537
gi_wavetable_0_A199538 ftgen 0, 0, 16384, 1, "cole_bluebonnet_1.wav", 0, 0, 0
gi_lowest_integer = 1
gi_highest_integer = 144
instr A199538
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_A199538
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A199538
a_index lphasor 1
a_signal table a_index, gi_wavetable_0_A199538
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