sr = 96000
kr = 96000
nchnls = 2
0dbfs = 1
zakinit 2, 1
vbaplsinit 2, 2, -30.0, 30.0
gi_origin = 23.036952
gi_integer_width = -3.839492
gi_distance_to_speakers = 1.27
gi_vh_amplitude_A200649 ftgen 0, 0, 17, -2, 3.989366, 3.222968, 2.338594, 2.273109, 2.142073, 2.189298, 2.102769, 2.217235, 2.220682, 2.971535, 3.674934, 4.480135, 5.404314, 6.351918, 7.683952, 9.201495, 12.05107
gi_vh_panning_A200649 ftgen 0, 0, 17, -2, 22.02096, 19.46917, 16.72837, 13.98756, 11.15224, 8.411437, 5.292591, 2.740806, 0, -3.307870, -6.048675, -9.167524, -11.90833, -14.64913, -17.86249, -20.79232, -23.91117
gi_wavetable_0_A200649 ftgen 0, 0, 16384, 1, "knuckle_one.wav", 0, 0, 0
gi_lowest_integer = 1
gi_highest_integer = 13
gi_base_frequency = 417.000000
gi_resonance_filter_bandwidth_from = 13
gi_resonance_filter_bandwidth_to = 9.5
instr A200649
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_amplitude table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_amplitude_A200649
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A200649
a_index lphasor 1
a_signal table a_index, gi_wavetable_0_A200649
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