fixing up the noise wave example a bit