slight fix in implementation of pitch shift