sr = 96000
kr = 96000
nchnls = 2
0dbfs = 1
zakinit 2, 1
vbaplsinit 2, 2, -30.0, 30.0
gi_origin_A103343 = -28.167970
gi_origin_A067595 = 5.690938
gi_integer_width = 0.864501
gi_distance_to_speakers = 1.27
gi_vh_amplitude_A103343 ftgen 0, 0, 17, -2, 1.108955, 1.183470, 1.246088, 1.296182, 1.358799, 1.421416, 1.496558, 1.596745, 1.673765, 1.772074, 1.834692, 1.959927, 2.135256, 2.260491, 2.460867, 2.623672, 2.927367
gi_vh_amplitude_A067595 ftgen 0, 0, 17, -2, 1.358799, 1.408893, 1.484034, 1.596746, 1.634316, 1.696934, 1.709457, 1.784598, 1.784598, 1.859739, 1.984974, 2.072639, 2.172827, 2.235445, 2.360680, 2.510962, 2.623673
gi_vh_panning_A103343 ftgen 0, 0, 17, -2, -28.27171, -26.79629, -25.22866, -23.84546, -22.37004, -20.94074, -19.46532, -18.12823, -16.79113, -15.45403, -14.02473, -12.82595, -11.53496, -10.15176, -8.999095, -7.846427, -6.647653
gi_vh_panning_A067595 ftgen 0, 0, 17, -2, 5.771624, 7.108719, 8.399708, 9.905381, 11.44275, 12.77984, 14.25526, 15.68457, 17.02166, 18.33426, 19.51143, 20.89463, 22.27783, 23.47661, 24.85981, 26.05858, 27.25736
gi_wavetable_0_A103343 ftgen 0, 0, 16384, 1, "soda_can_eleven.wav", 0, 0, 0
gi_wavetable_0_A067595 ftgen 0, 0, 16384, 1, "soda_can_eleven.wav", 0, 0, 0
gi_lowest_integer = 0
gi_highest_integer = 26
gi_base_frequency = 644.000000
gi_resonance_filter_bandwidth_from = 10
gi_resonance_filter_bandwidth_to = 5
gi_golden_ratio = (sqrt(5)-1)/2
gi_power_of_golden_ratio pow gi_golden_ratio, 6
gi_temperament = gi_power_of_golden_ratio+1
instr A103343
i_duration = p3
i_integer = p4
i_azimuth = (i_integer-gi_lowest_integer)*gi_integer_width+gi_origin_A103343
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_A103343
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A103343
a_index lphasor 1
a_signal table a_index, gi_wavetable_0_A103343
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 A067595
i_duration = p3
i_integer = p4
i_azimuth = (i_integer-gi_lowest_integer)*gi_integer_width+gi_origin_A067595
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_A067595
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A067595
a_index lphasor 1
a_signal table a_index, gi_wavetable_0_A067595
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