Skip to content

๐ŸŽ› ๐Ÿ”Š A Python library for audio.

Add Python 3.11.0-rc1 support. (#139)

Peter Sobot8c0ad9677f64
diff --git a/.github/workflows/all.yml b/.github/workflows/all.yml
index ca0040a..ff67c54 100644
--- a/.github/workflows/all.yml
+++ b/.github/workflows/all.yml
@@ -14,7 +14,7 @@ jobs:
continue-on-error: true
strategy:
matrix:
- python-version: ['3.6', '3.7', '3.8', '3.9']
+ python-version: ['3.6', '3.7', '3.8', '3.9', '3.11.0-rc.1']
os: [ubuntu-latest]
name: Lint Python
steps:
@@ -59,9 +59,9 @@ jobs:
MINIMUM_COVERAGE_PERCENTAGE: 80
strategy:
matrix:
- python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
+ python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11.0-rc.1']
# TODO: Switch back to macos-latest once https://github.com/actions/python-versions/pull/114 is fixed
- os: [ubuntu-18.04, ubuntu-latest, windows-latest, macos-12]
+ os: [ubuntu-latest, windows-latest, macos-12]
name: Test with Python ${{ matrix.python-version }} on ${{ matrix.os }}
steps:
- name: Set up Python ${{ matrix.python-version }}
@@ -101,7 +101,8 @@ jobs:
run: python setup.py install
- name: Generate type stubs and documentation, and validate they match
# Only validate documentation on macOS, as Linux and Windows have a subset of the classes
- if: matrix.python-version != '3.6' && startsWith(matrix.os, 'macos')
+ # TODO: 3.11.0-rc1 doesn't include type hints when generating type stubs.
+ if: matrix.python-version != '3.6' && matrix.python-version != '3.11.0-rc.1' && startsWith(matrix.os, 'macos')
run: python3 -m scripts.generate_type_stubs_and_docs --check
- name: Install VSTs for testing
env:
@@ -133,7 +134,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
- python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
+ python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11.0-rc.1']
os: [ubuntu-latest]
name: Test with Python ${{ matrix.python-version }} + Address Sanitizer
steps:
@@ -185,15 +186,15 @@ jobs:
- { os: macos-12, build: cp38-macosx_x86_64 }
- { os: macos-12, build: cp39-macosx_x86_64 }
- { os: macos-12, build: cp310-macosx_x86_64 }
- # - { os: macos-12, build: cp311-macosx_x86_64 }
+ - { os: macos-12, build: cp311-macosx_x86_64 }
- { os: macos-12, build: cp38-macosx_universal2 }
- { os: macos-12, build: cp39-macosx_universal2 }
- { os: macos-12, build: cp310-macosx_universal2 }
- # - { os: macos-12, build: cp311-macosx_universal2 }
+ - { os: macos-12, build: cp311-macosx_universal2 }
- { os: macos-12, build: cp38-macosx_arm64 }
- { os: macos-12, build: cp39-macosx_arm64 }
- { os: macos-12, build: cp310-macosx_arm64 }
- # - { os: macos-12, build: cp311-macosx_arm64 }
+ - { os: macos-12, build: cp311-macosx_arm64 }
- { os: macos-12, build: pp37-macosx_x86_64 }
- { os: macos-12, build: pp38-macosx_x86_64 }
- { os: macos-12, build: pp39-macosx_x86_64 }
@@ -202,6 +203,7 @@ jobs:
- { os: windows-latest, build: cp38-win_amd64 }
- { os: windows-latest, build: cp39-win_amd64 }
- { os: windows-latest, build: cp310-win_amd64 }
+ - { os: windows-latest, build: cp311-win_amd64 }
- { os: windows-latest, build: pp37-win_amd64 }
- { os: windows-latest, build: pp38-win_amd64 }
- { os: windows-latest, build: pp39-win_amd64 }
@@ -231,9 +233,9 @@ jobs:
# Used to host cibuildwheel, so version doesn't really matter
- uses: actions/setup-python@v2
with:
- python-version: "3.8"
+ python-version: "3.10"
- name: Install cibuildwheel
- run: python -m pip install cibuildwheel>=2.0.0a4
+ run: python -m pip install cibuildwheel>=2.9.0
- name: Set up QEMU for aarch64 on Linux
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v1
@@ -255,15 +257,11 @@ jobs:
# so we can't run post-wheel-build tests there.
# Also testing any pypy versions fails, as TensorFlow isn't pypy compatible.
CIBW_TEST_SKIP: "*manylinux* *pp* *-macosx_universal2:arm64"
- CIBW_PRERELEASE_PYTHONS: true
# Use the minimum macOS deployment target that has C++17 support:
MACOSX_DEPLOYMENT_TARGET: "10.13"
- uses: actions/upload-artifact@v2
with:
- # TODO(psobot): Don't upload wheels for prerelease Python versions: 3.11
- path: |
- ./wheelhouse/*.whl
- !./wheelhouse/*cp311*.whl
+ path: ./wheelhouse/*.whl
upload-pypi:
needs: [build-wheels]
diff --git a/docs/_static/documentation_options.js b/docs/_static/documentation_options.js
index 1e110a8..6edf1e7 100644
--- a/docs/_static/documentation_options.js
+++ b/docs/_static/documentation_options.js
@@ -1,6 +1,6 @@
var DOCUMENTATION_OPTIONS = {
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
- VERSION: 'v0.5.9',
+ VERSION: 'v0.5.10',
LANGUAGE: 'None',
COLLAPSE_INDEX: false,
BUILDER: 'html',
diff --git a/docs/compatibility.html b/docs/compatibility.html
index b0173d7..6d4f413 100644
--- a/docs/compatibility.html
+++ b/docs/compatibility.html
@@ -10,7 +10,7 @@
<meta property="og:url" content="https://spotify.github.io/pedalboard/compatibility.html" />
-<meta property="og:site_name" content="Pedalboard v0.5.9 Documentation" />
+<meta property="og:site_name" content="Pedalboard v0.5.10 Documentation" />
<meta property="og:description" content="pedalboard allows loading VST3ยฎ and Audio Unit plugins, which could contain any code. Most plugins that have been tested work just fine with pedalboard, but some plugins may not work with pedalboar..." />
@@ -20,7 +20,7 @@
<link rel="index" title="Index" href="genindex.html" /><link rel="search" title="Search" href="search.html" /><link rel="next" title="Pedalboard Internals" href="internals.html" /><link rel="prev" title="Frequently Asked Questions" href="faq.html" />
<link rel="shortcut icon" href="_static/favicon.ico"/><meta name="generator" content="sphinx-4.4.0, furo 2022.06.21"/>
- <title>Plugin Compatibility - Pedalboard v0.5.9 Documentation</title>
+ <title>Plugin Compatibility - Pedalboard v0.5.10 Documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/styles/furo.css?digest=40978830699223671f4072448e654b5958f38b89" />
<link rel="stylesheet" type="text/css" href="_static/copybutton.css" />
@@ -138,7 +138,7 @@
</label>
</div>
<div class="header-center">
- <a href="index.html"><div class="brand">Pedalboard v0.5.9 Documentation</div></a>
+ <a href="index.html"><div class="brand">Pedalboard v0.5.10 Documentation</div></a>
</div>
<div class="header-right">
<div class="theme-toggle-container theme-toggle-header">
@@ -164,7 +164,7 @@
<img class="sidebar-logo" src="_static/pedalboard_logo_small.png" alt="Logo"/>
</div>
- <span class="sidebar-brand-text">Pedalboard v0.5.9 Documentation</span>
+ <span class="sidebar-brand-text">Pedalboard v0.5.10 Documentation</span>
</a><form class="sidebar-search-container" method="get" action="search.html" role="search">
<input class="sidebar-search" placeholder=Search name="q" aria-label="Search">
diff --git a/docs/examples.html b/docs/examples.html
index 545b064..f5d731c 100644
--- a/docs/examples.html
+++ b/docs/examples.html
@@ -10,7 +10,7 @@
<meta property="og:url" content="https://spotify.github.io/pedalboard/examples.html" />
-<meta property="og:site_name" content="Pedalboard v0.5.9 Documentation" />
+<meta property="og:site_name" content="Pedalboard v0.5.10 Documentation" />
<meta property="og:description" content="Quick start: Making a guitar-style pedalboard: Using VST3ยฎ or Audio Unit plugins: Creating parallel effects chains: This example creates a delayed pitch-shift effect by running multiple Pedalboards..." />
@@ -20,7 +20,7 @@
<link rel="index" title="Index" href="genindex.html" /><link rel="search" title="Search" href="search.html" /><link rel="next" title="Frequently Asked Questions" href="faq.html" /><link rel="prev" title="The pedalboard.io API" href="reference/pedalboard.io.html" />
<link rel="shortcut icon" href="_static/favicon.ico"/><meta name="generator" content="sphinx-4.4.0, furo 2022.06.21"/>
- <title>Examples - Pedalboard v0.5.9 Documentation</title>
+ <title>Examples - Pedalboard v0.5.10 Documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/styles/furo.css?digest=40978830699223671f4072448e654b5958f38b89" />
<link rel="stylesheet" type="text/css" href="_static/copybutton.css" />
@@ -138,7 +138,7 @@
</label>
</div>
<div class="header-center">
- <a href="index.html"><div class="brand">Pedalboard v0.5.9 Documentation</div></a>
+ <a href="index.html"><div class="brand">Pedalboard v0.5.10 Documentation</div></a>
</div>
<div class="header-right">
<div class="theme-toggle-container theme-toggle-header">
@@ -164,7 +164,7 @@
<img class="sidebar-logo" src="_static/pedalboard_logo_small.png" alt="Logo"/>
</div>
- <span class="sidebar-brand-text">Pedalboard v0.5.9 Documentation</span>
+ <span class="sidebar-brand-text">Pedalboard v0.5.10 Documentation</span>
</a><form class="sidebar-search-container" method="get" action="search.html" role="search">
<input class="sidebar-search" placeholder=Search name="q" aria-label="Search">
diff --git a/docs/faq.html b/docs/faq.html
index 879685b..442d017 100644
--- a/docs/faq.html
+++ b/docs/faq.html
@@ -10,7 +10,7 @@
<meta property="og:url" content="https://spotify.github.io/pedalboard/faq.html" />
-<meta property="og:site_name" content="Pedalboard v0.5.9 Documentation" />
+<meta property="og:site_name" content="Pedalboard v0.5.10 Documentation" />
<meta property="og:description" content="Can Pedalboard be used with live (real-time) audio?: Technically, yes, Pedalboard could be used with live audio input/output. See: Pull request #98, which contains an experimental live audio interf..." />
@@ -20,7 +20,7 @@
<link rel="index" title="Index" href="genindex.html" /><link rel="search" title="Search" href="search.html" /><link rel="next" title="Plugin Compatibility" href="compatibility.html" /><link rel="prev" title="Examples" href="examples.html" />
<link rel="shortcut icon" href="_static/favicon.ico"/><meta name="generator" content="sphinx-4.4.0, furo 2022.06.21"/>
- <title>Frequently Asked Questions - Pedalboard v0.5.9 Documentation</title>
+ <title>Frequently Asked Questions - Pedalboard v0.5.10 Documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/styles/furo.css?digest=40978830699223671f4072448e654b5958f38b89" />
<link rel="stylesheet" type="text/css" href="_static/copybutton.css" />
@@ -138,7 +138,7 @@
</label>
</div>
<div class="header-center">
- <a href="index.html"><div class="brand">Pedalboard v0.5.9 Documentation</div></a>
+ <a href="index.html"><div class="brand">Pedalboard v0.5.10 Documentation</div></a>
</div>
<div class="header-right">
<div class="theme-toggle-container theme-toggle-header">
@@ -164,7 +164,7 @@
<img class="sidebar-logo" src="_static/pedalboard_logo_small.png" alt="Logo"/>
</div>
- <span class="sidebar-brand-text">Pedalboard v0.5.9 Documentation</span>
+ <span class="sidebar-brand-text">Pedalboard v0.5.10 Documentation</span>
</a><form class="sidebar-search-container" method="get" action="search.html" role="search">
<input class="sidebar-search" placeholder=Search name="q" aria-label="Search">
diff --git a/docs/genindex.html b/docs/genindex.html
index 3b63d5f..c2a4d11 100644
--- a/docs/genindex.html
+++ b/docs/genindex.html
@@ -4,7 +4,7 @@
<meta name="viewport" content="width=device-width,initial-scale=1"/>
<meta name="color-scheme" content="light dark"><link rel="index" title="Index" href="#" /><link rel="search" title="Search" href="search.html" />
- <link rel="shortcut icon" href="_static/favicon.ico"/><meta name="generator" content="sphinx-4.4.0, furo 2022.06.21"/><title>Index - Pedalboard v0.5.9 Documentation</title>
+ <link rel="shortcut icon" href="_static/favicon.ico"/><meta name="generator" content="sphinx-4.4.0, furo 2022.06.21"/><title>Index - Pedalboard v0.5.10 Documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/styles/furo.css?digest=40978830699223671f4072448e654b5958f38b89" />
<link rel="stylesheet" type="text/css" href="_static/copybutton.css" />
@@ -122,7 +122,7 @@
</label>
</div>
<div class="header-center">
- <a href="index.html"><div class="brand">Pedalboard v0.5.9 Documentation</div></a>
+ <a href="index.html"><div class="brand">Pedalboard v0.5.10 Documentation</div></a>
</div>
<div class="header-right">
<div class="theme-toggle-container theme-toggle-header">
@@ -148,7 +148,7 @@
<img class="sidebar-logo" src="_static/pedalboard_logo_small.png" alt="Logo"/>
</div>
- <span class="sidebar-brand-text">Pedalboard v0.5.9 Documentation</span>
+ <span class="sidebar-brand-text">Pedalboard v0.5.10 Documentation</span>
</a><form class="sidebar-search-container" method="get" action="search.html" role="search">
<input class="sidebar-search" placeholder=Search name="q" aria-label="Search">
diff --git a/docs/index.html b/docs/index.html
index d9a2a04..0a6fdeb 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -10,7 +10,7 @@
<meta property="og:url" content="https://spotify.github.io/pedalboard/index.html" />
-<meta property="og:site_name" content="Pedalboard v0.5.9 Documentation" />
+<meta property="og:site_name" content="Pedalboard v0.5.10 Documentation" />
<meta property="og:description" content="๐ŸŽ› ๐Ÿ”Š Documentation for Pedalboard: A Python library for working with audio." />
@@ -20,7 +20,7 @@
<link rel="index" title="Index" href="genindex.html" /><link rel="search" title="Search" href="search.html" /><link rel="next" title="The pedalboard API" href="reference/pedalboard.html" />
<link rel="shortcut icon" href="_static/favicon.ico"/><meta name="generator" content="sphinx-4.4.0, furo 2022.06.21"/>
- <title>Pedalboard v0.5.9 Documentation</title>
+ <title>Pedalboard v0.5.10 Documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/styles/furo.css?digest=40978830699223671f4072448e654b5958f38b89" />
<link rel="stylesheet" type="text/css" href="_static/copybutton.css" />
@@ -138,7 +138,7 @@
</label>
</div>
<div class="header-center">
- <a href="#"><div class="brand">Pedalboard v0.5.9 Documentation</div></a>
+ <a href="#"><div class="brand">Pedalboard v0.5.10 Documentation</div></a>
</div>
<div class="header-right">
<div class="theme-toggle-container theme-toggle-header">
@@ -164,7 +164,7 @@
<img class="sidebar-logo" src="_static/pedalboard_logo_small.png" alt="Logo"/>
</div>
- <span class="sidebar-brand-text">Pedalboard v0.5.9 Documentation</span>
+ <span class="sidebar-brand-text">Pedalboard v0.5.10 Documentation</span>
</a><form class="sidebar-search-container" method="get" action="search.html" role="search">
<input class="sidebar-search" placeholder=Search name="q" aria-label="Search">
diff --git a/docs/internals.html b/docs/internals.html
index 25aefad..48a80e6 100644
--- a/docs/internals.html
+++ b/docs/internals.html
@@ -10,7 +10,7 @@
<meta property="og:url" content="https://spotify.github.io/pedalboard/internals.html" />
-<meta property="og:site_name" content="Pedalboard v0.5.9 Documentation" />
+<meta property="og:site_name" content="Pedalboard v0.5.10 Documentation" />
<meta property="og:description" content="Pedalboard is a Python wrapper around JUCE, an open-source cross-platform C++ library for developing audio applications. Most of Pedalboard is written in C++ using pybind11, a library for binding C..." />
@@ -20,7 +20,7 @@
<link rel="index" title="Index" href="genindex.html" /><link rel="search" title="Search" href="search.html" /><link rel="next" title="License" href="license.html" /><link rel="prev" title="Plugin Compatibility" href="compatibility.html" />
<link rel="shortcut icon" href="_static/favicon.ico"/><meta name="generator" content="sphinx-4.4.0, furo 2022.06.21"/>
- <title>Pedalboard Internals - Pedalboard v0.5.9 Documentation</title>
+ <title>Pedalboard Internals - Pedalboard v0.5.10 Documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/styles/furo.css?digest=40978830699223671f4072448e654b5958f38b89" />
<link rel="stylesheet" type="text/css" href="_static/copybutton.css" />
@@ -138,7 +138,7 @@
</label>
</div>
<div class="header-center">
- <a href="index.html"><div class="brand">Pedalboard v0.5.9 Documentation</div></a>
+ <a href="index.html"><div class="brand">Pedalboard v0.5.10 Documentation</div></a>
</div>
<div class="header-right">
<div class="theme-toggle-container theme-toggle-header">
@@ -164,7 +164,7 @@
<img class="sidebar-logo" src="_static/pedalboard_logo_small.png" alt="Logo"/>
</div>
- <span class="sidebar-brand-text">Pedalboard v0.5.9 Documentation</span>
+ <span class="sidebar-brand-text">Pedalboard v0.5.10 Documentation</span>
</a><form class="sidebar-search-container" method="get" action="search.html" role="search">
<input class="sidebar-search" placeholder=Search name="q" aria-label="Search">
diff --git a/docs/license.html b/docs/license.html
index f5f171f..161d724 100644
--- a/docs/license.html
+++ b/docs/license.html
@@ -10,7 +10,7 @@
<meta property="og:url" content="https://spotify.github.io/pedalboard/license.html" />
-<meta property="og:site_name" content="Pedalboard v0.5.9 Documentation" />
+<meta property="og:site_name" content="Pedalboard v0.5.10 Documentation" />
<meta property="og:description" content="pedalboard is Copyright 2021-2022 Spotify AB. pedalboard is licensed under the GNU General Public License v3. pedalboard includes a number of libraries that are statically compiled, and which carry..." />
@@ -20,7 +20,7 @@
<link rel="index" title="Index" href="genindex.html" /><link rel="search" title="Search" href="search.html" /><link rel="prev" title="Pedalboard Internals" href="internals.html" />
<link rel="shortcut icon" href="_static/favicon.ico"/><meta name="generator" content="sphinx-4.4.0, furo 2022.06.21"/>
- <title>License - Pedalboard v0.5.9 Documentation</title>
+ <title>License - Pedalboard v0.5.10 Documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/styles/furo.css?digest=40978830699223671f4072448e654b5958f38b89" />
<link rel="stylesheet" type="text/css" href="_static/copybutton.css" />
@@ -138,7 +138,7 @@
</label>
</div>
<div class="header-center">
- <a href="index.html"><div class="brand">Pedalboard v0.5.9 Documentation</div></a>
+ <a href="index.html"><div class="brand">Pedalboard v0.5.10 Documentation</div></a>
</div>
<div class="header-right">
<div class="theme-toggle-container theme-toggle-header">
@@ -164,7 +164,7 @@
<img class="sidebar-logo" src="_static/pedalboard_logo_small.png" alt="Logo"/>
</div>
- <span class="sidebar-brand-text">Pedalboard v0.5.9 Documentation</span>
+ <span class="sidebar-brand-text">Pedalboard v0.5.10 Documentation</span>
</a><form class="sidebar-search-container" method="get" action="search.html" role="search">
<input class="sidebar-search" placeholder=Search name="q" aria-label="Search">
diff --git a/docs/py-modindex.html b/docs/py-modindex.html
index d74673f..661d890 100644
--- a/docs/py-modindex.html
+++ b/docs/py-modindex.html
@@ -4,7 +4,7 @@
<meta name="viewport" content="width=device-width,initial-scale=1"/>
<meta name="color-scheme" content="light dark"><link rel="index" title="Index" href="genindex.html" /><link rel="search" title="Search" href="search.html" />
- <link rel="shortcut icon" href="_static/favicon.ico"/><meta name="generator" content="sphinx-4.4.0, furo 2022.06.21"/><title>Python Module Index - Pedalboard v0.5.9 Documentation</title>
+ <link rel="shortcut icon" href="_static/favicon.ico"/><meta name="generator" content="sphinx-4.4.0, furo 2022.06.21"/><title>Python Module Index - Pedalboard v0.5.10 Documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/styles/furo.css?digest=40978830699223671f4072448e654b5958f38b89" />
<link rel="stylesheet" type="text/css" href="_static/copybutton.css" />
@@ -122,7 +122,7 @@
</label>
</div>
<div class="header-center">
- <a href="index.html"><div class="brand">Pedalboard v0.5.9 Documentation</div></a>
+ <a href="index.html"><div class="brand">Pedalboard v0.5.10 Documentation</div></a>
</div>
<div class="header-right">
<div class="theme-toggle-container theme-toggle-header">
@@ -148,7 +148,7 @@
<img class="sidebar-logo" src="_static/pedalboard_logo_small.png" alt="Logo"/>
</div>
- <span class="sidebar-brand-text">Pedalboard v0.5.9 Documentation</span>
+ <span class="sidebar-brand-text">Pedalboard v0.5.10 Documentation</span>
</a><form class="sidebar-search-container" method="get" action="search.html" role="search">
<input class="sidebar-search" placeholder=Search name="q" aria-label="Search">
diff --git a/docs/reference/pedalboard.html b/docs/reference/pedalboard.html
index 47d5a5d..e40e47b 100644
--- a/docs/reference/pedalboard.html
+++ b/docs/reference/pedalboard.html
@@ -10,7 +10,7 @@
<meta property="og:url" content="https://spotify.github.io/pedalboard/reference/pedalboard.html" />
-<meta property="og:site_name" content="Pedalboard v0.5.9 Documentation" />
+<meta property="og:site_name" content="Pedalboard v0.5.10 Documentation" />
<meta property="og:description" content="This module provides classes and functions for adding effects to audio. Most classes in this module are subclasses of Plugin, each of which allows applying effects to an audio buffer or stream. For..." />
@@ -20,7 +20,7 @@
<link rel="index" title="Index" href="../genindex.html" /><link rel="search" title="Search" href="../search.html" /><link rel="next" title="The pedalboard.io API" href="pedalboard.io.html" /><link rel="prev" title="Features" href="../index.html" />
<link rel="shortcut icon" href="../_static/favicon.ico"/><meta name="generator" content="sphinx-4.4.0, furo 2022.06.21"/>
- <title>The pedalboard API - Pedalboard v0.5.9 Documentation</title>
+ <title>The pedalboard API - Pedalboard v0.5.10 Documentation</title>
<link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../_static/styles/furo.css?digest=40978830699223671f4072448e654b5958f38b89" />
<link rel="stylesheet" type="text/css" href="../_static/copybutton.css" />
@@ -138,7 +138,7 @@
</label>
</div>
<div class="header-center">
- <a href="../index.html"><div class="brand">Pedalboard v0.5.9 Documentation</div></a>
+ <a href="../index.html"><div class="brand">Pedalboard v0.5.10 Documentation</div></a>
</div>
<div class="header-right">
<div class="theme-toggle-container theme-toggle-header">
@@ -164,7 +164,7 @@
<img class="sidebar-logo" src="../_static/pedalboard_logo_small.png" alt="Logo"/>
</div>
- <span class="sidebar-brand-text">Pedalboard v0.5.9 Documentation</span>
+ <span class="sidebar-brand-text">Pedalboard v0.5.10 Documentation</span>
</a><form class="sidebar-search-container" method="get" action="../search.html" role="search">
<input class="sidebar-search" placeholder=Search name="q" aria-label="Search">
diff --git a/docs/reference/pedalboard.io.html b/docs/reference/pedalboard.io.html
index fa76825..c5d1dfb 100644
--- a/docs/reference/pedalboard.io.html
+++ b/docs/reference/pedalboard.io.html
@@ -10,7 +10,7 @@
<meta property="og:url" content="https://spotify.github.io/pedalboard/reference/pedalboard.io.html" />
-<meta property="og:site_name" content="Pedalboard v0.5.9 Documentation" />
+<meta property="og:site_name" content="Pedalboard v0.5.10 Documentation" />
<meta property="og:description" content="This module provides classes and functions for reading and writing audio files. Introduced in v0.5.1." />
@@ -20,7 +20,7 @@
<link rel="index" title="Index" href="../genindex.html" /><link rel="search" title="Search" href="../search.html" /><link rel="next" title="Examples" href="../examples.html" /><link rel="prev" title="The pedalboard API" href="pedalboard.html" />
<link rel="shortcut icon" href="../_static/favicon.ico"/><meta name="generator" content="sphinx-4.4.0, furo 2022.06.21"/>
- <title>The pedalboard.io API - Pedalboard v0.5.9 Documentation</title>
+ <title>The pedalboard.io API - Pedalboard v0.5.10 Documentation</title>
<link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../_static/styles/furo.css?digest=40978830699223671f4072448e654b5958f38b89" />
<link rel="stylesheet" type="text/css" href="../_static/copybutton.css" />
@@ -138,7 +138,7 @@
</label>
</div>
<div class="header-center">
- <a href="../index.html"><div class="brand">Pedalboard v0.5.9 Documentation</div></a>
+ <a href="../index.html"><div class="brand">Pedalboard v0.5.10 Documentation</div></a>
</div>
<div class="header-right">
<div class="theme-toggle-container theme-toggle-header">
@@ -164,7 +164,7 @@
<img class="sidebar-logo" src="../_static/pedalboard_logo_small.png" alt="Logo"/>
</div>
- <span class="sidebar-brand-text">Pedalboard v0.5.9 Documentation</span>
+ <span class="sidebar-brand-text">Pedalboard v0.5.10 Documentation</span>
</a><form class="sidebar-search-container" method="get" action="../search.html" role="search">
<input class="sidebar-search" placeholder=Search name="q" aria-label="Search">
diff --git a/docs/search.html b/docs/search.html
index d16802e..de4e215 100644
--- a/docs/search.html
+++ b/docs/search.html
@@ -4,7 +4,7 @@
<meta name="viewport" content="width=device-width,initial-scale=1"/>
<meta name="color-scheme" content="light dark"><link rel="index" title="Index" href="genindex.html" /><link rel="search" title="Search" href="#" />
- <link rel="shortcut icon" href="_static/favicon.ico"/><meta name="generator" content="sphinx-4.4.0, furo 2022.06.21"/><title>Search - Pedalboard v0.5.9 Documentation</title><link rel="stylesheet" type="text/css" href="_static/pygments.css" />
+ <link rel="shortcut icon" href="_static/favicon.ico"/><meta name="generator" content="sphinx-4.4.0, furo 2022.06.21"/><title>Search - Pedalboard v0.5.10 Documentation</title><link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/styles/furo.css?digest=40978830699223671f4072448e654b5958f38b89" />
<link rel="stylesheet" type="text/css" href="_static/copybutton.css" />
<link rel="stylesheet" type="text/css" href="_static/styles/furo-extensions.css?digest=30d1aed668e5c3a91c3e3bf6a60b675221979f0e" />
@@ -121,7 +121,7 @@
</label>
</div>
<div class="header-center">
- <a href="index.html"><div class="brand">Pedalboard v0.5.9 Documentation</div></a>
+ <a href="index.html"><div class="brand">Pedalboard v0.5.10 Documentation</div></a>
</div>
<div class="header-right">
<div class="theme-toggle-container theme-toggle-header">
@@ -147,7 +147,7 @@
<img class="sidebar-logo" src="_static/pedalboard_logo_small.png" alt="Logo"/>
</div>
- <span class="sidebar-brand-text">Pedalboard v0.5.9 Documentation</span>
+ <span class="sidebar-brand-text">Pedalboard v0.5.10 Documentation</span>
</a><form class="sidebar-search-container" method="get" action="#" role="search">
<input class="sidebar-search" placeholder=Search name="q" aria-label="Search">
diff --git a/pedalboard/ExternalPlugin.h b/pedalboard/ExternalPlugin.h
index 3dc6d89..cd15ae0 100644
--- a/pedalboard/ExternalPlugin.h
+++ b/pedalboard/ExternalPlugin.h
@@ -992,8 +992,7 @@ inline void init_external_plugins(py::module &m) {
"A wrapper around any Steinbergยฎ VST3 audio effect plugin. Note that "
"plugins must already support the operating system currently in use "
"(i.e.: if you're running Linux but trying to open a VST that does not "
- "support Linux, this will fail).",
- py::dynamic_attr())
+ "support Linux, this will fail).")
.def(py::init([](std::string &pathToPluginFile,
std::optional<std::string> pluginName) {
return std::make_unique<ExternalPlugin<juce::VST3PluginFormat>>(
@@ -1051,8 +1050,7 @@ inline void init_external_plugins(py::module &m) {
std::shared_ptr<ExternalPlugin<juce::AudioUnitPluginFormat>>>(
m, "_AudioUnitPlugin",
"A wrapper around any Apple Audio Unit audio effect plugin. Only "
- "available on macOS.",
- py::dynamic_attr())
+ "available on macOS.")
.def(py::init([](std::string &pathToPluginFile,
std::optional<std::string> pluginName) {
return std::make_unique<
diff --git a/pedalboard/version.py b/pedalboard/version.py
index fda3e3e..5becb84 100644
--- a/pedalboard/version.py
+++ b/pedalboard/version.py
@@ -17,6 +17,6 @@
MAJOR = 0
MINOR = 5
-PATCH = 9
+PATCH = 10
__version__ = "%d.%d.%d" % (MAJOR, MINOR, PATCH)
diff --git a/scripts/generate_type_stubs_and_docs.py b/scripts/generate_type_stubs_and_docs.py
index 6c17c83..e70648a 100644
--- a/scripts/generate_type_stubs_and_docs.py
+++ b/scripts/generate_type_stubs_and_docs.py
@@ -209,7 +209,7 @@ def main():
parser.add_argument(
"--skip-comparing",
nargs="*",
- default=["searchindex.js"],
+ default=["searchindex.js", "pygments.css"],
help=(
"If set and if --check is passed, the provided filenames will be ignored when comparing"
" expected file contents against actual file contents."
diff --git a/tests/test_memory_leaks.py b/tests/test_memory_leaks.py
index d2508fa..adfd57b 100644
--- a/tests/test_memory_leaks.py
+++ b/tests/test_memory_leaks.py
@@ -22,17 +22,22 @@ import pytest
from .test_external_plugins import load_test_plugin, AVAILABLE_PLUGINS_IN_TEST_ENVIRONMENT
+def get_first_parameter_from(plugin):
+ param_name, param = next(
+ iter([(name, param) for name, param in plugin.parameters.items() if param.type is float])
+ )
+ value = getattr(plugin, param_name)
+ return param_name, param, value
+
+
@pytest.mark.parametrize("plugin_path", AVAILABLE_PLUGINS_IN_TEST_ENVIRONMENT)
def test_plugin_can_be_garbage_collected(plugin_path: str):
# Load a VST3 or Audio Unit plugin from disk:
plugin = load_test_plugin(plugin_path, disable_caching=True)
_plugin_ref = weakref.ref(plugin)
- param_name, param = next(
- iter([(name, param) for name, param in plugin.parameters.items() if param.type is float])
- )
- value = getattr(plugin, param_name)
+ param_name, param, value = get_first_parameter_from(plugin)
initial_value = float(value)
# After the plugin is no longer in scope, it should be garbage collectable
@@ -49,6 +54,13 @@ def test_plugin_can_be_garbage_collected(plugin_path: str):
# Once we delete that parameter, the plugin should be releasable
del param
gc.collect()
- assert not _plugin_ref()
+
+ # Do this dance because calling gc.get_referrers with None would return a huge amount:
+ referrers = None
+ if _plugin_ref() is not None:
+ referrers = gc.get_referrers(_plugin_ref())
+
+ assert _plugin_ref() is None, f"Expected plugin to have no referrers, but found: {referrers}"
+
assert set(dir(initial_value)).issubset(set(dir(value)))
assert value == initial_value # value should still not change