sr = 96000
kr = 96000
nchnls = 2
0dbfs = 1
zakinit 2, 1
vbaplsinit 2, 2, -30.0, 30.0
gi_origin = -27.263279
gi_integer_width = 1.652320
gi_distance_to_speakers = 1.27
gi_vh_amplitude_A103344 ftgen 0, 0, 17, -2, 0.000841, 0.003806, 0.007435, 0.022077, 0.040347, 0.063186, 0.072321, 0.107340, 0.140837, 0.178901, 0.220010, 0.273300, 0.344861, 0.405763, 0.489504, 0.591516, 0.734637
gi_vh_panning_A103344 ftgen 0, 0, 17, -2, -29.52822, -24.38315, -19.79733, -16.33000, -13.08637, -9.842742, -6.822811, -3.355482, 2.842170, 3.243629, 6.263561, 9.283496, 13.42192, 15.88260, 19.57363, 22.36986, 24.83055
gi_wavetable_0_A103344 ftgen 0, 0, 16384, 1, "cole_bluebonnet_6.wav", 0, 0, 0
gi_lowest_integer = 1
gi_highest_integer = 34
instr A103344
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_A103344
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A103344
a_index lphasor 1
a_signal table a_index, gi_wavetable_0_A103344
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