sr = 96000
kr = 96000
nchnls = 2
0dbfs = 1
zakinit 2, 1
vbaplsinit 2, 2, -30.0, 30.0
gi_origin = -25.531178
gi_integer_width = 1.245423
gi_distance_to_speakers = 1.27
gi_vh_wavetable_A116403 ftgen 0, 0, 17, -2, 0.971794, 0.865811, 0.782051, 0.689743, 0.619658, 0.551282, 0.506837, 0.435042, 0.373504, 0.341025, 0.293162, 0.250427, 0.202564, 0.161538, 0.125641, 0.101709, 0.053846
gi_vh_amplitude_A116403 ftgen 0, 0, 17, -2, 0.006949, 0.011037, 0.018396, 0.027389, 0.034748, 0.046194, 0.072357, 0.082168, 0.108332, 0.137765, 0.170469, 0.203991, 0.230972, 0.262041, 0.286569, 0.315565, 0.348420
gi_vh_panning_A116403 ftgen 0, 0, 17, -2, -26.91902, -22.20557, -17.91110, -14.97829, -11.52176, -8.903179, -5.760881, -3.191397, 0, 3.191397, 6.284599, 8.903179, 11.62650, 14.97829, 17.91110, 21.68186, 25.45261
gi_wavetable_0_A116403 ftgen 0, 0, 16384, 1, "raw_charcoal_6.wav", 0, 0, 0
gi_wavetable_1_A116403 ftgen 0, 0, 16384, 1, "raw_charcoal_7.wav", 0, 0, 0
gi_lowest_integer = 1
gi_highest_integer = 42
instr A116403
i_duration = p3
i_integer = p4
i_azimuth = gi_origin+(i_integer-gi_lowest_integer)*gi_integer_width
k_wavetable table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_wavetable_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
a_index lphasor 1
a_signal table a_index, gi_wavetable_0_A116403
a_wavetable_1 table a_index, gi_wavetable_1_A116403
a_signal sum a_signal*k_wavetable, a_wavetable_1*(1-k_wavetable)
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