mirror of
https://github.com/romanz/amodem.git
synced 2026-04-01 08:46:49 +08:00
Made documentation changes as requested, according to PEP-257.
This commit is contained in:
@@ -1,14 +1,17 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
"""Script that exposes pylab's spectogram plotting
|
||||
capabilities to the command line. It implements this
|
||||
for amodem.config Configurations.
|
||||
|
||||
"""
|
||||
|
||||
import pylab
|
||||
import numpy as np
|
||||
from amodem import common
|
||||
from amodem.config import Configuration
|
||||
import sys
|
||||
|
||||
"""Script that exposes pylab's spectogram plotting
|
||||
capabilities to the command line. It implements this
|
||||
for amodem.config Configurations.
|
||||
"""
|
||||
|
||||
def spectrogram(t, x, Fs, NFFT=256):
|
||||
ax1 = pylab.subplot(211)
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
"""Script that records audio through an interface
|
||||
and stores it into an amodem.config Configuration.
|
||||
|
||||
"""
|
||||
import argparse
|
||||
from amodem import audio
|
||||
from amodem.config import Configuration
|
||||
|
||||
"""Script that records audio through an interface
|
||||
and stores it into an amodem.config Configuration.
|
||||
"""
|
||||
|
||||
def run(args):
|
||||
config = Configuration()
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
#!/usr/bin/env python
|
||||
from amodem.sampling import resample
|
||||
import argparse
|
||||
import sys
|
||||
|
||||
"""Script that exposes the amodem.resample() function
|
||||
to the command line, taking parameters via standard
|
||||
inputs and returning results via standard outputs.
|
||||
"""
|
||||
|
||||
from amodem.sampling import resample
|
||||
import argparse
|
||||
import sys
|
||||
|
||||
|
||||
def main():
|
||||
p = argparse.ArgumentParser()
|
||||
|
||||
Reference in New Issue
Block a user