sr = 96000
kr = 96000
nchnls = 2
0dbfs = 1
zakinit 2, 1
vbaplsinit 2, 2, -30.0, 30.0
gi_origin = -27.471132
gi_integer_width = 2.747113
gi_distance_to_speakers = 1.27
gi_vh_wavetable_A167968 ftgen 0, 0, 17, -2, 0.946153, 0.891452, 0.812820, 0.754700, 0.701709, 0.649999, 0.600000, 0.550000, 0.505128, 0.449999, 0.400854, 0.344444, 0.296581, 0.250427, 0.199145, 0.123931, 0.076068
gi_vh_amplitude_A167968 ftgen 0, 0, 17, -2, 0.003115, 0.005607, 0.011769, 0.016823, 0.024299, 0.039253, 0.072692, 0.105299, 0.139316, 0.182561, 0.240230, 0.299699, 0.362076, 0.421823, 0.499153, 0.568869, 0.658974
gi_vh_panning_A167968 ftgen 0, 0, 17, -2, -27.83741, -23.32933, -19.38475, -14.98937, -10.36859, -7.889144, -4.958890, -2.704849, 0, 3.433891, 6.762126, 10.14318, 13.41154, 15.89099, 18.37043, 21.07529, 23.89284
gi_wavetable_0_A167968 ftgen 0, 0, 16384, 1, "raw_charcoal_9.wav", 0, 0, 0
gi_wavetable_1_A167968 ftgen 0, 0, 16384, 1, "raw_charcoal_10.wav", 0, 0, 0
gi_lowest_integer = 1
gi_highest_integer = 21
instr A167968
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_A167968
k_amplitude table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_amplitude_A167968
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A167968
a_index lphasor 1
a_signal table a_index, gi_wavetable_0_A167968
a_wavetable_1 table a_index, gi_wavetable_1_A167968
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