sr = 96000
kr = 96000
nchnls = 2
0dbfs = 1
zakinit 2, 1
vbaplsinit 2, 2, -30.0, 30.0
gi_origin = -26.431871
gi_integer_width = 4.405312
gi_distance_to_speakers = 1.27
gi_vh_amplitude_A199539 ftgen 0, 0, 17, -2, 0.060683, 0.100230, 0.189472, 0.198761, 0.253123, 0.319397, 0.416840, 0.557591, 0.719997, 0.947364, 1.272175, 1.661948, 2.116683, 2.787958, 3.480888, 4.130509, 5.042305
gi_vh_panning_A199539 ftgen 0, 0, 17, -2, -26.43187, -22.12144, -17.78390, -13.88012, -10.19321, -7.590690, -4.988168, -2.710962, -2.842170, 2.710960, 6.072551, 9.542583, 11.81978, 15.07294, 18.32609, 21.90456, 26.43187
gi_wavetable_0_A199539 ftgen 0, 0, 16384, 1, "cole_bluebonnet_15.wav", 0, 0, 0
gi_lowest_integer = 1
gi_highest_integer = 13
gi_base_frequency = 149.670000
gi_resonance_filter_bandwidth_from = 17
gi_resonance_filter_bandwidth_to = 10
instr A199539
i_duration = p3
i_integer = p4
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_A199539
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A199539
a_index lphasor 1
a_signal table a_index, gi_wavetable_0_A199539
a_signal reson a_signal, i_frequency, i_resonance_filter_bandwidth*i_frequency*.01, 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