replace lousy old synth stuff with inline numpy