added buffer calculation util, fixed pitch modulator bug