diff options
Diffstat (limited to 'client.py')
-rw-r--r-- | client.py | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -10,6 +10,7 @@ import struct import socket import optparse import array +import random from packet import Packet, CMD, stoi @@ -71,6 +72,10 @@ def square_wave(theta): else: return -1 +@generator('Random (noise) generator') +def noise(theta): + return math.random() * 2 - 1 + @generator('File generator', '(<file>[, <bits=8>[, <signed=True>[, <0=linear interp (default), 1=nearest>[, <swapbytes=False>]]]])') class file_samp(object): LINEAR = 0 |