sr = 96000
kr = 96000
nchnls = 2
0dbfs = 1
zakinit 2, 1
vbaplsinit 2, 2, -30.0, 30.0
gi_origin = 23.521940
gi_integer_width = -1.425572
gi_distance_to_speakers = 1.27
gi_vh_amplitude_A000119 ftgen 0, 0, 17, -2, 0.002575, 0.005703, 0.010669, 0.026528, 0.041575, 0.068112, 0.095291, 0.132640, 0.173504, 0.220110, 0.270940, 0.329090, 0.405982, 0.499730, 0.585470, 0.667502, 0.749237
gi_vh_panning_A000119 ftgen 0, 0, 17, -2, 24.31806, 21.23005, 18.23855, 15.34354, 12.15903, 9.167524, 6.176015, 3.184509, 0, -2.940242, -5.880485, -8.492023, -11.29053, -14.08903, -17.37004, -20.45805, -23.25656
gi_wavetable_0_A000119 ftgen 0, 0, 16384, 1, "cole_bluebonnet_8.wav", 0, 0, 0
gi_lowest_integer = 1
gi_highest_integer = 34
instr A000119
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_A000119
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A000119
a_index lphasor 1
a_signal table a_index, gi_wavetable_0_A000119
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