sr = 96000
kr = 96000
nchnls = 2
0dbfs = 1
zakinit 2, 1
vbaplsinit 2, 2, -30.0, 30.0
gi_origin = 23.799076
gi_integer_width = -7.933025
gi_distance_to_speakers = 1.27
gi_vh_amplitude_A200650 ftgen 0, 0, 17, -2, 14.55802, 12.60286, 11.28180, 9.802226, 8.164118, 7.160117, 6.526010, 6.050430, 5.310640, 4.623691, 4.095270, 3.936743, 3.514005, 3.249794, 3.144110, 2.827057, 2.774214
gi_vh_panning_A200650 ftgen 0, 0, 17, -2, 22.35892, 19.33217, 16.59833, 13.47393, 10.44718, 7.908615, 5.272411, 2.929115, 0, -2.636205, -6.053508, -9.275537, -12.10701, -15.42668, -18.94162, -21.77310, -24.70222
gi_wavetable_0_A200650 ftgen 0, 0, 16384, 1, "glottal_pulse_one.wav", 0, 0, 0
gi_lowest_integer = 1
gi_highest_integer = 7
gi_base_frequency = 485.000000
gi_resonance_filter_bandwidth_from = 17
gi_resonance_filter_bandwidth_to = 11
gi_golden_ratio = (sqrt(5)-1)/2
gi_power_of_golden_ratio pow gi_golden_ratio, 5
gi_temperament = gi_power_of_golden_ratio+1
instr A200650
i_duration = p3
i_integer = p4
i_azimuth = gi_origin+(i_integer-gi_lowest_integer)*gi_integer_width
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_A200650
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A200650
a_index lphasor 1
a_signal table a_index, gi_wavetable_0_A200650
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