sr = 96000
kr = 96000
nchnls = 2
0dbfs = 1
zakinit 2, 1
vbaplsinit 2, 2, -30.0, 30.0
gi_origin = 25.600464
gi_integer_width = -1.551543
gi_distance_to_speakers = 1.27
gi_vh_amplitude_A084532 ftgen 0, 0, 17, -2, 0.746286, 0.414603, 1.077969, 1.243810, 1.575493, 2.570542, 3.399749, 4.892322, 7.048260, 8.706674, 10.69677, 11.85766, 12.85271, 20.64725, 38.22644, 59.12247, 92.78828
gi_vh_panning_A084532 ftgen 0, 0, 17, -2, 25.60046, 22.40040, 19.20034, 16.00028, 12.80023, 9.600173, 6.400115, 3.200057, 0, -3.20005, -6.40011, -9.60017, -12.8002, -16.0002, -19.2003, -22.4004, -25.6004
gi_wavetable_0_A084532 ftgen 0, 0, 16384, 1, "laminated_cardboard_four.wav", 0, 0, 0
gi_lowest_integer = 1
gi_highest_integer = 34
gi_base_frequency = 101.500000
gi_resonance_filter_bandwidth_from = 35
gi_resonance_filter_bandwidth_to = 10
instr A084532
i_duration = p3
i_index = p4
i_integer = p5
i_azimuth = gi_origin+(i_integer-gi_lowest_integer)*gi_integer_width
i_frequency = gi_base_frequency*i_integer
i_resonance_filter_bandwidth = gi_resonance_filter_bandwidth_from+(i_integer-gi_lowest_integer)*((gi_resonance_filter_bandwidth_to-gi_resonance_filter_bandwidth_from)/(gi_highest_integer-gi_lowest_integer))
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
a_index lphasor 1
a_signal table a_index, gi_wavetable_0_A084532
a_signal reson a_signal, i_frequency, i_resonance_filter_bandwidth, 1
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_1
endin