sr = 96000
kr = 96000
nchnls = 2
0dbfs = 1
zakinit 2, 1
vbaplsinit 2, 2, -30.0, 30.0
gi_origin_A019586 = -27.242426
gi_origin_A098861 = 6.072658
gi_integer_width = 0.148040
gi_distance_to_speakers = 1.27
gi_vh_wavetable_A019586 ftgen 0, 0, 17, -2,0.910256, 0.870940, 0.812820, 0.763247, 0.718803, 0.676068, 0.611111, 0.552991, 0.508547, 0.464102, 0.404000, 0.342735, 0.288034, 0.235042, 0.176923, 0.120512, 0.079487
gi_vh_wavetable_A098861 ftgen 0, 0, 17, -2,0.910256, 0.870940, 0.812820, 0.763247, 0.718803, 0.676068, 0.611111, 0.552991, 0.508547, 0.464102, 0.404000, 0.342735, 0.288034, 0.235042, 0.176923, 0.120512, 0.079487
gi_vh_amplitude_A019586 ftgen 0, 0, 17, -2, 0.062393, 0.081196, 0.100000, 0.115384, 0.134188, 0.152991, 0.187179, 0.211111, 0.248717, 0.258974, 0.272649, 0.300000, 0.322222, 0.344444, 0.371794, 0.397435, 0.429914
gi_vh_amplitude_A098861 ftgen 0, 0, 17, -2, 0.062393, 0.081196, 0.100000, 0.115384, 0.134188, 0.152991, 0.187179, 0.211111, 0.248717, 0.258974, 0.272649, 0.300000, 0.322222, 0.344444, 0.371794, 0.397435, 0.429914
gi_vh_panning_A019586 ftgen 0, 0, 17, -2, -27.64209, -26.42514, -24.99087, -23.60007, -22.16580, -20.94885, -19.60151, -18.38456, -17.08068, -15.68988, -14.34254, -13.34290, -12.25634, -11.25670, -10.21359, -9.300884, -8.388170
gi_vh_panning_A098861 ftgen 0, 0, 17, -2, 4.368220, 5.714400, 7.321131, 9.101563, 10.44774, 11.70707, 13.18352, 14.44285, 15.87588, 17.26549, 18.82880, 19.95785, 21.43431, 22.78049, 24.25694, 25.47285, 26.77560
gi_lowest_integer = 0
gi_highest_integer = 143
gi_base_frequency = 366.000000
gi_attack_from = .0034
gi_release_from = .0055
gi_golden_ratio = (sqrt(5)-1)/2
gi_power_of_golden_ratio pow gi_golden_ratio, 15
gi_temperament = gi_power_of_golden_ratio+1
instr A019586
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 = (i_integer-gi_lowest_integer)*gi_integer_width+gi_origin_A019586
k_wavetable table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_wavetable_A019586
k_amplitude table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_amplitude_A019586
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A019586
i_length filelen "sperrhake_eight.pvx"
k_time phasor 1.0/i_length
k_time = k_time*i_length
a_signal pvoc k_time, i_frequency/415.5, "sperrhake_eight.pvx"
a_wavetable_1 pvoc k_time, i_frequency/482.7, "japanese_tourist_flute.pvx"
a_signal sum a_signal*k_wavetable, a_wavetable_1*(1-k_wavetable)
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
instr A098861
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 = (i_integer-gi_lowest_integer)*gi_integer_width+gi_origin_A098861
k_wavetable table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_wavetable_A098861
k_amplitude table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_amplitude_A098861
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A098861
i_length filelen "sperrhake_eight.pvx"
k_time phasor 1.0/i_length
k_time = k_time*i_length
a_signal pvoc k_time, i_frequency/415.5, "sperrhake_eight.pvx"
a_wavetable_1 pvoc k_time, i_frequency/482.7, "japanese_tourist_flute.pvx"
a_signal sum a_signal*k_wavetable, a_wavetable_1*(1-k_wavetable)
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