sr = 96000
kr = 96000
nchnls = 2
0dbfs = 1
zakinit 2, 1
vbaplsinit 2, 2, -30.0, 30.0
gi_origin = -24.422633
gi_integer_width = 1.953811
gi_distance_to_speakers = 1.27
gi_vh_amplitude_A116403 ftgen 0, 0, 17, -2, 6.561484, 3.672780, 2.116417, 1.479723, 1.184958, 1.031679, 0.831239, 0.689751, 0.477520, 0.312451, 0.453939, 0.630798, 0.819448, 1.019889, 1.243911, 1.503305, 1.574048
gi_vh_panning_A116403 ftgen 0, 0, 17, -2, -27.05276, -23.54592, -19.83869, -16.83282, -13.62657, -10.42032, -7.414461, -3.907621, 0, 2.805469, 5.911529, 8.616806, 11.52247, 14.32794, 17.53419, 20.54005, 23.54592
gi_wavetable_0_A116403 ftgen 0, 0, 16384, 1, "le_creuset_pan_one.wav", 0, 0, 0
gi_lowest_integer = 1
gi_highest_integer = 26
gi_base_frequency = 99.000000
gi_resonance_filter_bandwidth_from = 16
gi_resonance_filter_bandwidth_to = 11
instr A116403
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_A116403
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A116403
a_index lphasor 1
a_signal table a_index, gi_wavetable_0_A116403
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