sr = 96000
kr = 96000
nchnls = 2
0dbfs = 1
zakinit 2, 1
vbaplsinit 2, 2, -30.0, 30.0
gi_origin = 28.371824
gi_integer_width = -0.396809
gi_distance_to_speakers = 1.27
gi_vh_amplitude_A167972 ftgen 0, 0, 17, -2, 0.001793, 0.003706, 0.006098, 0.011120, 0.019011, 0.029534, 0.038860, 0.049621, 0.064687, 0.084150, 0.107553, 0.140599, 0.176923, 0.227363, 0.291129, 0.411344, 0.633333
gi_vh_panning_A167972 ftgen 0, 0, 17, -2, 29.79768, 24.55981, 19.78752, 16.17921, 12.10531, 9.660968, 5.936256, 3.142723, 0, -3.546478, -7.092956, -11.29053, -14.31685, -17.69237, -21.41708, -24.79261, -29.21570
gi_wavetable_0_A167972 ftgen 0, 0, 16384, 1, "burning_charcoal_1.wav", 0, 0, 0
gi_lowest_integer = 1
gi_highest_integer = 144
instr A167972
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_A167972
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A167972
a_index lphasor 1
a_signal table a_index, gi_wavetable_0_A167972
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