sr = 96000
kr = 96000
nchnls = 2
0dbfs = 1
zakinit 2, 1
vbaplsinit 2, 2, -30.0, 30.0
gi_origin = 26.224018
gi_integer_width = -0.485630
gi_distance_to_speakers = 1.27
gi_vh_wavetable_A000121 ftgen 0, 0, 17, -2, 0.961538, 0.833333, 0.752991, 0.698290, 0.647008, 0.619658, 0.594017, 0.559829, 0.515384, 0.462393, 0.414529, 0.371794, 0.320512, 0.279487, 0.217948, 0.122222, 0.009401
gi_vh_amplitude_A000121 ftgen 0, 0, 17, -2, 0.005096, 0.008314, 0.019579, 0.019579, 0.028162, 0.038354, 0.045328, 0.057666, 0.069467, 0.077513, 0.085560, 0.092533, 0.102726, 0.113454, 0.130083, 0.147249, 0.164415
gi_vh_panning_A000121 ftgen 0, 0, 17, -2, 26.89642, 22.80817, 18.71991, 14.73924, 10.97374, 8.929615, 5.164112, 2.582054, 0, -3.550327, -6.885486, -10.32822, -14.52407, -18.18198, -22.16265, -26.14332, -29.47848
gi_wavetable_0_A000121 ftgen 0, 0, 16384, 1, "chip_clip_1.wav", 0, 0, 0
gi_wavetable_1_A000121 ftgen 0, 0, 16384, 1, "bottle-cap_flipped_0.wav", 0, 0, 0
gi_lowest_integer = 2
gi_highest_integer = 110
instr A000121
i_duration = p3
i_integer = p4
i_azimuth = gi_origin+(i_integer-gi_lowest_integer)*gi_integer_width
k_wavetable table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_wavetable_A000121
k_amplitude table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_amplitude_A000121
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A000121
a_index lphasor 1
a_signal table a_index, gi_wavetable_0_A000121
a_wavetable_1 table a_index, gi_wavetable_1_A000121
a_signal sum a_signal*k_wavetable, a_wavetable_1*(1-k_wavetable)
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