sr = 96000
kr = 96000
nchnls = 2
0dbfs = 1
zakinit 2, 1
vbaplsinit 2, 2, -30.0, 30.0
gi_origin = -24.214781
gi_integer_width = 0.049117
gi_distance_to_speakers = 1.27
gi_vh_amplitude_A019586 ftgen 0, 0, 17, -2, 0.004273, 0.007625, 0.013100, 0.023658, 0.039814, 0.060002, 0.081196, 0.103742, 0.132478, 0.165426, 0.217948, 0.241691, 0.281196, 0.333657, 0.412820, 0.489551, 0.570085
gi_vh_panning_A019586 ftgen 0, 0, 17, -2, -24.33895, -20.86196, -17.78234, -14.70271, -11.32506, -8.742156, -5.960561, -3.026847, 0, 3.038947, 5.980561, 9.080542, 12.21915, 15.29877, 18.97445, 22.35210, 26.02778
gi_wavetable_0_A019586 ftgen 0, 0, 16384, 1, "raw_charcoal_4.wav", 0, 0, 0
gi_lowest_integer = 0
gi_highest_integer = 986
instr A019586
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_A019586
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A019586
a_index lphasor 1
a_signal table a_index, gi_wavetable_0_A019586
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