sr = 96000
kr = 96000
nchnls = 2
0dbfs = 1
zakinit 2, 1
vbaplsinit 2, 2, -30.0, 30.0
gi_origin_A084532 = -1.635249
gi_origin_A084531 = 25.902841
gi_integer_width = -0.758362
gi_distance_to_speakers = 1.27
gi_vh_amplitude_A084532 ftgen 0, 0, 17, -2, 0.221367, 0.238461, 0.262393, 0.272649, 0.286324, 0.294871, 0.301709, 0.303418, 0.303418, 0.306837, 0.296581, 0.296581, 0.281196, 0.270940, 0.253846, 0.235042, 0.221367
gi_vh_amplitude_A084531 ftgen 0, 0, 17, -2, 0.212820, 0.235042, 0.260683, 0.270940, 0.284615, 0.298290, 0.291453, 0.300000, 0.298290, 0.296581, 0.294871, 0.294871, 0.282905, 0.274358, 0.250427, 0.228205, 0.195726
gi_vh_panning_A084532 ftgen 0, 0, 17, -2, -1.635248, -3.151973, -4.668697, -6.185421, -7.702146, -9.218871, -10.73559, -12.25232, -13.76904, -15.28576, -17.10428, -18.59767, -20.43952, -22.18180, -24.02365, -25.51704, -27.10999
gi_vh_panning_A084531 ftgen 0, 0, 17, -2, 25.91528, 24.47167, 23.07784, 21.43511, 19.84216, 18.19943, 16.75582, 15.28576, 13.52014, 11.87741, 10.53336, 9.039975, 7.695923, 6.053194, 4.410465, 2.817515, 1.473464
gi_lowest_integer = 1
gi_highest_integer = 33
gi_base_frequency = 873.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, 7
gi_temperament = gi_power_of_golden_ratio+1
instr A084532
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_A084532
k_amplitude table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_amplitude_A084532
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A084532
i_length filelen "gehrs_glass_seven.pvx"
k_time phasor 1.0/i_length
k_time = k_time*i_length
a_signal pvoc k_time, i_frequency/947, "gehrs_glass_seven.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
instr A084531
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_A084531
k_amplitude table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_amplitude_A084531
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A084531
i_length filelen "gehrs_glass_seven.pvx"
k_time phasor 1.0/i_length
k_time = k_time*i_length
a_signal pvoc k_time, i_frequency/947, "gehrs_glass_seven.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