sr = 96000
kr = 96000
nchnls = 2
0dbfs = 1
zakinit 2, 1
vbaplsinit 2, 2, -30.0, 30.0
gi_origin = -27.471132
gi_integer_width = 4.578522
gi_distance_to_speakers = 1.27
gi_vh_amplitude_A003263 ftgen 0, 0, 17, -2, 0.084615, 0.096068, 0.111965, 0.124684, 0.135897, 0.147517, 0.158119, 0.172105, 0.187179, 0.199085, 0.211111, 0.233425, 0.255555, 0.274305, 0.293162, 0.318803, 0.337606
gi_vh_panning_A003263 ftgen 0, 0, 17, -2, -29.07713, -25.47067, -21.97690, -17.16945, -15.32748, -11.83371, -7.889144, -3.831871, -2.842170, 2.930255, 5.747806, 9.579677, 13.73556, 17.01801, 19.49745, 23.10392, 25.58337
gi_wavetable_0_A003263 ftgen 0, 0, 16384, 1, "snap_twelve.wav", 0, 0, 0
gi_lowest_integer = 1
gi_highest_integer = 13
instr A003263
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_A003263
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A003263
a_index lphasor 1
a_signal table a_index, gi_wavetable_0_A003263
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