sr = 96000
kr = 96000
nchnls = 2
0dbfs = 1
zakinit 2, 1
vbaplsinit 2, 2, -30.0, 30.0
gi_origin = 22.898383
gi_integer_width = -7.632794
gi_distance_to_speakers = 1.27
gi_vh_amplitude_A200650 ftgen 0, 0, 17, -2, 0.250035, 0.209287, 0.179354, 0.156663, 0.139283, 0.122302, 0.111744, 0.098018, 0.085348, 0.074437, 0.063879, 0.050504, 0.040298, 0.032203, 0.021996, 0.013276, 0.005662
gi_vh_panning_A200650 ftgen 0, 0, 17, -2, 21.79456, 19.91572, 15.87621, 13.15189, 10.23968, 8.548732, 4.791046, 3.006145, 0, -3.100088, -6.669889, -10.42757, -13.24583, -16.34592, -18.97630, -22.35821, -25.17647
gi_lowest_integer = 1
gi_highest_integer = 7
gi_base_frequency = 953.000000
gi_attack_from = .0055
gi_release_from = .0089
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_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_A200650
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A200650
i_length filelen "falsetto_five.pvx"
k_time phasor 1.0/i_length
k_time = k_time*i_length
a_signal pvoc k_time, i_frequency/638, "falsetto_five.pvx"
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*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_release, a_1*a_release
endin