sr = 96000
kr = 96000
nchnls = 2
0dbfs = 1
zakinit 2, 1
vbaplsinit 2, 2, -30.0, 30.0
gi_origin = 28.302540
gi_integer_width = -0.092948
gi_distance_to_speakers = 1.27
gi_vh_amplitude_A019586 ftgen 0, 0, 17, -2, 0.416239, 0.334439, 0.265270, 0.229950, 0.198309, 0.150479, 0.135026, 0.116630, 0.096027, 0.081310, 0.064386, 0.045990, 0.031273, 0.022443, 0.014348, 0.006990, 0.003311
gi_vh_panning_A019586 ftgen 0, 0, 17, -2, 24.96429, 22.64203, 17.88140, 15.32691, 11.49518, 8.824584, 6.502326, 3.367275, 0, -3.537817, -7.075634, -11.14684, -15.67525, -20.20365, -22.64203, -26.35764, -29.26047
gi_wavetable_0_A019586 ftgen 0, 0, 16384, 1, "post-it_grain_1.wav", 0, 0, 0
gi_lowest_integer = 0
gi_highest_integer = 609
instr A019586
i_duration = p3
i_integer = p4
i_azimuth = gi_origin+(i_integer-gi_lowest_integer)*gi_integer_width
k_amplitude table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_amplitude_A019586
k_panning table3 (i_integer-gi_lowest_integer)*(16/(gi_highest_integer-gi_lowest_integer)), gi_vh_panning_A019586
a_index lphasor 1
a_signal table a_index, gi_wavetable_0_A019586
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