A modular synthesizer in pytorch, GPU-optional and differentiable
Project description
torchsynth
The fastest synth in the universe.
Introduction
torchsynth is based upon traditional modular synthesis written in pytorch. It is GPU-optional and differentiable.
Most synthesizers are fast in terms of latency. torchsynth is fast in terms of throughput.
You will need to install the particular version of torchcsprng for your CUDA device. Please follow their simple installation instructions. But if you use the CPU version of torchcsprng, it probably won't affect performance much.
Development Installation
git clone https://github.com/turian/torchsynth
cd torchsynth
pip3 install -e ".[dev]"
Make sure you have pre-commit hooks installed:
pre-commit install
This helps us avoid checking dirty jupyter notebook cells into the repo.
Note that torchsynth requires PyTorch version 1.7 or greater.
Examples
Unfortunately, Python 3.9 (e.g. OSX Big Sur) won't work, because librosa repends upon numba which isn't packaged for 3.9 yet. In which case you'll have to create a Python 3.7 conda environment. (You might also need to downgrade LLVM to 10 or 9.):
conda install -c conda-forge ipython librosa matplotlib numpy matplotlib scipy jupytext
conda install -c anaconda ipykernel
python -m ipykernel install --user --name=envname
and change the kernel to envname
.
Tests
Unit testing is performed using pytest
.
pytest
and other project development dependencies can be installed as follows:
pip3 install -e ".[test]"
To run tests, run pytest
from the project root:
pytest
To run tests with a coverage report:
pytest --cov=./torchsynth
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file torchsynth-0.0.3.tar.gz
.
File metadata
- Download URL: torchsynth-0.0.3.tar.gz
- Upload date:
- Size: 21.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f63d609b7ceb9c8554fed5776a22be2f6ec0d98277f3aff6d3005fadb3931b65 |
|
MD5 | 888846cfd3bf7a53e878005a45f939ff |
|
BLAKE2b-256 | 0e44b552ebb0650af6de9faf52fa6ae4ecaf61cc873075e425b7904d15f6f799 |
File details
Details for the file torchsynth-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: torchsynth-0.0.3-py3-none-any.whl
- Upload date:
- Size: 27.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe6a04af81deea432c8a78c6f46659cddf5fb8f79d48984a7637c5b0a36432ac |
|
MD5 | c7fcf167eb766481f150b85b176d70e3 |
|
BLAKE2b-256 | b499051b0e2614b38bdea2cfb8ceac7932d1cd4b62573bb27fdc4b9ea1c8a50f |