sr = 96000
kr = 96000
nchnls = 2
0dbfs = 1
zakinit 2, 1
vbaplsinit 2, 2, -30.0, 30.0
gi_origin = -28.441109
gi_integer_width = 2.275289
gi_distance_to_speakers = 1.27
gi_vh_wavetable_A067595 ftgen 0, 0, 17, -2, 0.922222, 0.877777, 0.826495, 0.776923, 0.734188, 0.696581, 0.655555, 0.611111, 0.570085, 0.523931, 0.465811, 0.416239, 0.349572, 0.291453, 0.226495, 0.161538, 0.081196
gi_vh_amplitude_A067595 ftgen 0, 0, 17, -2, 0.047008, 0.064102, 0.081196, 0.103418, 0.115384, 0.137699, 0.153899, 0.178632, 0.201253, 0.235042, 0.282905, 0.334188, 0.383760, 0.433333, 0.488034, 0.554700, 0.609401
gi_vh_panning_A067595 ftgen 0, 0, 17, -2, -29.05368, -25.08651, -21.35270, -17.73558, -14.11845, -10.73469, -6.884206, -3.383764, 0, 3.150402, 6.184120, 8.984474, 12.60160, 15.86867, 18.78571, 21.70275, 25.08651
gi_wavetable_0_A067595 ftgen 0, 0, 16384, 1, "cutting_board_five.wav", 0, 0, 0
gi_wavetable_1_A067595 ftgen 0, 0, 16384, 1, "cutting_board_eight.wav", 0, 0, 0
gi_lowest_integer = 1
gi_highest_integer = 26
instr A067595
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_A067595
k_amplitude table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_amplitude_A067595
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A067595
a_index lphasor 1
a_signal table a_index, gi_wavetable_0_A067595
a_wavetable_1 table a_index, gi_wavetable_1_A067595
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