sr = 96000
kr = 96000
nchnls = 2
0dbfs = 1
zakinit 2, 1
vbaplsinit 2, 2, -30.0, 30.0
gi_origin = -25.600462
gi_integer_width = 0.058582
gi_distance_to_speakers = 1.27
gi_vh_amplitude_A066853 ftgen 0, 0, 17, -2, 0.012820, 0.035042, 0.048717, 0.074358, 0.093162, 0.123931, 0.142735, 0.175213, 0.211111, 0.241880, 0.274358, 0.318803, 0.370085, 0.436752, 0.530769, 0.626495, 0.775213
gi_vh_panning_A066853 ftgen 0, 0, 17, -2, -27.20213, -22.89600, -18.90495, -15.75412, -11.76308, -8.087120, -4.831266, -2.730714, 0, 3.200057, 6.400115, 9.600172, 13.23346, 16.27927, 19.32506, 23.10606, 26.57196
gi_wavetable_0_A066853 ftgen 0, 0, 16384, 1, "burning_charcoal_6.wav", 0, 0, 0
gi_lowest_integer = 1
gi_highest_integer = 875
instr A066853
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_A066853
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A066853
a_index lphasor 1
a_signal table a_index, gi_wavetable_0_A066853
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