From 6c313362da34c8d1dcda28f2e0c9c6ad84912e59 Mon Sep 17 00:00:00 2001 From: Matthias Geier Date: Wed, 9 Dec 2015 11:10:04 +0100 Subject: DOC: change myrecording2 -> myrecording The variable name is re-used anyway, so there is no point in changing it here. --- README.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 9e36640..451c562 100644 --- a/README.rst +++ b/README.rst @@ -180,7 +180,7 @@ To play back an array and record at the same time, use `sounddevice.playrec()`: .. code:: python - myrecording2 = sd.playrec(myarray, fs, channels=2) + myrecording = sd.playrec(myarray, fs, channels=2) The number of output channels is obtained from ``myarray``, but the number of input channels still has to be specified. @@ -191,7 +191,7 @@ Again, default values can be used: sd.default.samplerate = fs sd.default.channels = 2 - myrecording2 = sd.playrec(myarray) + myrecording = sd.playrec(myarray) In this case the number of output channels is still taken from ``myarray`` (which may or may not have 2 channels), but the number of input channels is -- cgit v1.2.3