Skip to content

Commit 88a7811

Browse files
more docstrings
1 parent 647b61b commit 88a7811

File tree

4 files changed

+314
-87
lines changed

4 files changed

+314
-87
lines changed

pytch/audio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ def worker_thread(self):
363363
writer.writerow(np.concatenate((f0[0, :], conf[0, :])))
364364

365365
def recording_callback(self, data, frames, time, status):
366-
"""Receives and stores frames from soundcard, data is of shape (frames, channels)"""
366+
"""Receives frames from soundcard and stores them in buffer, data is of shape (frames, channels)"""
367367
audio_conv = (
368368
data[:, self.channels].astype(np.float32, order="C") / 32768.0
369369
) # convert int16 to float32

pytch/cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010

1111
def main():
12+
"""Parses commandline arguments and starts pytch."""
1213
parser = argparse.ArgumentParser("pytch")
1314
parser.add_argument(
1415
"--debug",

0 commit comments

Comments
 (0)