diff options
author | Georg Brandl <georg@python.org> | 2009-10-11 08:39:16 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-10-11 08:39:16 +0000 |
commit | 86d38e9ecc458bf42afc39551e48d22fd7f86bc6 (patch) | |
tree | d82455b0fbae319b2ac8aea6ca150137adbf2f51 /Demo/scripts/morse.py | |
parent | 30fd2bb884bff14b10923234a1aee9dd6a65ba59 (diff) | |
download | cpython-git-86d38e9ecc458bf42afc39551e48d22fd7f86bc6.tar.gz |
Update markov demo.
Diffstat (limited to 'Demo/scripts/morse.py')
-rwxr-xr-x | Demo/scripts/morse.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Demo/scripts/morse.py b/Demo/scripts/morse.py index e939b2d015..265fae9f94 100755 --- a/Demo/scripts/morse.py +++ b/Demo/scripts/morse.py @@ -61,7 +61,7 @@ def mkwave(octave): sinewave = '' for i in range(100): val = int(math.sin(math.pi * i * octave / 50.0) * 30000) - sinewave = sinewave + chr((val >> 8) & 255) + chr(val & 255) + sinewave += chr((val >> 8) & 255) + chr(val & 255) return sinewave defaultwave = mkwave(OCTAVE) |