Defaults to `"float32"`.
If `aubio` was built specifically with the option `--enable-double`, this
- string will be defined to `"float64"`. See :ref:`doubleprecision` in
- :ref:`requirements` for more details on building aubio in double
+ string will be defined to `"float64"`. See :ref:`py-doubleprecision` in
+ :ref:`python-install` for more details on building aubio in double
precision mode.
.. rubric:: Examples
Utilities
---------
-This section documents various helpers functions included in the aubio library.
+This section documents various helper functions included in the aubio library.
Note name conversion
....................
$ ./setup.py build
$ sudo ./setup.py install
+
+.. _py-doubleprecision:
+
+Double precision
+----------------
+
+This module can be compiled in double-precision mode, in which case the
+default type for floating-point samples will be 64-bit. The default is
+single precision mode (32-bit, recommended).
+
+To build the aubio module with double precision, use the option
+`--enable-double` of the `build_ext` subcommand:
+
+.. code:: bash
+
+ $ ./setup.py clean
+ $ ./setup.py build_ext --enable-double
+ $ pip install -v .
+
+**Note**: If linking against `libaubio`, make sure the library was also
+compiled in :ref:`doubleprecision` mode.
+
+
Checking your installation
--------------------------
--manpagesdir=/opt/share/man \
uninstall clean distclean dist distcheck
+.. _doubleprecision:
+
Double precision
................
To compile aubio in double precision mode, configure with ``--enable-double``.
-To compile aubio in single precision mode, use ``--disable-double`` (default).
+To compile aubio in single precision mode, use ``--disable-double`` (default,
+recommended).
Disabling the tests
...................