sr = 96000
kr = 96000
nchnls = 2
0dbfs = 1
zakinit 2, 1
vbaplsinit 2, 2, -30.0, 30.0
gi_origin = -25.877598
gi_integer_width = 2.070208
gi_distance_to_speakers = 1.27
gi_vh_amplitude_A116402 ftgen 0, 0, 17, -2, 0.003278, 0.004891, 0.009848, 0.013370, 0.021197, 0.032285, 0.046213, 0.059849, 0.076516, 0.103790, 0.138639, 0.188640, 0.250763, 0.335614, 0.450768, 0.600771, 0.829914
gi_vh_panning_A116402 ftgen 0, 0, 17, -2, -27.28427, -21.86988, -17.09248, -13.80138, -11.14727, -8.599325, -5.732883, -2.760276, 0, 2.760278, 5.732881, 8.811651, 11.67809, 15.28768, 18.57879, 22.40071, 25.87759
gi_wavetable_0_A116402 ftgen 0, 0, 16384, 1, "raw_charcoal_20.wav", 0, 0, 0
gi_lowest_integer = 1
gi_highest_integer = 26
instr A116402
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_A116402
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A116402
a_index lphasor 1
a_signal table a_index, gi_wavetable_0_A116402
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