sr = 96000
kr = 96000
nchnls = 2
0dbfs = 1
zakinit 2, 1
vbaplsinit 2, 2, -30.0, 30.0
gi_origin_A102364 = -30.000000
gi_origin_A117479 = 30.000000
gi_integer_width = 0.000000
gi_distance_to_speakers = 1.27
gi_vh_amplitude_A102364 ftgen 0, 0, 17, -2, 0.008428, 0.010044, 0.012353, 0.014201, 0.017434, 0.019050, 0.022976, 0.028056, 0.020666, 0.039832, 0.046529, 0.056920, 0.062462, 0.078395, 0.083706, 0.101025, 0.110723
gi_vh_amplitude_A117479 ftgen 0, 0, 17, -2, 0.008428, 0.010044, 0.012353, 0.014201, 0.017434, 0.019050, 0.022976, 0.028056, 0.020666, 0.039832, 0.046529, 0.056920, 0.062462, 0.078395, 0.083706, 0.101025, 0.110723
gi_vh_panning_A102364 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_A117479 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_A102364 ftgen 0, 0, 0, 1, "glottal_pulse_four.wav", 0, 0, 0
gi_wavetable_0_A117479 ftgen 0, 0, 0, 1, "glottal_pulse_four.wav", 0, 0, 0
gi_lowest_integer = 1
gi_highest_integer = 14
gi_base_frequency = 120.000000
gi_attack_from = .0055
gi_attack_to = .0034
gi_release_from = .0089
gi_release_to = .0055
instr A102364
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_A102364
k_amplitude table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_amplitude_A102364
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A102364
i_wavetable_0_A102364 ftgenonce 0, 0, 8192, 30, gi_wavetable_0_A102364, 1, floor((sr/2)/i_frequency)
a_signal poscil3 k_amplitude, i_frequency, i_wavetable_0_A102364
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 A117479
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_A117479
k_amplitude table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_amplitude_A117479
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A117479
i_wavetable_0_A117479 ftgenonce 0, 0, 8192, 30, gi_wavetable_0_A117479, 1, floor((sr/2)/i_frequency)
a_signal poscil3 k_amplitude, i_frequency, i_wavetable_0_A117479
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