summaryrefslogtreecommitdiff
path: root/docs/tutorial
diff options
context:
space:
mode:
authorRadomir Dopieralski <deshipu@users.noreply.github.com>2014-12-29 21:35:52 +0100
committerDamien George <damien.p.george@gmail.com>2015-01-01 17:56:05 +0000
commitce5b5caf8c50a771cb57d27342b4ce52b9ce6877 (patch)
treee72a289a7105e0a779ca19dc352bdfa765f36d16 /docs/tutorial
parent84e0cf0d215d1248a6f2c4dc977c5702f317fe06 (diff)
Add a command for converting the WAV files
Add a command for converting the WAV files to the amp skin tutorial, so that people can use their own files easily.
Diffstat (limited to 'docs/tutorial')
-rw-r--r--docs/tutorial/amp_skin.rst10
1 files changed, 7 insertions, 3 deletions
diff --git a/docs/tutorial/amp_skin.rst b/docs/tutorial/amp_skin.rst
index 8b1e72bda..9aaf84c75 100644
--- a/docs/tutorial/amp_skin.rst
+++ b/docs/tutorial/amp_skin.rst
@@ -55,9 +55,13 @@ For example::
You can also play WAV files using the Python ``wave`` module. You can get
the wave module `here <http://micropython.org/resources/examples/wave.py>`_ and you will also need
the chunk module available `here <http://micropython.org/resources/examples/chunk.py>`_. Put these
-on your pyboard (either on the flash or the SD card in the top-level
-directory). You will need an 8-bit WAV file to play, such as
-`this one <http://micropython.org/resources/examples/test.wav>`_. Then you can do::
+on your pyboard (either on the flash or the SD card in the top-level directory). You will need an
+8-bit WAV file to play, such as `this one <http://micropython.org/resources/examples/test.wav>`_,
+or to convert any file you have with the command::
+
+ avconv -i original.wav -ar 22050 -codec pcm_u8 test.wav
+
+Then you can do::
>>> import wave
>>> from pyb import DAC