Accidentally fixed downsampling in sinewave

I don't know what I did, but now it seems to be working.