sr = 96000
kr = 96000
nchnls = 2
0dbfs = 1
zakinit 2, 1
vbaplsinit 2, 2, -30.0, 30.0
gi_origin_A199539 = -23.569036
gi_origin_A195164 = -5.350543
gi_origin_A035612 = 12.867951
gi_integer_width = 0.764363
gi_distance_to_speakers = 1.27
gi_vh_amplitude_A199539 ftgen 0, 0, 17, -2, 0.022043, 0.016589, 0.015680, 0.015680, 0.015074, 0.015832, 0.016135, 0.017498, 0.019013, 0.021589, 0.023104, 0.026588, 0.030224, 0.039163, 0.054616, 0.065828, 0.088629
gi_vh_amplitude_A195164 ftgen 0, 0, 17, -2, 0.027247, 0.024581, 0.021748, 0.020248, 0.017953, 0.016582, 0.015074, 0.014915, 0.015226, 0.019415, 0.024164, 0.028914, 0.034466, 0.043579, 0.052647, 0.066244, 0.091076
gi_vh_amplitude_A035612 ftgen 0, 0, 17, -2, 0.034372, 0.028689, 0.024106, 0.022456, 0.021723, 0.020073, 0.019523, 0.020806, 0.022089, 0.024473, 0.025756, 0.029789, 0.034372, 0.043538, 0.054354, 0.071952, 0.096700
gi_vh_panning_A199539 ftgen 0, 0, 17, -2, -23.56903, -22.90021, -22.23140, -21.56258, -20.89376, -20.22494, -19.55612, -18.88731, -18.21849, -17.54967, -16.76973, -16.11120, -15.54047, -14.79414, -14.06976, -13.32343, -12.70880
gi_vh_panning_A195164 ftgen 0, 0, 17, -2, -5.729196, -5.136521, -4.390189, -3.797513, -2.985328, -2.458505, -1.712173, -1.053645, -0.482920, 0.285362, 1.031694, 1.558516, 2.282897, 2.831672, 3.621906, 4.543846, 4.982864
gi_vh_panning_A035612 ftgen 0, 0, 17, -2, 13.38928, 14.04781, 14.61853, 15.32096, 15.97949, 16.55022, 17.25265, 17.75752, 18.48190, 19.27213, 19.99652, 20.56724, 21.29162, 22.03795, 22.65258, 23.15745, 24.10134
gi_wavetable_0_A199539 ftgen 0, 0, 0, 1, "bottle-cap_flipped_2.wav", 0, 0, 0
gi_wavetable_0_A195164 ftgen 0, 0, 0, 1, "bottle-cap_flipped_2.wav", 0, 0, 0
gi_wavetable_0_A035612 ftgen 0, 0, 0, 1, "bottle-cap_flipped_2.wav", 0, 0, 0
gi_lowest_integer = 1
gi_highest_integer = 15
gi_base_frequency = 130.000000
gi_attack_from = .0123
gi_attack_to = .0076
gi_release_from = .0144
gi_release_to = .0089
instr A199539
i_duration = p3
i_integer = p4
i_frequency = gi_base_frequency*i_integer
i_attack = gi_attack_from+(i_integer-gi_lowest_integer)*((gi_attack_to-gi_attack_from)/(gi_highest_integer-gi_lowest_integer))
i_release = gi_release_from+(i_integer-gi_lowest_integer)*((gi_release_to-gi_attack_from)/(gi_highest_integer-gi_lowest_integer))
i_azimuth = (i_integer-gi_lowest_integer)*gi_integer_width+gi_origin_A199539
k_amplitude table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_amplitude_A199539
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A199539
i_wavetable_0_A199539 ftgenonce 0, 0, 8192, 30, gi_wavetable_0_A199539, 1, floor((sr/2)/i_frequency)
a_signal poscil3 k_amplitude, i_frequency, i_wavetable_0_A199539
a_attack linen 1.0, i_attack, i_duration, 0.0
a_release linen 1.0, 0.0, i_duration, i_release
a_signal = a_signal*a_attack
a_panning = 1.0
vbapz 2, 0, a_panning, k_panning
a_0, a_1 delayst a_signal, 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_release, a_1*a_release
endin
instr A195164
i_duration = p3
i_integer = p4
i_frequency = gi_base_frequency*i_integer
i_attack = gi_attack_from+(i_integer-gi_lowest_integer)*((gi_attack_to-gi_attack_from)/(gi_highest_integer-gi_lowest_integer))
i_release = gi_release_from+(i_integer-gi_lowest_integer)*((gi_release_to-gi_attack_from)/(gi_highest_integer-gi_lowest_integer))
i_azimuth = (i_integer-gi_lowest_integer)*gi_integer_width+gi_origin_A195164
k_amplitude table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_amplitude_A195164
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A195164
i_wavetable_0_A195164 ftgenonce 0, 0, 8192, 30, gi_wavetable_0_A195164, 1, floor((sr/2)/i_frequency)
a_signal poscil3 k_amplitude, i_frequency, i_wavetable_0_A195164
a_attack linen 1.0, i_attack, i_duration, 0.0
a_release linen 1.0, 0.0, i_duration, i_release
a_signal = a_signal*a_attack
a_panning = 1.0
vbapz 2, 0, a_panning, k_panning
a_0, a_1 delayst a_signal, 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_release, a_1*a_release
endin
instr A035612
i_duration = p3
i_integer = p4
i_frequency = gi_base_frequency*i_integer
i_attack = gi_attack_from+(i_integer-gi_lowest_integer)*((gi_attack_to-gi_attack_from)/(gi_highest_integer-gi_lowest_integer))
i_release = gi_release_from+(i_integer-gi_lowest_integer)*((gi_release_to-gi_attack_from)/(gi_highest_integer-gi_lowest_integer))
i_azimuth = (i_integer-gi_lowest_integer)*gi_integer_width+gi_origin_A035612
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
i_wavetable_0_A035612 ftgenonce 0, 0, 8192, 30, gi_wavetable_0_A035612, 1, floor((sr/2)/i_frequency)
a_signal poscil3 k_amplitude, i_frequency, i_wavetable_0_A035612
a_attack linen 1.0, i_attack, i_duration, 0.0
a_release linen 1.0, 0.0, i_duration, i_release
a_signal = a_signal*a_attack
a_panning = 1.0
vbapz 2, 0, a_panning, k_panning
a_0, a_1 delayst a_signal, 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_release, a_1*a_release
endin