ENH: applying a Hamming window to generated tones

- reduces clicking at tone offset
- can override using hamming=False if desired
Merge pull request #329 from jeremygray/master

Hamming window for sound-from-freq