sr = 96000
kr = 96000
nchnls = 2
0dbfs = 1
zakinit 2, 1
vbaplsinit 2, 2, -30.0, 30.0
gi_origin_A035614 = -27.664712
gi_origin_A019586 = -12.155244
gi_origin_A098862 = 3.354223
gi_origin_A098861 = 18.863691
gi_integer_width = 0.100012
gi_distance_to_speakers = 1.27
gi_vh_amplitude_A035614 ftgen 0, 0, 17, -2, 0.013747, 0.014495, 0.016179, 0.017488, 0.018610, 0.019919, 0.021042, 0.022538, 0.023099, 0.027214, 0.030581, 0.035070, 0.039746, 0.050594, 0.057141, 0.080521, 0.096581
gi_vh_amplitude_A019586 ftgen 0, 0, 17, -2, 0.018984, 0.018984, 0.019545, 0.020106, 0.020106, 0.021416, 0.022164, 0.023286, 0.025157, 0.026840, 0.030207, 0.035070, 0.041242, 0.048911, 0.058637, 0.073413, 0.090808
gi_vh_amplitude_A098862 ftgen 0, 0, 17, -2, 0.018236, 0.017114, 0.019358, 0.021042, 0.021790, 0.022538, 0.024221, 0.024595, 0.025344, 0.028336, 0.030394, 0.034696, 0.039185, 0.047601, 0.056392, 0.073413, 0.096045
gi_vh_amplitude_A098861 ftgen 0, 0, 17, -2, 0.015617, 0.015992, 0.017675, 0.019545, 0.020106, 0.022164, 0.023473, 0.025718, 0.027962, 0.030207, 0.034696, 0.036566, 0.041055, 0.050781, 0.062939, 0.077154, 0.094175
gi_vh_panning_A035614 ftgen 0, 0, 17, -2, -27.56090, -27.07346, -26.51380, -25.93610, -25.37644, -24.70847, -24.25713, -23.71553, -23.24614, -22.70454, -22.16294, -21.67550, -21.18806, -20.57424, -20.06875, -19.70768, -19.20219
gi_vh_panning_A019586 ftgen 0, 0, 17, -2, -11.96117, -11.50983, -10.98628, -10.42663, -9.957245, -9.289271, -8.783776, -8.304797, -7.718626, -7.213132, -6.725691, -6.256304, -5.732756, -5.299475, -4.487072, -4.306539, -3.819098
gi_vh_panning_A098862 ftgen 0, 0, 17, -2, 3.476083, 4.017684, 4.541233, 5.191154, 5.786915, 6.184090, 6.852065, 7.285345, 7.790840, 8.133853, 8.675455, 9.343430, 9.939191, 10.30025, 10.96823, 11.61815, 11.90700
gi_vh_panning_A098861 ftgen 0, 0, 17, -2, 19.16608, 19.65352, 20.15902, 20.62840, 21.11584, 21.78382, 22.32542, 22.92118, 23.35446, 23.93217, 24.40156, 24.81679, 25.44865, 25.93610, 26.47770, 26.98319, 27.50674
gi_wavetable_0_A035614 ftgen 0, 0, 0, 1, "door_sound_1.wav", 0, 0, 0
gi_wavetable_0_A019586 ftgen 0, 0, 0, 1, "door_sound_1.wav", 0, 0, 0
gi_wavetable_0_A098862 ftgen 0, 0, 0, 1, "door_sound_1.wav", 0, 0, 0
gi_wavetable_0_A098861 ftgen 0, 0, 0, 1, "door_sound_1.wav", 0, 0, 0
gi_lowest_integer = 0
gi_highest_integer = 88
gi_base_frequency = 2355.000000
gi_attack_from = .0123
gi_attack_to = .0076
gi_release_from = .0144
gi_release_to = .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 A035614
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_integer-gi_lowest_integer)*((gi_attack_to-gi_attack_from)/(gi_highest_integer-gi_lowest_integer))
i_release = gi_release_from+(i_integer-gi_lowest_integer)*((gi_release_to-gi_attack_from)/(gi_highest_integer-gi_lowest_integer))
i_azimuth = (i_integer-gi_lowest_integer)*gi_integer_width+gi_origin_A035614
k_amplitude table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_amplitude_A035614
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A035614
i_wavetable_0_A035614 ftgenonce 0, 0, 8192, 30, gi_wavetable_0_A035614, 1, floor((sr/2)/i_frequency)
a_signal poscil3 k_amplitude, i_frequency, i_wavetable_0_A035614
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
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_integer-gi_lowest_integer)*((gi_attack_to-gi_attack_from)/(gi_highest_integer-gi_lowest_integer))
i_release = gi_release_from+(i_integer-gi_lowest_integer)*((gi_release_to-gi_attack_from)/(gi_highest_integer-gi_lowest_integer))
i_azimuth = (i_integer-gi_lowest_integer)*gi_integer_width+gi_origin_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_wavetable_0_A019586 ftgenonce 0, 0, 8192, 30, gi_wavetable_0_A019586, 1, floor((sr/2)/i_frequency)
a_signal poscil3 k_amplitude, i_frequency, i_wavetable_0_A019586
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
instr A098862
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_integer-gi_lowest_integer)*((gi_attack_to-gi_attack_from)/(gi_highest_integer-gi_lowest_integer))
i_release = gi_release_from+(i_integer-gi_lowest_integer)*((gi_release_to-gi_attack_from)/(gi_highest_integer-gi_lowest_integer))
i_azimuth = (i_integer-gi_lowest_integer)*gi_integer_width+gi_origin_A098862
k_amplitude table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_amplitude_A098862
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A098862
i_wavetable_0_A098862 ftgenonce 0, 0, 8192, 30, gi_wavetable_0_A098862, 1, floor((sr/2)/i_frequency)
a_signal poscil3 k_amplitude, i_frequency, i_wavetable_0_A098862
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
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_integer-gi_lowest_integer)*((gi_attack_to-gi_attack_from)/(gi_highest_integer-gi_lowest_integer))
i_release = gi_release_from+(i_integer-gi_lowest_integer)*((gi_release_to-gi_attack_from)/(gi_highest_integer-gi_lowest_integer))
i_azimuth = (i_integer-gi_lowest_integer)*gi_integer_width+gi_origin_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_wavetable_0_A098861 ftgenonce 0, 0, 8192, 30, gi_wavetable_0_A098861, 1, floor((sr/2)/i_frequency)
a_signal poscil3 k_amplitude, i_frequency, i_wavetable_0_A098861
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