sr = 96000
kr = 96000
nchnls = 2
0dbfs = 1
zakinit 2, 1
vbaplsinit 2, 2, -30.0, 30.0
gi_origin = 22.967667
gi_integer_width = -1.391980
gi_distance_to_speakers = 1.27
gi_vh_amplitude_A104450 ftgen 0, 0, 17, -2, 0.000854, 0.006132, 0.004273, 0.011037, 0.012820, 0.029024, 0.036752, 0.062546, 0.079487, 0.105061, 0.135897, 0.170469, 0.202564, 0.235060, 0.274305, 0.320908, 0.375213
gi_vh_panning_A104450 ftgen 0, 0, 17, -2, 22.96766, 20.16443, 14.98198, 12.06097, 9.234180, 6.972747, 4.240182, 1.790300, 0, -2.870958, -5.741916, -8.574596, -11.40138, -14.22817, -17.05496, -19.78752, -22.33163
gi_wavetable_0_A104450 ftgen 0, 0, 16384, 1, "cole_bluebonnet_10.wav", 0, 0, 0
gi_lowest_integer = 1
gi_highest_integer = 34
instr A104450
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_A104450
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A104450
a_index lphasor 1
a_signal table a_index, gi_wavetable_0_A104450
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