Skip to main content

A modular synthesizer in pytorch, GPU-optional and differentiable

Project description

torchsynth

{\tt torchsynth} is based upon traditional modular synthesis, but is GPU-enabled and is differentiable.

codecov.io Total alerts

Development Installation

git clone https://github.com/turian/torchsynth
cd torchsynth
pip install -e .

Note that torchsynth requires PyTorch version 1.7 or greater.

Examples

We recommend that you run examples through Jupyter notebooks, and that you have jupytext installed. It's a little fiddly to install, and those instructions are the best. jupytext makes it easy to put demo notebooks into the repo as Python files. (Larger assets like ipynb files we should avoid.)

To run examples, you should also do:

pip install -e ".[dev]"

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:

pip install -e ".[dev]"

To run tests, run pytest from the project root:

pytest

To run tests with a coverage report:

pytest --cov=./src

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

torchsynth-0.0.1.tar.gz (14.4 kB view details)

Uploaded Source

Built Distribution

torchsynth-0.0.1-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

Details for the file torchsynth-0.0.1.tar.gz.

File metadata

  • Download URL: torchsynth-0.0.1.tar.gz
  • Upload date:
  • Size: 14.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

Hashes for torchsynth-0.0.1.tar.gz
Algorithm Hash digest
SHA256 6726d21079074eb0576b9cd4520881e1e030aadb3ae281586712930e7fb4c322
MD5 38500b337ee8d4def551cdb42852f3f2
BLAKE2b-256 d357fda00e6010a5fd768e17740411badff5b877e76cf2658e60828f0a65b5a4

See more details on using hashes here.

File details

Details for the file torchsynth-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: torchsynth-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 18.3 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

Hashes for torchsynth-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4ea76bd7c6adc39c0613a1c4a8b7f99d29642274c2894bdf88e191011a731310
MD5 21c5497c0df0935c07428a7131fdc192
BLAKE2b-256 7d468f427d4cc27a14d782c21ebf0f3a1ae7ff7bf53b22fd56295f5fb5410a4d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page