sr = 96000
kr = 96000
nchnls = 2
0dbfs = 1
zakinit 2, 1
vbaplsinit 2, 2, -30.0, 30.0
gi_origin = -27.956120
gi_integer_width = 1.363713
gi_distance_to_speakers = 1.27
gi_vh_amplitude_A003263 ftgen 0, 0, 17, -2, 0.001853, 0.004523, 0.006549, 0.010040, 0.015998, 0.023221, 0.033651, 0.056565, 0.083954, 0.128016, 0.170886, 0.225666, 0.291162, 0.359041, 0.457881, 0.540050, 0.747863
gi_vh_panning_A003263 ftgen 0, 0, 17, -2, -28.67294, -25.46157, -22.25020, -18.46537, -14.90993, -11.23979, -7.684349, -4.472978, 0, 3.440753, 6.537429, 10.55164, 13.53363, 17.31845, 20.64451, 24.31465, 27.18194
gi_wavetable_0_A003263 ftgen 0, 0, 16384, 1, "knuckle_nineteen.wav", 0, 0, 0
gi_lowest_integer = 1
gi_highest_integer = 42
instr A003263
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_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_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