sr = 96000
kr = 96000
nchnls = 2
0dbfs = 1
zakinit 2, 1
vbaplsinit 2, 2, -30.0, 30.0
gi_origin_A167970 = -30.000000
gi_origin_A118276 = 30.000000
gi_integer_width = 0.000000
gi_distance_to_speakers = 1.27
gi_vh_amplitude_A167970 ftgen 0, 0, 17, -2, 0.007453, 0.003104, 0.003355, 0.003456, 0.004721, 0.006271, 0.007112, 0.009437, 0.010185, 0.011196, 0.018585, 0.034417, 0.049194, 0.067138, 0.093877, 0.126949, 0.174798
gi_vh_amplitude_A118276 ftgen 0, 0, 17, -2, 0.007453, 0.003104, 0.003355, 0.003456, 0.004721, 0.006271, 0.007112, 0.009437, 0.010185, 0.011196, 0.018585, 0.034417, 0.049194, 0.067138, 0.093877, 0.126949, 0.174798
gi_vh_panning_A167970 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_A118276 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_A167970 ftgen 0, 0, 0, 1, "pressed_voice_two.wav", 0, 0, 0
gi_wavetable_0_A118276 ftgen 0, 0, 0, 1, "pressed_voice_two.wav", 0, 0, 0
gi_lowest_integer = 1
gi_highest_integer = 76
gi_base_frequency = 104.500000
gi_attack_from = .0055
gi_attack_to = .0034
gi_release_from = .0089
gi_release_to = .0055
instr A167970
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_A167970
k_amplitude table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_amplitude_A167970
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A167970
i_wavetable_0_A167970 ftgenonce 0, 0, 8192, 30, gi_wavetable_0_A167970, 1, floor((sr/2)/i_frequency)
a_signal poscil3 k_amplitude, i_frequency, i_wavetable_0_A167970
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 A118276
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_A118276
k_amplitude table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_amplitude_A118276
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A118276
i_wavetable_0_A118276 ftgenonce 0, 0, 8192, 30, gi_wavetable_0_A118276, 1, floor((sr/2)/i_frequency)
a_signal poscil3 k_amplitude, i_frequency, i_wavetable_0_A118276
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