fixed noisy LP/HP filter, fixed transition bug in wave generation, created global constants