sr = 96000
kr = 96000
nchnls = 2
0dbfs = 1
zakinit 2, 1
vbaplsinit 2, 2, -30.0, 30.0
gi_origin = 23.660508
gi_integer_width = -2.366051
gi_distance_to_speakers = 1.27
gi_vh_amplitude_A167967 ftgen 0, 0, 17, -2, 0.005982, 0.011111, 0.017948, 0.026495, 0.045299, 0.076068, 0.091452, 0.161538, 0.202564, 0.243589, 0.276068, 0.332478, 0.402564, 0.476068, 0.604273, 0.749572, 0.942735
gi_vh_panning_A167967 ftgen 0, 0, 17, -2, 24.07305, 21.06391, 17.37530, 14.65738, 11.55118, 8.542049, 5.629985, 3.009130, 0, -2.814994, -5.915126, -8.872690, -11.64824, -14.94858, -18.63719, -22.42288, -26.11149
gi_wavetable_0_A167967 ftgen 0, 0, 16384, 1, "burning_charcoal_20.wav", 0, 0, 0
gi_lowest_integer = 1
gi_highest_integer = 21
instr A167967
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_A167967
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A167967
a_index lphasor 1
a_signal table a_index, gi_wavetable_0_A167967
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