Advertisement
hxrussia

sin for /dev/dsp

Jun 6th, 2012
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.10 KB | None | 0 0
  1. import math
  2.  
  3. t = 0.0
  4. while True:
  5.     t += 0.001
  6.     print chr(int(math.sin(t) * 128 + 128)) + '\0'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement