sr = 96000
kr = 96000
nchnls = 2
0dbfs = 1
zakinit 2, 1
vbaplsinit 2, 2, -30.0, 30.0
gi_origin = 26.709007
gi_integer_width = -0.809364
gi_distance_to_speakers = 1.27
gi_vh_amplitude_A000121 ftgen 0, 0, 17, -2, 0.012820, 0.023076, 0.029914, 0.042794, 0.047008, 0.061229, 0.069230, 0.090197, 0.108547, 0.137600, 0.171794, 0.207388, 0.265811, 0.319313, 0.421367, 0.519460, 0.664102
gi_vh_panning_A000121 ftgen 0, 0, 17, -2, 26.84597, 23.12041, 19.72357, 15.88843, 12.49159, 9.642635, 6.684101, 3.725563, 0, -3.944715, -6.574523, -10.62881, -13.80650, -17.20334, -20.70975, -24.21616, -26.84597
gi_wavetable_0_A000121 ftgen 0, 0, 16384, 1, "clap_nine.wav", 0, 0, 0
gi_lowest_integer = 2
gi_highest_integer = 68
instr A000121
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_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_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