sr = 96000
kr = 96000
nchnls = 2
0dbfs = 1
zakinit 2, 1
vbaplsinit 2, 2, -30.0, 30.0
gi_origin = 25.461894
gi_integer_width = -4.243649
gi_distance_to_speakers = 1.27
gi_vh_amplitude_A035612 ftgen 0, 0, 17, -2, 1.558240, 0.953477, 0.865689, 0.846180, 0.816918, 0.899829, 0.797409, 0.992494, 1.197333, 1.382664, 1.470452, 1.611889, 1.811851, 1.933779, 2.080092, 2.314194, 2.616576
gi_vh_panning_A035612 ftgen 0, 0, 17, -2, 26.32368, 22.98099, 19.22046, 16.40007, 13.16184, 10.02806, 6.163082, 3.133773, 0, -3.342689, -6.058626, -9.296854, -12.63954, -15.77331, -18.90708, -22.35423, -24.86125
gi_wavetable_0_A035612 ftgen 0, 0, 16384, 1, "lodge_minipan_three.wav", 0, 0, 0
gi_lowest_integer = 1
gi_highest_integer = 13
gi_base_frequency = 195.000000
gi_resonance_filter_bandwidth_from = 9
gi_resonance_filter_bandwidth_to = 6
instr A035612
i_duration = p3
i_integer = p4
i_azimuth = gi_origin+(i_integer-gi_lowest_integer)*gi_integer_widthA035612
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_A035612
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A035612
a_index lphasor 1
a_signal table a_index, gi_wavetable_0_A035612
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