sr = 96000
kr = 96000
nchnls = 2
0dbfs = 1
zakinit 2, 1
vbaplsinit 2, 2, -30.0, 30.0
gi_origin = -26.154734
gi_integer_width = 0.083964
gi_distance_to_speakers = 1.27
gi_vh_wavetable_A001175 ftgen 0, 0, 17, -2, 0.964957, 0.899999, 0.824786, 0.771794, 0.720512, 0.667521, 0.612820, 0.552991, 0.493162, 0.447008, 0.385470, 0.329059, 0.270940, 0.216239, 0.176923, 0.118803, 0.045299
gi_vh_amplitude_A001175 ftgen 0, 0, 17, -2, 0.004273, 0.014529, 0.021367, 0.043589, 0.062393, 0.103418, 0.132478, 0.178632, 0.233333, 0.260683, 0.308547, 0.375213, 0.411111, 0.488034, 0.513675, 0.559829, 0.650427
gi_vh_panning_A001175 ftgen 0, 0, 17, -2, -26.61076, -22.31870, -18.67045, -14.59300, -11.15935, -8.369514, -5.472373, -2.682535, 0, 3.269341, 6.223487, 10.08633, 13.09078, 16.52442, 19.95807, 23.60632, 26.93266
gi_wavetable_0_A001175 ftgen 0, 0, 16384, 1, "burning_charcoal_4.wav", 0, 0, 0
gi_wavetable_1_A001175 ftgen 0, 0, 16384, 1, "burning_charcoal_5.wav", 0, 0, 0
gi_lowest_integer = 1
gi_highest_integer = 624
instr A001175
i_duration = p3
i_integer = p4
i_azimuth = gi_origin+(i_integer-gi_lowest_integer)*gi_integer_width
k_wavetable table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_wavetable_A001175
k_amplitude table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_amplitude_A001175
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A001175
a_index lphasor 1
a_signal table a_index, gi_wavetable_0_A001175
a_wavetable_1 table a_index, gi_wavetable_1_A001175
a_signal sum a_signal*k_wavetable, a_wavetable_1*(1-k_wavetable)
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