sr = 96000
kr = 96000
nchnls = 2
0dbfs = 1
zakinit 2, 1
vbaplsinit 2, 2, -30.0, 30.0
gi_origin_A003263 = -30.000000
gi_origin_A103344 = 30.000000
gi_integer_width = 0.000000
gi_distance_to_speakers = 1.27
gi_vh_amplitude_A003263 ftgen 0, 0, 17, -2, 0.020456, 0.031966, 0.060380, 0.110105, 0.199758, 0.259281, 0.323214, 0.408457, 0.511576, 0.692602, 0.940327, 1.218269, 1.534730, 1.850490, 2.343509, 2.894721, 3.711364
gi_vh_amplitude_A103344 ftgen 0, 0, 17, -2, 0.020456, 0.031966, 0.060380, 0.110105, 0.199758, 0.259281, 0.323214, 0.408457, 0.511576, 0.692602, 0.940327, 1.218269, 1.534730, 1.850490, 2.343509, 2.894721, 3.711364
gi_vh_panning_A003263 ftgen 0, 0, 17, -2, -30, -30, -30, -30, -30, -30, -30, -30, -30, -30, -30, -30, -30, -30, -30, -30, -30
gi_vh_panning_A103344 ftgen 0, 0, 17, -2, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30
gi_wavetable_0_A003263 ftgen 0, 0, 16384, 1, "cole_1980_24.wav", 0, 0, 0
gi_wavetable_0_A103344 ftgen 0, 0, 16384, 1, "cole_1980_24.wav", 0, 0, 0
gi_lowest_integer = 1
gi_highest_integer = 26
gi_base_frequency = 850.000000
gi_resonance_filter_bandwidth_from = 12
gi_resonance_filter_bandwidth_to = 7
gi_release_from = .0089
gi_golden_ratio = (sqrt(5)-1)/2
gi_power_of_golden_ratio pow gi_golden_ratio, 7
gi_temperament = gi_power_of_golden_ratio+1
instr A003263
i_duration = p3
i_integer = p4
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))
i_release = gi_release_from
i_azimuth = (i_integer-gi_lowest_integer)*gi_integer_width+gi_origin_A003263
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_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 A103344
i_duration = p3
i_integer = p4
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))
i_release = gi_release_from
i_azimuth = (i_integer-gi_lowest_integer)*gi_integer_width+gi_origin_A103344
k_amplitude table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_amplitude_A103344
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A103344
a_index lphasor 1
a_signal table a_index, gi_wavetable_0_A103344
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