mirror of
https://github.com/romanz/amodem.git
synced 2026-02-24 16:18:12 +08:00
Use 4 carriers wit QAM16 to achieve 16kbps.
This commit is contained in:
14
show.py
14
show.py
@@ -8,11 +8,15 @@ def spectrogram(t, x, Fs, NFFT=256):
|
||||
Pxx, freqs, bins, im = pylab.specgram(x,
|
||||
NFFT=NFFT, Fs=Fs, noverlap=NFFT/2, cmap=pylab.cm.gist_heat)
|
||||
|
||||
pylab.show()
|
||||
|
||||
if __name__ == '__main__':
|
||||
import sys
|
||||
import common
|
||||
fname, = sys.argv[1:]
|
||||
t, x = common.load(fname)
|
||||
spectrogram(t, x, common.Fs)
|
||||
|
||||
for fname in sys.argv[1:]:
|
||||
t, x = common.load(fname)
|
||||
pylab.figure()
|
||||
pylab.title(fname)
|
||||
spectrogram(t, x, common.Fs)
|
||||
|
||||
pylab.show()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user