sr = 96000
kr = 96000
nchnls = 2
0dbfs = 1
zakinit 2, 1
vbaplsinit 2, 2, -30.0, 30.0
gi_origin_A067595 = -13.787285
gi_origin_A103343 = 6.766533
gi_origin_A116403 = 27.320351
gi_integer_width = -0.541322
gi_distance_to_speakers = 1.27
gi_vh_amplitude_A067595 ftgen 0, 0, 17, -2, 0.164957, 0.115384, 0.088034, 0.064102, 0.048717, 0.058974, 0.069230, 0.069230, 0.064102, 0.055555, 0.052136, 0.064102, 0.060683, 0.053846, 0.057264, 0.060683, 0.065811
gi_vh_amplitude_A103343 ftgen 0, 0, 17, -2, 0.264102, 0.182051, 0.147863, 0.161538, 0.139316, 0.086324, 0.079487, 0.076068, 0.082905, 0.088034, 0.082905, 0.081196, 0.069230, 0.045299, 0.064102, 0.047008, 0.060683
gi_vh_amplitude_A116403 ftgen 0, 0, 17, -2, 0.211111, 0.176923, 0.176923, 0.228205, 0.260683, 0.257264, 0.253846, 0.258974, 0.240170, 0.231623, 0.187179, 0.194017, 0.260683, 0.245299, 0.250427, 0.301709, 0.414529
gi_vh_panning_A067595 ftgen 0, 0, 17, -2, -13.7872, -14.6331, -15.4789, -16.3247, -17.1705, -18.0163, -18.8621, -19.7080, -20.5538, -21.3996, -22.2454, -23.0912, -23.9370, -24.7829, -25.6287, -26.4745, -27.3203
gi_vh_panning_A103343 ftgen 0, 0, 17, -2, 6.766532, 5.920716, 5.074899, 4.229083, 3.383266, 2.537449, 1.691633, 0.845816, 0, -0.84581, -1.69163, -2.53744, -3.38326, -4.22908, -5.07489, -5.92071, -6.76653
gi_vh_panning_A116403 ftgen 0, 0, 17, -2, 27.32035, 26.47453, 25.62871, 24.78290, 23.93708, 23.09126, 22.24545, 21.39963, 20.55381, 19.70800, 18.86218, 18.01636, 17.17055, 16.32473, 15.47891, 14.63310, 13.78728
gi_wavetable_0_A067595 ftgen 0, 0, 0, 1, "car_outside_one.wav", 0, 0, 0
gi_wavetable_0_A103343 ftgen 0, 0, 0, 1, "car_outside_two.wav", 0, 0, 0
gi_wavetable_0_A116403 ftgen 0, 0, 0, 1, "car_outside_three.wav", 0, 0, 0
gi_lowest_integer = 1
gi_highest_integer = 26
gi_base_frequency = 122.000000
gi_attack_from = .0055
gi_attack_to = .0034
gi_release_from = .0089
gi_release_to = .0055
instr A067595
i_duration = p3
i_index = p4
i_integer = p5
i_frequency = gi_base_frequency*i_integer
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_A067595
k_amplitude table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_amplitude_A067595
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A067595
i_wavetable_0_A067595 ftgenonce 0, 0, 8192, 30, gi_wavetable_0_A067595, 1, floor((sr/2)/i_frequency)
a_signal poscil3 k_amplitude, i_frequency, i_wavetable_0_A067595
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 A103343
i_duration = p3
i_index = p4
i_integer = p5
i_frequency = gi_base_frequency*i_integer
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_A103343
k_amplitude table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_amplitude_A103343
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A103343
i_wavetable_0_A103343 ftgenonce 0, 0, 8192, 30, gi_wavetable_0_A103343, 1, floor((sr/2)/i_frequency)
a_signal poscil3 k_amplitude, i_frequency, i_wavetable_0_A103343
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 A116403
i_duration = p3
i_index = p4
i_integer = p5
i_frequency = gi_base_frequency*i_integer
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_A116403
k_amplitude table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_amplitude_A116403
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A116403
i_wavetable_0_A116403 ftgenonce 0, 0, 8192, 30, gi_wavetable_0_A116403, 1, floor((sr/2)/i_frequency)
a_signal poscil3 k_amplitude, i_frequency, i_wavetable_0_A116403
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