sr = 96000
kr = 96000
nchnls = 2
0dbfs = 1
zakinit 2, 1
vbaplsinit 2, 2, -30.0, 30.0
gi_origin = -26.431871
gi_integer_width = 3.524249
gi_distance_to_speakers = 1.27
gi_vh_amplitude_A116403 ftgen 0, 0, 17, -2, 0.002564, 0.008584, 0.012820, 0.018396, 0.027389, 0.031623, 0.047008, 0.063717, 0.081805, 0.100580, 0.137606, 0.175213, 0.255555, 0.351282, 0.481196, 0.641880, 0.899999
gi_vh_panning_A116403 ftgen 0, 0, 17, -2, -26.56742, -22.55519, -18.54297, -14.74762, -11.92822, -8.458198, -5.530361, -2.927839, 0, 3.303983, 6.289428, 10.30165, 12.79573, 15.61513, 18.75985, 22.22988, 25.15772
gi_wavetable_0_A116403 ftgen 0, 0, 16384, 1, "raw_charcoal_18.wav", 0, 0, 0
gi_lowest_integer = 1
gi_highest_integer = 16
instr A116403
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_A116403
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A116403
a_index lphasor 1
a_signal table a_index, gi_wavetable_0_A116403
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