sr = 96000
kr = 96000
nchnls = 2
0dbfs = 1
zakinit 2, 1
vbaplsinit 2, 2, -30.0, 30.0
gi_origin = 22.274827
gi_integer_width = -1.086577
gi_distance_to_speakers = 1.27
gi_vh_amplitude_A104450 ftgen 0, 0, 17, -2, 0.005982, 0.012820, 0.017948, 0.027000, 0.033333, 0.049153, 0.079615, 0.112846, 0.141923, 0.184846, 0.231923, 0.288692, 0.374538, 0.447923, 0.552991, 0.669461, 0.843589
gi_vh_panning_A104450 ftgen 0, 0, 17, -2, 24.16967, 20.85243, 17.42462, 14.50403, 10.23229, 8.146100, 5.364503, 3.026847, 0, -2.582908, -5.464298, -8.007513, -10.10842, -13.64681, -16.63232, -19.61783, -23.48794
gi_wavetable_0_A104450 ftgen 0, 0, 16384, 1, "burning_charcoal_13.wav", 0, 0, 0
gi_lowest_integer = 1
gi_highest_integer = 42
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