sr = 96000
kr = 96000
nchnls = 2
0dbfs = 1
zakinit 2, 1
vbaplsinit 2, 2, -30.0, 30.0
gi_origin = -24.976905
gi_integer_width = 3.568129
gi_distance_to_speakers = 1.27
gi_vh_amplitude_A199088 ftgen 0, 0, 17, -2, 0.006985, 0.007154, 0.007154, 0.007996, 0.008332, 0.008837, 0.010521, 0.012204, 0.012877, 0.014897, 0.017927, 0.020789, 0.023819, 0.029543, 0.037118, 0.046545, 0.059002
gi_vh_panning_A199088 ftgen 0, 0, 17, -2, -24.69511, -21.31362, -18.03460, -15.16546, -12.39879, -9.119771, -6.148160, -3.122113, 0, 3.586429, 6.455570, 9.632122, 12.91113, 15.98521, 19.16176, 22.64572, 26.33462
gi_wavetable_0_A199088 ftgen 0, 0, 0, 1, "lip_flapping_six.wav", 0, 0, 0
gi_lowest_integer = 2
gi_highest_integer = 16
gi_base_frequency = 218.000000
gi_attack_from = .0089
gi_release_from = .0055
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 A199088
i_duration = p3
i_integer = p4
i_multiplier pow gi_temperament, i_integer-gi_lowest_integer
i_frequency = gi_base_frequency*i_multiplier
i_attack = gi_attack_from
i_release = gi_release_from
i_azimuth = gi_origin+(i_integer-gi_lowest_integer)*gi_integer_width
k_amplitude table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_amplitude_A199088
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A199088
i_wavetable_0_A199088 ftgenonce 0, 0, 8192, 30, gi_wavetable_0_A199088, 1, floor((sr/2)/i_frequency)
a_signal poscil3 k_amplitude, i_frequency, i_wavetable_0_A199088
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