sr = 96000
kr = 96000
nchnls = 2
0dbfs = 1
zakinit 2, 1
vbaplsinit 2, 2, -30.0, 30.0
gi_origin = -27.886836
gi_integer_width = 2.230947
gi_distance_to_speakers = 1.27
gi_vh_amplitude_A104450 ftgen 0, 0, 17, -2, 0.002564, 0.004127, 0.009341, 0.014555, 0.021508, 0.040191, 0.069738, 0.103195, 0.143170, 0.187179, 0.240170, 0.308547, 0.387179, 0.476068, 0.612820, 0.717094, 0.862393
gi_vh_panning_A104450 ftgen 0, 0, 17, -2, -27.88683, -22.76709, -20.47894, -17.04672, -12.58482, -9.267011, -6.178007, -2.974596, 0, 3.889858, 6.978858, 10.41108, 13.50009, 17.27553, 20.47895, 24.36880, 28.94510
gi_wavetable_0_A104450 ftgen 0, 0, 16384, 1, "burning_charcoal_22.wav", 0, 0, 0
gi_lowest_integer = 1
gi_highest_integer = 26
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