Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Read the Docs configuration: https://docs.readthedocs.io/en/stable/config-file/v2.html
version: 2

build:
os: ubuntu-24.04
tools:
python: "3.12"
apt_packages:
- libportaudio2 # sounddevice is imported with pytta
jobs:
post_create_environment:
- python -m pip install sphinx sphinx_rtd_theme

sphinx:
configuration: docs/conf.py

python:
install:
- method: pip
path: .
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
copyright = '2020, ' + author

# The full version, including alpha/beta/rc tags
release = '0.1.0'
import pytta # noqa: E402
release = pytta.__version__


# -- General configuration ---------------------------------------------------
Expand Down Expand Up @@ -88,4 +89,3 @@
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
22 changes: 14 additions & 8 deletions docs/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,20 @@
Installation
============

If you want to check the most up to date beta version, please get the
development branch source code, clone our repository to your local git, or
even install it from pip, as follows:
PyTTa needs Python 3.10 or later. Sounddevice, used for audio input and
output, needs the PortAudio library, which its wheels for Windows and macOS
include. On Linux, install it with the system package manager, for example::

~ $ pip install git+https://github.com/pyttamaster/pytta@development
sudo apt install libportaudio2

To install the last version compiled to pip, which at this point may not be
the best version on the repository, do:
To install the last version published on PyPI, which can be behind the
development branch::

~ $ pip install pytta

pip install pytta

To install the development branch::

pip install "pytta @ git+https://github.com/pyttamaster/pytta@development"

``pytta.plot_waterfall`` needs the optional packages more-itertools and
kaleido.
27 changes: 4 additions & 23 deletions docs/pyttadoc/functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,8 @@
Functions
=========

.. automodule:: pytta.functions

.. autofunction:: pytta.merge
.. autofunction:: pytta.fft_convolve
.. autofunction:: pytta.read_wav
.. autofunction:: pytta.write_wav
.. autofunction:: pytta.list_devices
.. autofunction:: pytta.get_device_from_user
.. autofunction:: pytta.SPL
.. autofunction:: pytta.find_delay
.. autofunction:: pytta.resample
.. autofunction:: pytta.corr_coef
.. autofunction:: pytta.peak_time
.. autofunction:: pytta.save
.. autofunction:: pytta.load
.. autofunction:: pytta.weighting
.. autofunction:: pytta.fft_degree
.. autofunction:: pytta.plot_time
.. autofunction:: pytta.plot_time_dB
.. autofunction:: pytta.plot_freq
.. autofunction:: pytta.plot_bars
.. autofunction:: pytta.plot_spectrogram
.. autofunction:: pytta.plot_waterfall
The functions of this module are also available from the top level, e.g.
``pytta.merge`` for ``pytta.functions.merge``.

.. automodule:: pytta.functions
:members:
1 change: 1 addition & 0 deletions docs/pyttadoc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,5 @@ Modules:
functions
generate
rooms
iso3741
properties
7 changes: 7 additions & 0 deletions docs/pyttadoc/iso3741.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.. currentmodule:: pytta

ISO 3741
========

.. automodule:: pytta.iso3741
:members:
2 changes: 1 addition & 1 deletion docs/pyttadoc/utils/freq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ Frequency utilities
.. autofunction:: pytta.utils.fractional_octave_frequencies
.. autofunction:: pytta.utils.normalize_frequencies
.. autofunction:: pytta.utils.freqs_to_center_and_edges
.. autofunction:: pytta.utils.filter_alpha
.. autofunction:: pytta.utils.filter_values