sr = 96000
kr = 96000
nchnls = 2
0dbfs = 1
zakinit 2, 1
vbaplsinit 2, 2, -30.0, 30.0
gi_origin = 28.510393
gi_integer_width = -0.398747
gi_distance_to_speakers = 1.27
gi_vh_amplitude_A199538 ftgen 0, 0, 17, -2, 0.001490, 0.005358, 0.009256, 0.014127, 0.022896, 0.034588, 0.051945, 0.068242, 0.094724, 0.145662, 0.206764, 0.290284, 0.385348, 0.49521, 0.595847, 0.707887, 0.870854
gi_vh_panning_A199538 ftgen 0, 0, 17, -2, 28.51039, 24.44583, 19.88417, 16.49216, 12.74925, 10.64387, 6.082218, 3.508968, 0, -3.563799, -7.134908, -11.11174, -15.08857, -18.94844, -22.34045, -25.61548, -29.47535
gi_wavetable_0_A199538 ftgen 0, 0, 16384, 1, "chip_clip_0.wav", 0, 0, 0
gi_lowest_integer = 1
gi_highest_integer = 144
instr A199538
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_A199538
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A199538
a_index lphasor 1
a_signal table a_index, gi_wavetable_0_A199538
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