sr = 96000
kr = 96000
nchnls = 2
0dbfs = 1
zakinit 2, 1
vbaplsinit 2, 2, -30.0, 30.0
gi_origin = -23.937644
gi_integer_width = 3.682715
gi_distance_to_speakers = 1.27
gi_vh_wavetable_A199088 ftgen 0, 0, 17, -2, 0.913675, 0.862393, 0.814529, 0.763247, 0.710256, 0.657264, 0.609401, 0.568376, 0.518803, 0.464102, 0.405982, 0.337606, 0.288034, 0.236752, 0.180341, 0.134188, 0.074358
gi_vh_amplitude_A199088 ftgen 0, 0, 17, -2, 0.587179, 0.499905, 0.451133, 0.504782, 0.529167, 0.563307, 0.577939, 0.621833, 0.675481, 0.729129, 0.768146, 0.841303, 0.924214, 0.792532, 1.133931, 1.241227, 1.363155
gi_vh_panning_A199088 ftgen 0, 0, 17, -2, -25.53348, -22.39090, -18.95370, -15.32009, -12.47212, -9.329544, -6.088754, -2.992205, 0, 2.651556, 5.499519, 8.151073, 11.29365, 14.33803, 17.08779, 19.93576, 22.58731
gi_wavetable_0_A199088 ftgen 0, 0, 16384, 1, "soda_can_thirteen.wav", 0, 0, 0
gi_wavetable_1_A199088 ftgen 0, 0, 16384, 1, "soda_can_twelve.wav", 0, 0, 0
gi_lowest_integer = 2
gi_highest_integer = 15
gi_base_frequency = 151.000000
gi_resonance_filter_bandwidth_from = 14
gi_resonance_filter_bandwidth_to = 9
instr A199088
i_duration = p3
i_integer = p4
i_azimuth = gi_origin+(i_integer-gi_lowest_integer)*gi_integer_width
i_frequency = gi_base_frequency*i_integer
i_resonance_filter_bandwidth = gi_resonance_filter_bandwidth_from+(i_integer-gi_lowest_integer)*((gi_resonance_filter_bandwidth_to-gi_resonance_filter_bandwidth_from)/(gi_highest_integer-gi_lowest_integer))
k_wavetable table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_wavetable_A199088
k_amplitude table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_amplitude_A199088
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A199088
a_index lphasor 1
a_signal table a_index, gi_wavetable_0_A199088
a_wavetable_1 table a_index, gi_wavetable_1_A199088
a_signal sum a_signal*k_wavetable, a_wavetable_1*(1-k_wavetable)
a_signal reson a_signal, i_frequency, i_resonance_filter_bandwidth*i_frequency*.01, 1
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