sr = 96000
kr = 96000
nchnls = 2
0dbfs = 1
zakinit 2, 1
vbaplsinit 2, 2, -30.0, 30.0
gi_origin_A001175 = -27.949116
gi_origin_A001177 = 4.570276
gi_integer_width = 0.015596
gi_distance_to_speakers = 1.27
gi_vh_amplitude_A001175 ftgen 0, 0, 17, -2, 2.933321, 3.002442, 3.054282, 3.149324, 3.261646, 3.296206, 3.313486, 3.330766, 3.451728, 3.477648, 3.469008, 3.460368, 3.486288, 3.555409, 3.650451, 3.771413, 3.909655
gi_vh_amplitude_A001177 ftgen 0, 0, 17, -2, 2.450640, 2.459194, 2.519070, 2.553285, 2.596053, 2.655929, 2.698698, 2.750020, 2.827004, 2.809896, 2.835557, 2.801342, 2.809896, 2.886880, 3.006632, 3.109277, 3.297458
gi_vh_panning_A001175 ftgen 0, 0, 17, -2, -27.48153, -26.33057, -25.02676, -23.74092, -22.35018, -21.05535, -19.56869, -18.32182, -16.88313, -15.54034, -14.00573, -12.61499, -11.12833, -9.833511, -8.442770, -7.099987, -5.757200
gi_vh_panning_A001177 ftgen 0, 0, 17, -2, 4.462373, 6.031453, 7.627509, 8.953808, 10.40899, 11.87616, 13.33734, 14.79851, 16.25969, 17.72087, 19.04117, 20.62374, 21.87061, 23.35727, 24.84392, 26.04283, 27.33766
gi_wavetable_0_A001175 ftgen 0, 0, 16384, 1, "lodge_minipan_four.wav", 0, 0, 0
gi_wavetable_0_A001177 ftgen 0, 0, 16384, 1, "lodge_minipan_six.wav", 0, 0, 0
gi_lowest_integer = 1
gi_highest_integer = 1500
gi_base_frequency = 434.000000
gi_resonance_filter_bandwidth_from = 14
gi_resonance_filter_bandwidth_to = 6
gi_golden_ratio = (sqrt(5)-1)/2
gi_power_of_golden_ratio pow gi_golden_ratio, 15
gi_temperament = gi_power_of_golden_ratio+1
instr A001175
i_duration = p3
i_integer = p4
i_azimuth = (i_integer-gi_lowest_integer)*gi_integer_width+gi_origin_A001175
i_multiplier pow gi_temperament, i_integer-gi_lowest_integer
i_frequency = gi_base_frequency*i_multiplier
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_A001175
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A001175
a_index lphasor 1
a_signal table a_index, gi_wavetable_0_A001175
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
instr A001177
i_duration = p3
i_integer = p4
i_azimuth = (i_integer-gi_lowest_integer)*gi_integer_width+gi_origin_A001177
i_multiplier pow gi_temperament, i_integer-gi_lowest_integer
i_frequency = gi_base_frequency*i_multiplier
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_A001177
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A001177
a_index lphasor 1
a_signal table a_index, gi_wavetable_0_A001177
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