sr = 96000
kr = 96000
nchnls = 2
0dbfs = 1
zakinit 2, 1
vbaplsinit 2, 2, -30.0, 30.0
gi_origin_A035614 = -28.212792
gi_origin_A019586 = -12.817794
gi_origin_A098862 = 2.577204
gi_origin_A098861 = 17.972201
gi_integer_width = 0.016815
gi_distance_to_speakers = 1.27
gi_vh_amplitude_A035614 ftgen 0, 0, 17, -2, 2.345793, 2.363073, 2.371713, 2.383039, 2.414913, 2.436062, 2.475394, 2.508967, 2.545420, 2.613636, 2.725958, 2.827100, 2.959241, 3.095525, 3.251278, 3.426914, 3.624531
gi_vh_amplitude_A019586 ftgen 0, 0, 17, -2, 2.611673, 2.621704, 2.635236, 2.658525, 2.674510, 2.682364, 2.698693, 2.715430, 2.752251, 2.815893, 2.870876, 2.965132, 3.067243, 3.190755, 3.404987, 3.689512, 3.978382
gi_vh_amplitude_A098862 ftgen 0, 0, 17, -2, 2.925859, 2.949423, 2.988696, 3.027969, 3.082952, 3.145789, 3.185062, 3.247900, 3.310737, 3.373574, 3.444266, 3.546377, 3.672051, 3.805580, 3.986237, 4.182604, 4.488935
gi_vh_amplitude_A098861 ftgen 0, 0, 17, -2, 3.106516, 3.145789, 3.185062, 3.232445, 3.281743, 3.355689, 3.410464, 3.473455, 3.525492, 3.585744, 3.640632, 3.717204, 3.815799, 3.933565, 4.088348, 4.297819, 4.583191
gi_vh_panning_A035614 ftgen 0, 0, 17, -2, -28.38609, -27.69288, -27.04168, -26.36948, -25.73929, -25.15111, -24.56294, -23.82771, -23.17652, -22.58834, -21.89513, -21.34896, -20.78179, -20.13060, -19.56343, -18.72317, -17.96694
gi_vh_panning_A019586 ftgen 0, 0, 17, -2, -13.07512, -12.36090, -11.81474, -10.95348, -10.38631, -9.756120, -9.146936, -8.453727, -7.802530, -7.109321, -6.500137, -5.827934, -5.239757, -4.735605, -4.063402, -3.370192, -2.718997
gi_vh_panning_A098862 ftgen 0, 0, 17, -2, 2.340882, 3.034091, 3.727300, 4.399503, 5.029693, 5.617871, 6.227055, 6.836238, 7.592466, 8.180644, 8.852847, 9.462031, 10.11322, 10.80643, 11.43662, 12.06681, 12.69700
gi_vh_panning_A098861 ftgen 0, 0, 17, -2, 17.94594, 18.47109, 19.18531, 19.79450, 20.42469, 21.03387, 21.79010, 22.33626, 22.92444, 23.70167, 24.26885, 24.89904, 25.55023, 26.11740, 26.81061, 27.50382, 28.11301
gi_wavetable_0_A035614 ftgen 0, 0, 16384, 1, "snap_five.wav", 0, 0, 0
gi_wavetable_0_A019586 ftgen 0, 0, 16384, 1, "snap_one.wav", 0, 0, 0
gi_wavetable_0_A098862 ftgen 0, 0, 16384, 1, "snap_four.wav", 0, 0, 0
gi_wavetable_0_A098861 ftgen 0, 0, 16384, 1, "snap_three.wav", 0, 0, 0
gi_lowest_integer = 0
gi_highest_integer = 609
gi_base_frequency = 881.000000
gi_resonance_filter_bandwidth_from = 11
gi_resonance_filter_bandwidth_to = 6
gi_golden_ratio = (sqrt(5)-1)/2
gi_power_of_golden_ratio pow gi_golden_ratio, 12
gi_temperament = gi_power_of_golden_ratio+1
instr A035614
i_duration = p3
i_integer = p4
i_azimuth = (i_integer-gi_lowest_integer)*gi_integer_width+gi_origin_A035614
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_A035614
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A035614
a_index lphasor 1
a_signal table a_index, gi_wavetable_0_A035614
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 A019586
i_duration = p3
i_integer = p4
i_azimuth = (i_integer-gi_lowest_integer)*gi_integer_width+gi_origin_A019586
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_attack = gi_attack_from
k_amplitude table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_amplitude_A019586
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A019586
a_index lphasor 1
a_signal table a_index, gi_wavetable_0_A019586
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 A098862
i_duration = p3
i_integer = p4
i_azimuth = (i_integer-gi_lowest_integer)*gi_integer_width+gi_origin_A098862
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_attack = gi_attack_from
k_amplitude table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_amplitude_A098862
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A098862
a_index lphasor 1
a_signal table a_index, gi_wavetable_0_A098862
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 A098861
i_duration = p3
i_integer = p4
i_azimuth = (i_integer-gi_lowest_integer)*gi_integer_width+gi_origin_A098861
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_attack = gi_attack_from
k_amplitude table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_amplitude_A098861
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A098861
a_index lphasor 1
a_signal table a_index, gi_wavetable_0_A098861
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