Showing the changes to doc/python_module.rst (1 of 4 files). Show all
Unified · Split
| @@ -25,6 +25,29 @@ From ``aubio`` source directory, run the following: · 24 unmodified lines | |||
| 25 | $ ./setup.py build | 25 | $ ./setup.py build |
| 26 | $ sudo ./setup.py install | 26 | $ sudo ./setup.py install |
| 27 | 27 | ||
| 28 | |||
| 29 | .. _py-doubleprecision: | ||
| 30 | |||
| 31 | Double precision | ||
| 32 | ---------------- | ||
| 33 | |||
| 34 | This module can be compiled in double-precision mode, in which case the | ||
| 35 | default type for floating-point samples will be 64-bit. The default is | ||
| 36 | single precision mode (32-bit, recommended). | ||
| 37 | |||
| 38 | To build the aubio module with double precision, use the option | ||
| 39 | `--enable-double` of the `build_ext` subcommand: | ||
| 40 | |||
| 41 | .. code:: bash | ||
| 42 | |||
| 43 | $ ./setup.py clean | ||
| 44 | $ ./setup.py build_ext --enable-double | ||
| 45 | $ pip install -v . | ||
| 46 | |||
| 47 | **Note**: If linking against `libaubio`, make sure the library was also | ||
| 48 | compiled in :ref:`doubleprecision` mode. | ||
| 49 | |||
| 50 | |||
| 28 | Checking your installation | 51 | Checking your installation |
| 29 | -------------------------- | 52 | -------------------------- |
| 30 | 53 | ||