sr = 96000
kr = 96000
nchnls = 2
0dbfs = 1
zakinit 2, 1
vbaplsinit 2, 2, -30.0, 30.0
gi_origin = -25.115473
gi_integer_width = 2.511547
gi_distance_to_speakers = 1.27
gi_vh_amplitude_A003263 ftgen 0, 0, 17, -2, 24.25936, 6.197858, 4.458757, 3.040342, 2.176959, 1.486252, 1.251905, 1.091563, 0.938931, 0.938609, 0.915386, 0.881884, 0.832548, 0.783211, 0.780913, 0.783211, 0.795545
gi_vh_panning_A003263 ftgen 0, 0, 17, -2, -24.72908, -21.63794, -18.75288, -15.86782, -12.98276, -9.479480, -6.079231, -3.194171, 0, 3.297208, 6.388345, 9.685556, 12.87972, 15.86782, 18.85592, 22.35920, 25.86249
gi_wavetable_0_A003263 ftgen 0, 0, 16384, 1, "plastic_spoons_one.wav", 0, 0, 0
gi_lowest_integer = 1
gi_highest_integer = 21
gi_base_frequency = 110.100000
gi_resonance_filter_bandwidth_from = 10
instr A003263
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
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_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