🎛 🔊 A Python library for audio.
C audioaudio-processingaudio-productionaudio-researchaudio-unitaugmentationjucemachine-learningpybind11pythonvst3vst3-host
Rename pedalboard internal module to _pedalboard.
Peter Sobotcc8b7f701599
diff --git a/docs/_sources/examples.rst.txt b/docs/_sources/examples.rst.txtindex ed86df0..fa0387b 100644--- a/docs/_sources/examples.rst.txt+++ b/docs/_sources/examples.rst.txt@@ -2,5 +2,5 @@ Examples========.. mdinclude:: ../../README.md- :start-line: 73- :end-line: 209+ :start-line: 72+ :end-line: 222diff --git a/docs/compatibility.html b/docs/compatibility.htmlindex 02f7bdb..d334ba8 100644--- a/docs/compatibility.html+++ b/docs/compatibility.html@@ -172,8 +172,6 @@</ul><ul class="current"><li class="toctree-l1"><a class="reference internal" href="examples.html">Examples</a></li>-<li class="toctree-l1"><a class="reference internal" href="examples.html#put-a-compressor-at-the-front-of-the-chain">Put a compressor at the front of the chain:</a></li>-<li class="toctree-l1"><a class="reference internal" href="examples.html#run-all-of-these-pedalboards-simultaneously-with-the-mix-plugin">Run all of these pedalboards simultaneously with the Mix plugin:</a></li><li class="toctree-l1"><a class="reference internal" href="faq.html">Frequently Asked Questions</a></li><li class="toctree-l1 current current-page"><a class="current reference internal" href="#">Plugin Compatibility</a></li><li class="toctree-l1"><a class="reference internal" href="internals.html">Pedalboard Internals</a></li>diff --git a/docs/examples.html b/docs/examples.htmlindex 56516b3..95358e1 100644--- a/docs/examples.html+++ b/docs/examples.html@@ -172,8 +172,6 @@</ul><ul class="current"><li class="toctree-l1 current current-page"><a class="current reference internal" href="#">Examples</a></li>-<li class="toctree-l1"><a class="reference internal" href="#put-a-compressor-at-the-front-of-the-chain">Put a compressor at the front of the chain:</a></li>-<li class="toctree-l1"><a class="reference internal" href="#run-all-of-these-pedalboards-simultaneously-with-the-mix-plugin">Run all of these pedalboards simultaneously with the Mix plugin:</a></li><li class="toctree-l1"><a class="reference internal" href="faq.html">Frequently Asked Questions</a></li><li class="toctree-l1"><a class="reference internal" href="compatibility.html">Plugin Compatibility</a></li><li class="toctree-l1"><a class="reference internal" href="internals.html">Pedalboard Internals</a></li>@@ -326,42 +324,47 @@ see <cite>the documentation for ``pedalboard.Plugin.process`</cite> <<a classmultiple Pedalboards in parallel on the same audio. <code class="docutils literal notranslate"><span class="pre">Pedalboard</span></code>objects are themselves <code class="docutils literal notranslate"><span class="pre">Plugin</span></code> objects, so you can nest themas much as you like:</p>-<p><a href="#id5"><span class="problematic" id="id6">``</span></a><a href="#id7"><span class="problematic" id="id8">`</span></a>python-from pedalboard import Pedalboard, Compressor, Delay, Distortion, Gain, PitchShift, Reverb, Mix</p>-<p>passthrough = Gain(gain_db=0)</p>-<dl class="simple">-<dt>delay_and_pitch_shift = Pedalboard([</dt><dd><p>Delay(delay_seconds=0.25, mix=1.0),-PitchShift(semitones=7),-Gain(gain_db=-3),</p>-</dd>-</dl>-<p>])</p>-<dl class="simple">-<dt>delay_longer_and_more_pitch_shift = Pedalboard([</dt><dd><p>Delay(delay_seconds=0.5, mix=1.0),-PitchShift(semitones=12),-Gain(gain_db=-6),</p>-</dd>-</dl>-<p>])</p>-<p>board = Pedalboard([</p>-</section>+<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="kn">from</span> <span class="nn">pedalboard</span> <span class="kn">import</span> <span class="n">Pedalboard</span><span class="p">,</span> <span class="n">Compressor</span><span class="p">,</span> <span class="n">Delay</span><span class="p">,</span> <span class="n">Distortion</span><span class="p">,</span> <span class="n">Gain</span><span class="p">,</span> <span class="n">PitchShift</span><span class="p">,</span> <span class="n">Reverb</span><span class="p">,</span> <span class="n">Mix</span>++<span class="n">passthrough</span> <span class="o">=</span> <span class="n">Gain</span><span class="p">(</span><span class="n">gain_db</span><span class="o">=</span><span class="mi">0</span><span class="p">)</span>++<span class="n">delay_and_pitch_shift</span> <span class="o">=</span> <span class="n">Pedalboard</span><span class="p">([</span>+ <span class="n">Delay</span><span class="p">(</span><span class="n">delay_seconds</span><span class="o">=</span><span class="mf">0.25</span><span class="p">,</span> <span class="n">mix</span><span class="o">=</span><span class="mf">1.0</span><span class="p">),</span>+ <span class="n">PitchShift</span><span class="p">(</span><span class="n">semitones</span><span class="o">=</span><span class="mi">7</span><span class="p">),</span>+ <span class="n">Gain</span><span class="p">(</span><span class="n">gain_db</span><span class="o">=-</span><span class="mi">3</span><span class="p">),</span>+<span class="p">])</span>++<span class="n">delay_longer_and_more_pitch_shift</span> <span class="o">=</span> <span class="n">Pedalboard</span><span class="p">([</span>+ <span class="n">Delay</span><span class="p">(</span><span class="n">delay_seconds</span><span class="o">=</span><span class="mf">0.5</span><span class="p">,</span> <span class="n">mix</span><span class="o">=</span><span class="mf">1.0</span><span class="p">),</span>+ <span class="n">PitchShift</span><span class="p">(</span><span class="n">semitones</span><span class="o">=</span><span class="mi">12</span><span class="p">),</span>+ <span class="n">Gain</span><span class="p">(</span><span class="n">gain_db</span><span class="o">=-</span><span class="mi">6</span><span class="p">),</span>+<span class="p">])</span>++<span class="n">board</span> <span class="o">=</span> <span class="n">Pedalboard</span><span class="p">([</span>+ <span class="c1"># Put a compressor at the front of the chain:</span>+ <span class="n">Compressor</span><span class="p">(),</span>+ <span class="c1"># Run all of these pedalboards simultaneously with the Mix plugin:</span>+ <span class="n">Mix</span><span class="p">([</span>+ <span class="n">passthrough</span><span class="p">,</span>+ <span class="n">delay_and_pitch_shift</span><span class="p">,</span>+ <span class="n">delay_longer_and_more_pitch_shift</span><span class="p">,</span>+ <span class="p">]),</span>+ <span class="c1"># Add a reverb on the final mix:</span>+ <span class="n">Reverb</span><span class="p">()</span>+<span class="p">])</span>+</pre></div>+</div>+<p>For more examples, see:</p>+<ul class="simple">+<li><p><a class="reference external" href="https://github.com/spotify/pedalboard/tree/master/examples">the “examples” folder of this repository</a></p></li>+<li><p><a class="reference external" href="https://colab.research.google.com/drive/1bHjhJj1aCoOlXKl_lOfG99Xs3qWVrhch">the “Pedalboard Demo” Colab notebook</a></p></li>+<li><p><a class="reference external" href="https://www.youtube.com/watch?v=NYhkqXpFAlg">*Working with Audio in Python (feat. Pedalboard)* by Peter Sobot at EuroPython 2022</a></p></li>+<li><p><a class="reference external" href="https://huggingface.co/spaces/akhaliq/pedalboard">an interactive web demo on Hugging Face Spaces and Gradio</a> (via <a class="reference external" href="https://github.com/AK391">@AK391</a>)</p></li>+</ul>+<section id="contributing">+<h3>Contributing<a class="headerlink" href="#contributing" title="Permalink to this heading">#</a></h3></section>-<section id="put-a-compressor-at-the-front-of-the-chain">-<h1>Put a compressor at the front of the chain:<a class="headerlink" href="#put-a-compressor-at-the-front-of-the-chain" title="Permalink to this heading">#</a></h1>-<blockquote>-<div><p>Compressor(),</p>-</div></blockquote></section>-<section id="run-all-of-these-pedalboards-simultaneously-with-the-mix-plugin">-<h1>Run all of these pedalboards simultaneously with the Mix plugin:<a class="headerlink" href="#run-all-of-these-pedalboards-simultaneously-with-the-mix-plugin" title="Permalink to this heading">#</a></h1>-<blockquote>-<div><dl class="simple">-<dt>Mix([</dt><dd><p>passthrough,-delay_and_pitch_shift,-delay_longer_and_more_pitch_shift,</p>-</dd>-</dl>-</div></blockquote></section></article>@@ -431,11 +434,12 @@ delay_longer_and_more_pitch_shift,</p><li><a class="reference internal" href="#quick-start">Quick start</a></li><li><a class="reference internal" href="#making-a-guitar-style-pedalboard">Making a guitar-style pedalboard</a></li><li><a class="reference internal" href="#using-vst3-or-audio-unit-plugins">Using VST3® or Audio Unit plugins</a></li>-<li><a class="reference internal" href="#creating-parallel-effects-chains">Creating parallel effects chains</a></li>+<li><a class="reference internal" href="#creating-parallel-effects-chains">Creating parallel effects chains</a><ul>+<li><a class="reference internal" href="#contributing">Contributing</a></li>+</ul>+</li></ul></li>-<li><a class="reference internal" href="#put-a-compressor-at-the-front-of-the-chain">Put a compressor at the front of the chain:</a></li>-<li><a class="reference internal" href="#run-all-of-these-pedalboards-simultaneously-with-the-mix-plugin">Run all of these pedalboards simultaneously with the Mix plugin:</a></li></ul></div>diff --git a/docs/faq.html b/docs/faq.htmlindex 1940e3d..3a874ef 100644--- a/docs/faq.html+++ b/docs/faq.html@@ -172,8 +172,6 @@</ul><ul class="current"><li class="toctree-l1"><a class="reference internal" href="examples.html">Examples</a></li>-<li class="toctree-l1"><a class="reference internal" href="examples.html#put-a-compressor-at-the-front-of-the-chain">Put a compressor at the front of the chain:</a></li>-<li class="toctree-l1"><a class="reference internal" href="examples.html#run-all-of-these-pedalboards-simultaneously-with-the-mix-plugin">Run all of these pedalboards simultaneously with the Mix plugin:</a></li><li class="toctree-l1 current current-page"><a class="current reference internal" href="#">Frequently Asked Questions</a></li><li class="toctree-l1"><a class="reference internal" href="compatibility.html">Plugin Compatibility</a></li><li class="toctree-l1"><a class="reference internal" href="internals.html">Pedalboard Internals</a></li>diff --git a/docs/genindex.html b/docs/genindex.htmlindex 50a09e3..30fe9db 100644--- a/docs/genindex.html+++ b/docs/genindex.html@@ -162,8 +162,6 @@</ul><ul><li class="toctree-l1"><a class="reference internal" href="examples.html">Examples</a></li>-<li class="toctree-l1"><a class="reference internal" href="examples.html#put-a-compressor-at-the-front-of-the-chain">Put a compressor at the front of the chain:</a></li>-<li class="toctree-l1"><a class="reference internal" href="examples.html#run-all-of-these-pedalboards-simultaneously-with-the-mix-plugin">Run all of these pedalboards simultaneously with the Mix plugin:</a></li><li class="toctree-l1"><a class="reference internal" href="faq.html">Frequently Asked Questions</a></li><li class="toctree-l1"><a class="reference internal" href="compatibility.html">Plugin Compatibility</a></li><li class="toctree-l1"><a class="reference internal" href="internals.html">Pedalboard Internals</a></li>@@ -205,25 +203,17 @@<section class="genindex-section"><h1 id="index">Index</h1>- <div class="genindex-jumpbox"><a href="#A"><strong>A</strong></a> | <a href="#B"><strong>B</strong></a> | <a href="#C"><strong>C</strong></a> | <a href="#D"><strong>D</strong></a> | <a href="#F"><strong>F</strong></a> | <a href="#G"><strong>G</strong></a> | <a href="#H"><strong>H</strong></a> | <a href="#I"><strong>I</strong></a> | <a href="#L"><strong>L</strong></a> | <a href="#M"><strong>M</strong></a> | <a href="#N"><strong>N</strong></a> | <a href="#P"><strong>P</strong></a> | <a href="#Q"><strong>Q</strong></a> | <a href="#R"><strong>R</strong></a> | <a href="#S"><strong>S</strong></a> | <a href="#T"><strong>T</strong></a> | <a href="#V"><strong>V</strong></a> | <a href="#W"><strong>W</strong></a> | <a href="#Z"><strong>Z</strong></a></div>+ <div class="genindex-jumpbox"><a href="#A"><strong>A</strong></a> | <a href="#B"><strong>B</strong></a> | <a href="#C"><strong>C</strong></a> | <a href="#D"><strong>D</strong></a> | <a href="#F"><strong>F</strong></a> | <a href="#G"><strong>G</strong></a> | <a href="#H"><strong>H</strong></a> | <a href="#I"><strong>I</strong></a> | <a href="#L"><strong>L</strong></a> | <a href="#M"><strong>M</strong></a> | <a href="#N"><strong>N</strong></a> | <a href="#P"><strong>P</strong></a> | <a href="#Q"><strong>Q</strong></a> | <a href="#R"><strong>R</strong></a> | <a href="#S"><strong>S</strong></a> | <a href="#T"><strong>T</strong></a> | <a href="#W"><strong>W</strong></a> | <a href="#Z"><strong>Z</strong></a></div></section><section id="A" class="genindex-section"><h2>A</h2><table style="width: 100%" class="indextable genindextable"><tr><td style="width: 33%; vertical-align: top;"><ul>- <li><a href="reference/pedalboard.html#pedalboard.Chain.append">append() (pedalboard.Chain method)</a>-- <ul>- <li><a href="reference/pedalboard.html#pedalboard.Mix.append">(pedalboard.Mix method)</a>+ <li><a href="reference/pedalboard.html#pedalboard.Mix.append">append() (pedalboard.Mix method)</a></li>- <li><a href="reference/pedalboard.html#pedalboard.Pedalboard.append">(pedalboard.Pedalboard method)</a>-</li>- </ul></li></ul></td><td style="width: 33%; vertical-align: top;"><ul><li><a href="reference/pedalboard.io.html#pedalboard.io.AudioFile">AudioFile (class in pedalboard.io)</a>-</li>- <li><a href="reference/pedalboard.html#pedalboard.AudioUnitPlugin">AudioUnitPlugin (class in pedalboard)</a></li></ul></td></tr></table>@@ -252,8 +242,6 @@<table style="width: 100%" class="indextable genindextable"><tr><td style="width: 33%; vertical-align: top;"><ul><li><a href="reference/pedalboard.html#pedalboard.Resample.Quality.CatmullRom">CatmullRom (pedalboard.Resample.Quality attribute)</a>-</li>- <li><a href="reference/pedalboard.html#pedalboard.Chain">Chain (class in pedalboard)</a></li><li><a href="reference/pedalboard.html#pedalboard.Chorus">Chorus (class in pedalboard)</a></li>@@ -339,12 +327,6 @@<td style="width: 33%; vertical-align: top;"><ul><li><a href="reference/pedalboard.html#pedalboard.Gain">Gain (class in pedalboard)</a></li>- <li><a href="reference/pedalboard.html#pedalboard.AudioUnitPlugin.get_plugin_names_for_file">get_plugin_names_for_file() (pedalboard.AudioUnitPlugin static method)</a>-- <ul>- <li><a href="reference/pedalboard.html#pedalboard.VST3Plugin.get_plugin_names_for_file">(pedalboard.VST3Plugin static method)</a>-</li>- </ul></li></ul></td><td style="width: 33%; vertical-align: top;"><ul><li><a href="reference/pedalboard.html#pedalboard.GSMFullRateCompressor">GSMFullRateCompressor (class in pedalboard)</a>@@ -379,16 +361,10 @@</li><li><a href="reference/pedalboard.io.html#pedalboard.io.StreamResampler.input_latency">input_latency (pedalboard.io.StreamResampler property)</a></li>- <li><a href="reference/pedalboard.html#pedalboard.Chain.insert">insert() (pedalboard.Chain method)</a>-- <ul>- <li><a href="reference/pedalboard.html#pedalboard.Mix.insert">(pedalboard.Mix method)</a>-</li>- <li><a href="reference/pedalboard.html#pedalboard.Pedalboard.insert">(pedalboard.Pedalboard method)</a>-</li>- </ul></li></ul></td><td style="width: 33%; vertical-align: top;"><ul>+ <li><a href="reference/pedalboard.html#pedalboard.Mix.insert">insert() (pedalboard.Mix method)</a>+</li><li><a href="reference/pedalboard.html#pedalboard.Invert">Invert (class in pedalboard)</a></li></ul></td>@@ -406,14 +382,10 @@<li><a href="reference/pedalboard.html#pedalboard.Resample.Quality.Lagrange">Lagrange (pedalboard.Resample.Quality attribute)</a></li><li><a href="reference/pedalboard.html#pedalboard.Limiter">Limiter (class in pedalboard)</a>-</li>- <li><a href="reference/pedalboard.html#pedalboard.Resample.Quality.Linear">Linear (pedalboard.Resample.Quality attribute)</a></li></ul></td><td style="width: 33%; vertical-align: top;"><ul>- <li><a href="reference/pedalboard.html#pedalboard.load_plugin">load_plugin() (in module pedalboard)</a>-</li>- <li><a href="reference/pedalboard.html#pedalboard.VST3Plugin.load_preset">load_preset() (pedalboard.VST3Plugin method)</a>+ <li><a href="reference/pedalboard.html#pedalboard.Resample.Quality.Linear">Linear (pedalboard.Resample.Quality attribute)</a></li><li><a href="reference/pedalboard.html#pedalboard.LowpassFilter">LowpassFilter (class in pedalboard)</a></li>@@ -454,20 +426,16 @@<h2>N</h2><table style="width: 100%" class="indextable genindextable"><tr><td style="width: 33%; vertical-align: top;"><ul>- <li><a href="reference/pedalboard.html#pedalboard.AudioUnitPlugin.name">name (pedalboard.AudioUnitPlugin property)</a>+ <li><a href="reference/pedalboard.io.html#pedalboard.io.ReadableAudioFile.name">name (pedalboard.io.ReadableAudioFile property)</a><ul>- <li><a href="reference/pedalboard.io.html#pedalboard.io.ReadableAudioFile.name">(pedalboard.io.ReadableAudioFile property)</a>-</li><li><a href="reference/pedalboard.io.html#pedalboard.io.ResampledReadableAudioFile.name">(pedalboard.io.ResampledReadableAudioFile property)</a>-</li>- <li><a href="reference/pedalboard.html#pedalboard.VST3Plugin.name">(pedalboard.VST3Plugin property)</a></li></ul></li>- </ul></td>- <td style="width: 33%; vertical-align: top;"><ul><li><a href="reference/pedalboard.html#pedalboard.NoiseGate">NoiseGate (class in pedalboard)</a></li>+ </ul></td>+ <td style="width: 33%; vertical-align: top;"><ul><li><a href="reference/pedalboard.io.html#pedalboard.io.ReadableAudioFile.num_channels">num_channels (pedalboard.io.ReadableAudioFile property)</a><ul>@@ -495,8 +463,6 @@<li><a href="reference/pedalboard.html#module-pedalboard">module</a></li></ul></li>- <li><a href="reference/pedalboard.html#pedalboard.Pedalboard">Pedalboard (class in pedalboard)</a>-</li><li>pedalboard.io@@ -512,13 +478,9 @@</li><li><a href="reference/pedalboard.html#pedalboard.PluginContainer">PluginContainer (class in pedalboard)</a></li>- <li><a href="reference/pedalboard.html#pedalboard.AudioUnitPlugin.process">process() (pedalboard.AudioUnitPlugin method)</a>+ <li><a href="reference/pedalboard.html#pedalboard.Bitcrush.process">process() (pedalboard.Bitcrush method)</a><ul>- <li><a href="reference/pedalboard.html#pedalboard.Bitcrush.process">(pedalboard.Bitcrush method)</a>-</li>- <li><a href="reference/pedalboard.html#pedalboard.Chain.process">(pedalboard.Chain method)</a>-</li><li><a href="reference/pedalboard.html#pedalboard.Chorus.process">(pedalboard.Chorus method)</a></li><li><a href="reference/pedalboard.html#pedalboard.Clipping.process">(pedalboard.Clipping method)</a>@@ -560,8 +522,6 @@<li><a href="reference/pedalboard.html#pedalboard.NoiseGate.process">(pedalboard.NoiseGate method)</a></li><li><a href="reference/pedalboard.html#pedalboard.PeakFilter.process">(pedalboard.PeakFilter method)</a>-</li>- <li><a href="reference/pedalboard.html#pedalboard.Pedalboard.process">(pedalboard.Pedalboard method)</a></li><li><a href="reference/pedalboard.html#pedalboard.Phaser.process">(pedalboard.Phaser method)</a></li>@@ -574,8 +534,6 @@<li><a href="reference/pedalboard.html#pedalboard.Resample.process">(pedalboard.Resample method)</a></li><li><a href="reference/pedalboard.html#pedalboard.Reverb.process">(pedalboard.Reverb method)</a>-</li>- <li><a href="reference/pedalboard.html#pedalboard.VST3Plugin.process">(pedalboard.VST3Plugin method)</a></li></ul></li></ul></td>@@ -614,14 +572,8 @@</li><li><a href="reference/pedalboard.io.html#pedalboard.io.ReadableAudioFile">ReadableAudioFile (class in pedalboard.io)</a></li>- <li><a href="reference/pedalboard.html#pedalboard.Chain.remove">remove() (pedalboard.Chain method)</a>-- <ul>- <li><a href="reference/pedalboard.html#pedalboard.Mix.remove">(pedalboard.Mix method)</a>-</li>- <li><a href="reference/pedalboard.html#pedalboard.Pedalboard.remove">(pedalboard.Pedalboard method)</a>+ <li><a href="reference/pedalboard.html#pedalboard.Mix.remove">remove() (pedalboard.Mix method)</a></li>- </ul></li><li><a href="reference/pedalboard.html#pedalboard.Resample">Resample (class in pedalboard)</a></li><li><a href="reference/pedalboard.html#pedalboard.Resample.Quality">Resample.Quality (class in pedalboard)</a>@@ -632,13 +584,9 @@</li><li><a href="reference/pedalboard.io.html#pedalboard.io.ResampledReadableAudioFile.resampling_quality">resampling_quality (pedalboard.io.ResampledReadableAudioFile property)</a></li>- <li><a href="reference/pedalboard.html#pedalboard.AudioUnitPlugin.reset">reset() (pedalboard.AudioUnitPlugin method)</a>+ <li><a href="reference/pedalboard.html#pedalboard.Bitcrush.reset">reset() (pedalboard.Bitcrush method)</a><ul>- <li><a href="reference/pedalboard.html#pedalboard.Bitcrush.reset">(pedalboard.Bitcrush method)</a>-</li>- <li><a href="reference/pedalboard.html#pedalboard.Chain.reset">(pedalboard.Chain method)</a>-</li><li><a href="reference/pedalboard.html#pedalboard.Chorus.reset">(pedalboard.Chorus method)</a></li><li><a href="reference/pedalboard.html#pedalboard.Clipping.reset">(pedalboard.Clipping method)</a>@@ -680,8 +628,6 @@<li><a href="reference/pedalboard.html#pedalboard.NoiseGate.reset">(pedalboard.NoiseGate method)</a></li><li><a href="reference/pedalboard.html#pedalboard.PeakFilter.reset">(pedalboard.PeakFilter method)</a>-</li>- <li><a href="reference/pedalboard.html#pedalboard.Pedalboard.reset">(pedalboard.Pedalboard method)</a></li><li><a href="reference/pedalboard.html#pedalboard.Phaser.reset">(pedalboard.Phaser method)</a></li>@@ -694,8 +640,6 @@<li><a href="reference/pedalboard.html#pedalboard.Resample.reset">(pedalboard.Resample method)</a></li><li><a href="reference/pedalboard.html#pedalboard.Reverb.reset">(pedalboard.Reverb method)</a>-</li>- <li><a href="reference/pedalboard.html#pedalboard.VST3Plugin.reset">(pedalboard.VST3Plugin method)</a></li></ul></li></ul></td>@@ -730,12 +674,6 @@<ul><li><a href="reference/pedalboard.io.html#pedalboard.io.ResampledReadableAudioFile.seekable">(pedalboard.io.ResampledReadableAudioFile method)</a>-</li>- </ul></li>- <li><a href="reference/pedalboard.html#pedalboard.AudioUnitPlugin.show_editor">show_editor() (pedalboard.AudioUnitPlugin method)</a>-- <ul>- <li><a href="reference/pedalboard.html#pedalboard.VST3Plugin.show_editor">(pedalboard.VST3Plugin method)</a></li></ul></li><li><a href="reference/pedalboard.io.html#pedalboard.io.StreamResampler.source_sample_rate">source_sample_rate (pedalboard.io.StreamResampler property)</a>@@ -768,16 +706,6 @@</tr></table></section>-<section id="V" class="genindex-section">- <h2>V</h2>- <table style="width: 100%" class="indextable genindextable"><tr>- <td style="width: 33%; vertical-align: top;"><ul>- <li><a href="reference/pedalboard.html#pedalboard.VST3Plugin">VST3Plugin (class in pedalboard)</a>-</li>- </ul></td>- </tr></table>-</section>-<section id="W" class="genindex-section"><h2>W</h2><table style="width: 100%" class="indextable genindextable"><tr>diff --git a/docs/index.html b/docs/index.htmlindex 3c92db1..92b3b00 100644--- a/docs/index.html+++ b/docs/index.html@@ -172,8 +172,6 @@</ul><ul><li class="toctree-l1"><a class="reference internal" href="examples.html">Examples</a></li>-<li class="toctree-l1"><a class="reference internal" href="examples.html#put-a-compressor-at-the-front-of-the-chain">Put a compressor at the front of the chain:</a></li>-<li class="toctree-l1"><a class="reference internal" href="examples.html#run-all-of-these-pedalboards-simultaneously-with-the-mix-plugin">Run all of these pedalboards simultaneously with the Mix plugin:</a></li><li class="toctree-l1"><a class="reference internal" href="faq.html">Frequently Asked Questions</a></li><li class="toctree-l1"><a class="reference internal" href="compatibility.html">Plugin Compatibility</a></li><li class="toctree-l1"><a class="reference internal" href="internals.html">Pedalboard Internals</a></li>@@ -321,11 +319,12 @@<li class="toctree-l2"><a class="reference internal" href="examples.html#quick-start">Quick start</a></li><li class="toctree-l2"><a class="reference internal" href="examples.html#making-a-guitar-style-pedalboard">Making a guitar-style pedalboard</a></li><li class="toctree-l2"><a class="reference internal" href="examples.html#using-vst3-or-audio-unit-plugins">Using VST3® or Audio Unit plugins</a></li>-<li class="toctree-l2"><a class="reference internal" href="examples.html#creating-parallel-effects-chains">Creating parallel effects chains</a></li>+<li class="toctree-l2"><a class="reference internal" href="examples.html#creating-parallel-effects-chains">Creating parallel effects chains</a><ul>+<li class="toctree-l3"><a class="reference internal" href="examples.html#contributing">Contributing</a></li>+</ul>+</li></ul></li>-<li class="toctree-l1"><a class="reference internal" href="examples.html#put-a-compressor-at-the-front-of-the-chain">Put a compressor at the front of the chain:</a></li>-<li class="toctree-l1"><a class="reference internal" href="examples.html#run-all-of-these-pedalboards-simultaneously-with-the-mix-plugin">Run all of these pedalboards simultaneously with the Mix plugin:</a></li><li class="toctree-l1"><a class="reference internal" href="faq.html">Frequently Asked Questions</a><ul><li class="toctree-l2"><a class="reference internal" href="faq.html#can-pedalboard-be-used-with-live-real-time-audio">Can Pedalboard be used with live (real-time) audio?</a></li><li class="toctree-l2"><a class="reference internal" href="faq.html#does-pedalboard-support-changing-a-plugin-s-parameters-over-time">Does Pedalboard support changing a plugin’s parameters over time?</a></li>diff --git a/docs/internals.html b/docs/internals.htmlindex f7d4d49..a43f408 100644--- a/docs/internals.html+++ b/docs/internals.html@@ -172,8 +172,6 @@</ul><ul class="current"><li class="toctree-l1"><a class="reference internal" href="examples.html">Examples</a></li>-<li class="toctree-l1"><a class="reference internal" href="examples.html#put-a-compressor-at-the-front-of-the-chain">Put a compressor at the front of the chain:</a></li>-<li class="toctree-l1"><a class="reference internal" href="examples.html#run-all-of-these-pedalboards-simultaneously-with-the-mix-plugin">Run all of these pedalboards simultaneously with the Mix plugin:</a></li><li class="toctree-l1"><a class="reference internal" href="faq.html">Frequently Asked Questions</a></li><li class="toctree-l1"><a class="reference internal" href="compatibility.html">Plugin Compatibility</a></li><li class="toctree-l1 current current-page"><a class="current reference internal" href="#">Pedalboard Internals</a></li>diff --git a/docs/license.html b/docs/license.htmlindex 00feba0..c52a3a8 100644--- a/docs/license.html+++ b/docs/license.html@@ -172,8 +172,6 @@</ul><ul class="current"><li class="toctree-l1"><a class="reference internal" href="examples.html">Examples</a></li>-<li class="toctree-l1"><a class="reference internal" href="examples.html#put-a-compressor-at-the-front-of-the-chain">Put a compressor at the front of the chain:</a></li>-<li class="toctree-l1"><a class="reference internal" href="examples.html#run-all-of-these-pedalboards-simultaneously-with-the-mix-plugin">Run all of these pedalboards simultaneously with the Mix plugin:</a></li><li class="toctree-l1"><a class="reference internal" href="faq.html">Frequently Asked Questions</a></li><li class="toctree-l1"><a class="reference internal" href="compatibility.html">Plugin Compatibility</a></li><li class="toctree-l1"><a class="reference internal" href="internals.html">Pedalboard Internals</a></li>diff --git a/docs/objects.inv b/docs/objects.invindex 91a9763..6be9621 100644Binary files a/docs/objects.inv and b/docs/objects.inv differdiff --git a/docs/py-modindex.html b/docs/py-modindex.htmlindex 78dd1bf..4891fad 100644--- a/docs/py-modindex.html+++ b/docs/py-modindex.html@@ -162,8 +162,6 @@</ul><ul><li class="toctree-l1"><a class="reference internal" href="examples.html">Examples</a></li>-<li class="toctree-l1"><a class="reference internal" href="examples.html#put-a-compressor-at-the-front-of-the-chain">Put a compressor at the front of the chain:</a></li>-<li class="toctree-l1"><a class="reference internal" href="examples.html#run-all-of-these-pedalboards-simultaneously-with-the-mix-plugin">Run all of these pedalboards simultaneously with the Mix plugin:</a></li><li class="toctree-l1"><a class="reference internal" href="faq.html">Frequently Asked Questions</a></li><li class="toctree-l1"><a class="reference internal" href="compatibility.html">Plugin Compatibility</a></li><li class="toctree-l1"><a class="reference internal" href="internals.html">Pedalboard Internals</a></li>diff --git a/docs/reference/pedalboard.html b/docs/reference/pedalboard.htmlindex 3bf8d16..89f8f6a 100644--- a/docs/reference/pedalboard.html+++ b/docs/reference/pedalboard.html@@ -172,8 +172,6 @@</ul><ul><li class="toctree-l1"><a class="reference internal" href="../examples.html">Examples</a></li>-<li class="toctree-l1"><a class="reference internal" href="../examples.html#put-a-compressor-at-the-front-of-the-chain">Put a compressor at the front of the chain:</a></li>-<li class="toctree-l1"><a class="reference internal" href="../examples.html#run-all-of-these-pedalboards-simultaneously-with-the-mix-plugin">Run all of these pedalboards simultaneously with the Mix plugin:</a></li><li class="toctree-l1"><a class="reference internal" href="../faq.html">Frequently Asked Questions</a></li><li class="toctree-l1"><a class="reference internal" href="../compatibility.html">Plugin Compatibility</a></li><li class="toctree-l1"><a class="reference internal" href="../internals.html">Pedalboard Internals</a></li>@@ -217,67 +215,6 @@<span id="the-pedalboard-api"></span><h1>The <code class="docutils literal notranslate"><span class="pre">pedalboard</span></code> API<a class="headerlink" href="#module-pedalboard" title="Permalink to this heading">#</a></h1><p>This module provides classes and functions for adding effects to audio. Most classes in this module are subclasses of <code class="docutils literal notranslate"><span class="pre">Plugin</span></code>, each of which allows applying effects to an audio buffer or stream.</p><p>For audio I/O classes (i.e.: reading and writing audio files), see <code class="docutils literal notranslate"><span class="pre">pedalboard.io</span></code>.</p>-<dl class="py class">-<dt class="sig sig-object py" id="pedalboard.AudioUnitPlugin">-<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">pedalboard.</span></span><span class="sig-name descname"><span class="pre">AudioUnitPlugin</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">path_to_plugin_file</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">str</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">parameter_values</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">Dict</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">Union</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">int</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">float</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">bool</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">{}</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">plugin_name</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">]</span></span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#pedalboard.AudioUnitPlugin" title="Permalink to this definition">#</a></dt>-<dd><p>A wrapper around third-party, non-Pedalboard audio effects-plugins in Apple’s Audio Unit format.</p>-<p>Audio Unit plugins are only supported on macOS. This class will be-unavailable on non-macOS platforms. Plugin files must be installed-in the appropriate system-wide path for them to be-loadable (usually <code class="docutils literal notranslate"><span class="pre">/Library/Audio/Plug-Ins/Components/</span></code> or-<code class="docutils literal notranslate"><span class="pre">~/Library/Audio/Plug-Ins/Components/</span></code>).</p>-<p>For a plugin wrapper that works on Windows and Linux as well,-see <a class="reference internal" href="#pedalboard.VST3Plugin" title="pedalboard.VST3Plugin"><code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.VST3Plugin</span></code></a>.</p>-<dl class="py method">-<dt class="sig sig-object py" id="pedalboard.AudioUnitPlugin.get_plugin_names_for_file">-<em class="property"><span class="pre">static</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">get_plugin_names_for_file</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">filename</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">str</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">List</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">]</span></span></span></span><a class="headerlink" href="#pedalboard.AudioUnitPlugin.get_plugin_names_for_file" title="Permalink to this definition">#</a></dt>-<dd><p>Return a list of plugin names contained within a given Audio Unit bundle (i.e.: a <code class="docutils literal notranslate"><span class="pre">.component</span></code> file). If the provided file cannot be scanned, an <code class="docutils literal notranslate"><span class="pre">ImportError</span></code> will be raised.</p>-<p>Note that most Audio Units have a single plugin inside, but this method can be useful to determine if multiple plugins are present in one bundle, and if so, what their names are.</p>-</dd></dl>--<dl class="py property">-<dt class="sig sig-object py" id="pedalboard.AudioUnitPlugin.name">-<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">name</span></span><a class="headerlink" href="#pedalboard.AudioUnitPlugin.name" title="Permalink to this definition">#</a></dt>-<dd><p>The name of this plugin, as reported by the plugin itself.</p>-</dd></dl>--<dl class="py method">-<dt class="sig sig-object py" id="pedalboard.AudioUnitPlugin.process">-<span class="sig-name descname"><span class="pre">process</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">self</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">pedalboard_native.Plugin</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">input_array</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">numpy.ndarray</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">sample_rate</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">buffer_size</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">8192</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">reset</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">bool</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">True</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">numpy.ndarray</span><span class="p"><span class="pre">[</span></span><span class="pre">numpy.float32</span><span class="p"><span class="pre">]</span></span></span></span><a class="headerlink" href="#pedalboard.AudioUnitPlugin.process" title="Permalink to this definition">#</a></dt>-<dd><p>Run a 32-bit or 64-bit floating point audio buffer through this plugin.-(If calling this multiple times with multiple plugins, consider creating a-<a class="reference internal" href="#pedalboard.Pedalboard" title="pedalboard.Pedalboard"><code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code></a> object instead.)</p>-<p>The returned array may contain up to (but not more than) the same number of-samples as were provided. If fewer samples were returned than expected, the-plugin has likely buffered audio inside itself. To receive the remaining-audio, pass another audio buffer into <code class="docutils literal notranslate"><span class="pre">process</span></code> with <code class="docutils literal notranslate"><span class="pre">reset</span></code> set to-<code class="docutils literal notranslate"><span class="pre">True</span></code>.</p>-<p>If the provided buffer uses a 64-bit datatype, it will be converted to 32-bit-for processing.</p>-<p>The provided <code class="docutils literal notranslate"><span class="pre">buffer_size</span></code> argument will be used to control the size of-each chunk of audio provided to the plugin. Higher buffer sizes may speed up-processing at the expense of memory usage.</p>-<p>The <code class="docutils literal notranslate"><span class="pre">reset</span></code> flag determines if all of the plugins should be reset before-processing begins, clearing any state from previous calls to <code class="docutils literal notranslate"><span class="pre">process</span></code>.-If calling <code class="docutils literal notranslate"><span class="pre">process</span></code> multiple times while processing the same audio file-or buffer, set <code class="docutils literal notranslate"><span class="pre">reset</span></code> to <code class="docutils literal notranslate"><span class="pre">False</span></code>.</p>-</dd></dl>--<dl class="py method">-<dt class="sig sig-object py" id="pedalboard.AudioUnitPlugin.reset">-<span class="sig-name descname"><span class="pre">reset</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">self</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">pedalboard_native.Plugin</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">None</span></span></span><a class="headerlink" href="#pedalboard.AudioUnitPlugin.reset" title="Permalink to this definition">#</a></dt>-<dd><p>Clear any internal state stored by this plugin (e.g.: reverb tails, delay lines, LFO state, etc). The values of plugin parameters will remain unchanged.</p>-</dd></dl>--<dl class="py method">-<dt class="sig sig-object py" id="pedalboard.AudioUnitPlugin.show_editor">-<span class="sig-name descname"><span class="pre">show_editor</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">self</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">pedalboard_native._AudioUnitPlugin</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">None</span></span></span><a class="headerlink" href="#pedalboard.AudioUnitPlugin.show_editor" title="Permalink to this definition">#</a></dt>-<dd><p>Show the UI of this plugin as a native window. This method will block until the window is closed or a KeyboardInterrupt is received.</p>-</dd></dl>--</dd></dl>-<dl class="py class"><dt class="sig sig-object py" id="pedalboard.Bitcrush"><em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">pedalboard.</span></span><span class="sig-name descname"><span class="pre">Bitcrush</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">bit_depth</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">8</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#pedalboard.Bitcrush" title="Permalink to this definition">#</a></dt>@@ -294,7 +231,7 @@ or buffer, set <code class="docutils literal notranslate"><span class="pre">rese<span class="sig-name descname"><span class="pre">process</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">input_array</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">ndarray</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">sample_rate</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">buffer_size</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">8192</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">reset</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">bool</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">True</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">ndarray</span><span class="p"><span class="pre">[</span></span><span class="pre">Any</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">dtype</span><span class="p"><span class="pre">[</span></span><span class="pre">float32</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></span></span></span><a class="headerlink" href="#pedalboard.Bitcrush.process" title="Permalink to this definition">#</a></dt><dd><p>Run a 32-bit or 64-bit floating point audio buffer through this plugin.(If calling this multiple times with multiple plugins, consider creating a-<a class="reference internal" href="#pedalboard.Pedalboard" title="pedalboard.Pedalboard"><code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code></a> object instead.)</p>+<code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code> object instead.)</p><p>The returned array may contain up to (but not more than) the same number ofsamples as were provided. If fewer samples were returned than expected, theplugin has likely buffered audio inside itself. To receive the remaining@@ -319,47 +256,6 @@ or buffer, set <code class="docutils literal notranslate"><span class="pre">rese</dd></dl>-<dl class="py class">-<dt class="sig sig-object py" id="pedalboard.Chain">-<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">pedalboard.</span></span><span class="sig-name descname"><span class="pre">Chain</span></span><a class="headerlink" href="#pedalboard.Chain" title="Permalink to this definition">#</a></dt>-<dd><p>Run zero or more plugins as a plugin. Useful when used with the Mix plugin.</p>-<dl class="py method">-<dt class="sig sig-object py" id="pedalboard.Chain.append">-<span class="sig-name descname"><span class="pre">append</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">self</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">pedalboard_native.PluginContainer</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">arg0</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">pedalboard_native.Plugin</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">None</span></span></span><a class="headerlink" href="#pedalboard.Chain.append" title="Permalink to this definition">#</a></dt>-<dd></dd></dl>--<dl class="py method">-<dt class="sig sig-object py" id="pedalboard.Chain.insert">-<span class="sig-name descname"><span class="pre">insert</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">self</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">pedalboard_native.PluginContainer</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">index</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">plugin</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">pedalboard_native.Plugin</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">None</span></span></span><a class="headerlink" href="#pedalboard.Chain.insert" title="Permalink to this definition">#</a></dt>-<dd></dd></dl>--<dl class="py method">-<dt class="sig sig-object py" id="pedalboard.Chain.process">-<span class="sig-name descname"><span class="pre">process</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="o"><span class="pre">*</span></span><span class="n"><span class="pre">args</span></span></em>, <em class="sig-param"><span class="o"><span class="pre">**</span></span><span class="n"><span class="pre">kwargs</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#pedalboard.Chain.process" title="Permalink to this definition">#</a></dt>-<dd><p>Overloaded function.</p>-<ol class="arabic simple">-<li><p>process(self: pedalboard_native.utils.Chain, input_array: numpy.ndarray[numpy.float32], sample_rate: float, buffer_size: int = 8192, reset: bool = True) -> numpy.ndarray[numpy.float32]</p></li>-</ol>-<p>Run a 32-bit floating point audio buffer through this plugin.(Note: if calling this multiple times with multiple plugins, consider using pedalboard.process(…) instead.)</p>-<ol class="arabic simple" start="2">-<li><p>process(self: pedalboard_native.utils.Chain, input_array: numpy.ndarray[numpy.float64], sample_rate: float, buffer_size: int = 8192, reset: bool = True) -> numpy.ndarray[numpy.float32]</p></li>-</ol>-<p>Run a 64-bit floating point audio buffer through this plugin.(Note: if calling this multiple times with multiple plugins, consider using pedalboard.process(…) instead.) The buffer will be converted to 32-bit for processing.</p>-</dd></dl>--<dl class="py method">-<dt class="sig sig-object py" id="pedalboard.Chain.remove">-<span class="sig-name descname"><span class="pre">remove</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">self</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">pedalboard_native.PluginContainer</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">plugin</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">pedalboard_native.Plugin</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">None</span></span></span><a class="headerlink" href="#pedalboard.Chain.remove" title="Permalink to this definition">#</a></dt>-<dd></dd></dl>--<dl class="py method">-<dt class="sig sig-object py" id="pedalboard.Chain.reset">-<span class="sig-name descname"><span class="pre">reset</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">self</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">pedalboard_native.Plugin</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">None</span></span></span><a class="headerlink" href="#pedalboard.Chain.reset" title="Permalink to this definition">#</a></dt>-<dd><p>Clear any internal state stored by this plugin (e.g.: reverb tails, delay lines, LFO state, etc). The values of plugin parameters will remain unchanged.</p>-</dd></dl>--</dd></dl>-<dl class="py class"><dt class="sig sig-object py" id="pedalboard.Chorus"><em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">pedalboard.</span></span><span class="sig-name descname"><span class="pre">Chorus</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">rate_hz</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">1.0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">depth</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0.25</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">centre_delay_ms</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">7.0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">feedback</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0.0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">mix</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0.5</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#pedalboard.Chorus" title="Permalink to this definition">#</a></dt>@@ -377,7 +273,7 @@ or buffer, set <code class="docutils literal notranslate"><span class="pre">rese<span class="sig-name descname"><span class="pre">process</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">input_array</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">ndarray</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">sample_rate</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">buffer_size</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">8192</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">reset</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">bool</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">True</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">ndarray</span><span class="p"><span class="pre">[</span></span><span class="pre">Any</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">dtype</span><span class="p"><span class="pre">[</span></span><span class="pre">float32</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></span></span></span><a class="headerlink" href="#pedalboard.Chorus.process" title="Permalink to this definition">#</a></dt><dd><p>Run a 32-bit or 64-bit floating point audio buffer through this plugin.(If calling this multiple times with multiple plugins, consider creating a-<a class="reference internal" href="#pedalboard.Pedalboard" title="pedalboard.Pedalboard"><code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code></a> object instead.)</p>+<code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code> object instead.)</p><p>The returned array may contain up to (but not more than) the same number ofsamples as were provided. If fewer samples were returned than expected, theplugin has likely buffered audio inside itself. To receive the remaining@@ -411,7 +307,7 @@ or buffer, set <code class="docutils literal notranslate"><span class="pre">rese<span class="sig-name descname"><span class="pre">process</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">input_array</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">ndarray</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">sample_rate</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">buffer_size</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">8192</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">reset</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">bool</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">True</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">ndarray</span><span class="p"><span class="pre">[</span></span><span class="pre">Any</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">dtype</span><span class="p"><span class="pre">[</span></span><span class="pre">float32</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></span></span></span><a class="headerlink" href="#pedalboard.Clipping.process" title="Permalink to this definition">#</a></dt><dd><p>Run a 32-bit or 64-bit floating point audio buffer through this plugin.(If calling this multiple times with multiple plugins, consider creating a-<a class="reference internal" href="#pedalboard.Pedalboard" title="pedalboard.Pedalboard"><code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code></a> object instead.)</p>+<code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code> object instead.)</p><p>The returned array may contain up to (but not more than) the same number ofsamples as were provided. If fewer samples were returned than expected, theplugin has likely buffered audio inside itself. To receive the remaining@@ -446,7 +342,7 @@ or buffer, set <code class="docutils literal notranslate"><span class="pre">rese<span class="sig-name descname"><span class="pre">process</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">input_array</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">ndarray</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">sample_rate</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">buffer_size</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">8192</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">reset</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">bool</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">True</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">ndarray</span><span class="p"><span class="pre">[</span></span><span class="pre">Any</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">dtype</span><span class="p"><span class="pre">[</span></span><span class="pre">float32</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></span></span></span><a class="headerlink" href="#pedalboard.Compressor.process" title="Permalink to this definition">#</a></dt><dd><p>Run a 32-bit or 64-bit floating point audio buffer through this plugin.(If calling this multiple times with multiple plugins, consider creating a-<a class="reference internal" href="#pedalboard.Pedalboard" title="pedalboard.Pedalboard"><code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code></a> object instead.)</p>+<code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code> object instead.)</p><p>The returned array may contain up to (but not more than) the same number ofsamples as were provided. If fewer samples were returned than expected, theplugin has likely buffered audio inside itself. To receive the remaining@@ -480,7 +376,7 @@ or buffer, set <code class="docutils literal notranslate"><span class="pre">rese<span class="sig-name descname"><span class="pre">process</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">input_array</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">ndarray</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">sample_rate</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">buffer_size</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">8192</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">reset</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">bool</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">True</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">ndarray</span><span class="p"><span class="pre">[</span></span><span class="pre">Any</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">dtype</span><span class="p"><span class="pre">[</span></span><span class="pre">float32</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></span></span></span><a class="headerlink" href="#pedalboard.Convolution.process" title="Permalink to this definition">#</a></dt><dd><p>Run a 32-bit or 64-bit floating point audio buffer through this plugin.(If calling this multiple times with multiple plugins, consider creating a-<a class="reference internal" href="#pedalboard.Pedalboard" title="pedalboard.Pedalboard"><code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code></a> object instead.)</p>+<code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code> object instead.)</p><p>The returned array may contain up to (but not more than) the same number ofsamples as were provided. If fewer samples were returned than expected, theplugin has likely buffered audio inside itself. To receive the remaining@@ -514,7 +410,7 @@ or buffer, set <code class="docutils literal notranslate"><span class="pre">rese<span class="sig-name descname"><span class="pre">process</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">input_array</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">ndarray</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">sample_rate</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">buffer_size</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">8192</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">reset</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">bool</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">True</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">ndarray</span><span class="p"><span class="pre">[</span></span><span class="pre">Any</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">dtype</span><span class="p"><span class="pre">[</span></span><span class="pre">float32</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></span></span></span><a class="headerlink" href="#pedalboard.Delay.process" title="Permalink to this definition">#</a></dt><dd><p>Run a 32-bit or 64-bit floating point audio buffer through this plugin.(If calling this multiple times with multiple plugins, consider creating a-<a class="reference internal" href="#pedalboard.Pedalboard" title="pedalboard.Pedalboard"><code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code></a> object instead.)</p>+<code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code> object instead.)</p><p>The returned array may contain up to (but not more than) the same number ofsamples as were provided. If fewer samples were returned than expected, theplugin has likely buffered audio inside itself. To receive the remaining@@ -549,7 +445,7 @@ or buffer, set <code class="docutils literal notranslate"><span class="pre">rese<span class="sig-name descname"><span class="pre">process</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">input_array</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">ndarray</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">sample_rate</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">buffer_size</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">8192</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">reset</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">bool</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">True</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">ndarray</span><span class="p"><span class="pre">[</span></span><span class="pre">Any</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">dtype</span><span class="p"><span class="pre">[</span></span><span class="pre">float32</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></span></span></span><a class="headerlink" href="#pedalboard.Distortion.process" title="Permalink to this definition">#</a></dt><dd><p>Run a 32-bit or 64-bit floating point audio buffer through this plugin.(If calling this multiple times with multiple plugins, consider creating a-<a class="reference internal" href="#pedalboard.Pedalboard" title="pedalboard.Pedalboard"><code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code></a> object instead.)</p>+<code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code> object instead.)</p><p>The returned array may contain up to (but not more than) the same number ofsamples as were provided. If fewer samples were returned than expected, theplugin has likely buffered audio inside itself. To receive the remaining@@ -583,7 +479,7 @@ or buffer, set <code class="docutils literal notranslate"><span class="pre">rese<span class="sig-name descname"><span class="pre">process</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">input_array</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">ndarray</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">sample_rate</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">buffer_size</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">8192</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">reset</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">bool</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">True</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">ndarray</span><span class="p"><span class="pre">[</span></span><span class="pre">Any</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">dtype</span><span class="p"><span class="pre">[</span></span><span class="pre">float32</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></span></span></span><a class="headerlink" href="#pedalboard.GSMFullRateCompressor.process" title="Permalink to this definition">#</a></dt><dd><p>Run a 32-bit or 64-bit floating point audio buffer through this plugin.(If calling this multiple times with multiple plugins, consider creating a-<a class="reference internal" href="#pedalboard.Pedalboard" title="pedalboard.Pedalboard"><code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code></a> object instead.)</p>+<code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code> object instead.)</p><p>The returned array may contain up to (but not more than) the same number ofsamples as were provided. If fewer samples were returned than expected, theplugin has likely buffered audio inside itself. To receive the remaining@@ -618,7 +514,7 @@ or buffer, set <code class="docutils literal notranslate"><span class="pre">rese<span class="sig-name descname"><span class="pre">process</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">input_array</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">ndarray</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">sample_rate</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">buffer_size</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">8192</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">reset</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">bool</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">True</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">ndarray</span><span class="p"><span class="pre">[</span></span><span class="pre">Any</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">dtype</span><span class="p"><span class="pre">[</span></span><span class="pre">float32</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></span></span></span><a class="headerlink" href="#pedalboard.Gain.process" title="Permalink to this definition">#</a></dt><dd><p>Run a 32-bit or 64-bit floating point audio buffer through this plugin.(If calling this multiple times with multiple plugins, consider creating a-<a class="reference internal" href="#pedalboard.Pedalboard" title="pedalboard.Pedalboard"><code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code></a> object instead.)</p>+<code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code> object instead.)</p><p>The returned array may contain up to (but not more than) the same number ofsamples as were provided. If fewer samples were returned than expected, theplugin has likely buffered audio inside itself. To receive the remaining@@ -652,7 +548,7 @@ or buffer, set <code class="docutils literal notranslate"><span class="pre">rese<span class="sig-name descname"><span class="pre">process</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">input_array</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">ndarray</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">sample_rate</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">buffer_size</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">8192</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">reset</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">bool</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">True</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">ndarray</span><span class="p"><span class="pre">[</span></span><span class="pre">Any</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">dtype</span><span class="p"><span class="pre">[</span></span><span class="pre">float32</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></span></span></span><a class="headerlink" href="#pedalboard.HighShelfFilter.process" title="Permalink to this definition">#</a></dt><dd><p>Run a 32-bit or 64-bit floating point audio buffer through this plugin.(If calling this multiple times with multiple plugins, consider creating a-<a class="reference internal" href="#pedalboard.Pedalboard" title="pedalboard.Pedalboard"><code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code></a> object instead.)</p>+<code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code> object instead.)</p><p>The returned array may contain up to (but not more than) the same number ofsamples as were provided. If fewer samples were returned than expected, theplugin has likely buffered audio inside itself. To receive the remaining@@ -686,7 +582,7 @@ or buffer, set <code class="docutils literal notranslate"><span class="pre">rese<span class="sig-name descname"><span class="pre">process</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">input_array</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">ndarray</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">sample_rate</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">buffer_size</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">8192</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">reset</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">bool</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">True</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">ndarray</span><span class="p"><span class="pre">[</span></span><span class="pre">Any</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">dtype</span><span class="p"><span class="pre">[</span></span><span class="pre">float32</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></span></span></span><a class="headerlink" href="#pedalboard.HighpassFilter.process" title="Permalink to this definition">#</a></dt><dd><p>Run a 32-bit or 64-bit floating point audio buffer through this plugin.(If calling this multiple times with multiple plugins, consider creating a-<a class="reference internal" href="#pedalboard.Pedalboard" title="pedalboard.Pedalboard"><code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code></a> object instead.)</p>+<code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code> object instead.)</p><p>The returned array may contain up to (but not more than) the same number ofsamples as were provided. If fewer samples were returned than expected, theplugin has likely buffered audio inside itself. To receive the remaining@@ -720,7 +616,7 @@ or buffer, set <code class="docutils literal notranslate"><span class="pre">rese<span class="sig-name descname"><span class="pre">process</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">input_array</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">ndarray</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">sample_rate</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">buffer_size</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">8192</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">reset</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">bool</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">True</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">ndarray</span><span class="p"><span class="pre">[</span></span><span class="pre">Any</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">dtype</span><span class="p"><span class="pre">[</span></span><span class="pre">float32</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></span></span></span><a class="headerlink" href="#pedalboard.IIRFilter.process" title="Permalink to this definition">#</a></dt><dd><p>Run a 32-bit or 64-bit floating point audio buffer through this plugin.(If calling this multiple times with multiple plugins, consider creating a-<a class="reference internal" href="#pedalboard.Pedalboard" title="pedalboard.Pedalboard"><code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code></a> object instead.)</p>+<code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code> object instead.)</p><p>The returned array may contain up to (but not more than) the same number ofsamples as were provided. If fewer samples were returned than expected, theplugin has likely buffered audio inside itself. To receive the remaining@@ -755,7 +651,7 @@ or buffer, set <code class="docutils literal notranslate"><span class="pre">rese<span class="sig-name descname"><span class="pre">process</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">input_array</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">ndarray</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">sample_rate</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">buffer_size</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">8192</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">reset</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">bool</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">True</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">ndarray</span><span class="p"><span class="pre">[</span></span><span class="pre">Any</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">dtype</span><span class="p"><span class="pre">[</span></span><span class="pre">float32</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></span></span></span><a class="headerlink" href="#pedalboard.Invert.process" title="Permalink to this definition">#</a></dt><dd><p>Run a 32-bit or 64-bit floating point audio buffer through this plugin.(If calling this multiple times with multiple plugins, consider creating a-<a class="reference internal" href="#pedalboard.Pedalboard" title="pedalboard.Pedalboard"><code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code></a> object instead.)</p>+<code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code> object instead.)</p><p>The returned array may contain up to (but not more than) the same number ofsamples as were provided. If fewer samples were returned than expected, theplugin has likely buffered audio inside itself. To receive the remaining@@ -832,7 +728,7 @@ or buffer, set <code class="docutils literal notranslate"><span class="pre">rese<span class="sig-name descname"><span class="pre">process</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">input_array</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">ndarray</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">sample_rate</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">buffer_size</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">8192</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">reset</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">bool</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">True</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">ndarray</span><span class="p"><span class="pre">[</span></span><span class="pre">Any</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">dtype</span><span class="p"><span class="pre">[</span></span><span class="pre">float32</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></span></span></span><a class="headerlink" href="#pedalboard.LadderFilter.process" title="Permalink to this definition">#</a></dt><dd><p>Run a 32-bit or 64-bit floating point audio buffer through this plugin.(If calling this multiple times with multiple plugins, consider creating a-<a class="reference internal" href="#pedalboard.Pedalboard" title="pedalboard.Pedalboard"><code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code></a> object instead.)</p>+<code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code> object instead.)</p><p>The returned array may contain up to (but not more than) the same number ofsamples as were provided. If fewer samples were returned than expected, theplugin has likely buffered audio inside itself. To receive the remaining@@ -866,7 +762,7 @@ or buffer, set <code class="docutils literal notranslate"><span class="pre">rese<span class="sig-name descname"><span class="pre">process</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">input_array</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">ndarray</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">sample_rate</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">buffer_size</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">8192</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">reset</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">bool</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">True</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">ndarray</span><span class="p"><span class="pre">[</span></span><span class="pre">Any</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">dtype</span><span class="p"><span class="pre">[</span></span><span class="pre">float32</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></span></span></span><a class="headerlink" href="#pedalboard.Limiter.process" title="Permalink to this definition">#</a></dt><dd><p>Run a 32-bit or 64-bit floating point audio buffer through this plugin.(If calling this multiple times with multiple plugins, consider creating a-<a class="reference internal" href="#pedalboard.Pedalboard" title="pedalboard.Pedalboard"><code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code></a> object instead.)</p>+<code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code> object instead.)</p><p>The returned array may contain up to (but not more than) the same number ofsamples as were provided. If fewer samples were returned than expected, theplugin has likely buffered audio inside itself. To receive the remaining@@ -900,7 +796,7 @@ or buffer, set <code class="docutils literal notranslate"><span class="pre">rese<span class="sig-name descname"><span class="pre">process</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">input_array</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">ndarray</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">sample_rate</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">buffer_size</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">8192</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">reset</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">bool</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">True</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">ndarray</span><span class="p"><span class="pre">[</span></span><span class="pre">Any</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">dtype</span><span class="p"><span class="pre">[</span></span><span class="pre">float32</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></span></span></span><a class="headerlink" href="#pedalboard.LowShelfFilter.process" title="Permalink to this definition">#</a></dt><dd><p>Run a 32-bit or 64-bit floating point audio buffer through this plugin.(If calling this multiple times with multiple plugins, consider creating a-<a class="reference internal" href="#pedalboard.Pedalboard" title="pedalboard.Pedalboard"><code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code></a> object instead.)</p>+<code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code> object instead.)</p><p>The returned array may contain up to (but not more than) the same number ofsamples as were provided. If fewer samples were returned than expected, theplugin has likely buffered audio inside itself. To receive the remaining@@ -934,7 +830,7 @@ or buffer, set <code class="docutils literal notranslate"><span class="pre">rese<span class="sig-name descname"><span class="pre">process</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">input_array</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">ndarray</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">sample_rate</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">buffer_size</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">8192</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">reset</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">bool</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">True</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">ndarray</span><span class="p"><span class="pre">[</span></span><span class="pre">Any</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">dtype</span><span class="p"><span class="pre">[</span></span><span class="pre">float32</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></span></span></span><a class="headerlink" href="#pedalboard.LowpassFilter.process" title="Permalink to this definition">#</a></dt><dd><p>Run a 32-bit or 64-bit floating point audio buffer through this plugin.(If calling this multiple times with multiple plugins, consider creating a-<a class="reference internal" href="#pedalboard.Pedalboard" title="pedalboard.Pedalboard"><code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code></a> object instead.)</p>+<code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code> object instead.)</p><p>The returned array may contain up to (but not more than) the same number ofsamples as were provided. If fewer samples were returned than expected, theplugin has likely buffered audio inside itself. To receive the remaining@@ -970,7 +866,7 @@ or buffer, set <code class="docutils literal notranslate"><span class="pre">rese<span class="sig-name descname"><span class="pre">process</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">input_array</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">ndarray</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">sample_rate</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">buffer_size</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">8192</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">reset</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">bool</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">True</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">ndarray</span><span class="p"><span class="pre">[</span></span><span class="pre">Any</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">dtype</span><span class="p"><span class="pre">[</span></span><span class="pre">float32</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></span></span></span><a class="headerlink" href="#pedalboard.MP3Compressor.process" title="Permalink to this definition">#</a></dt><dd><p>Run a 32-bit or 64-bit floating point audio buffer through this plugin.(If calling this multiple times with multiple plugins, consider creating a-<a class="reference internal" href="#pedalboard.Pedalboard" title="pedalboard.Pedalboard"><code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code></a> object instead.)</p>+<code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code> object instead.)</p><p>The returned array may contain up to (but not more than) the same number ofsamples as were provided. If fewer samples were returned than expected, theplugin has likely buffered audio inside itself. To receive the remaining@@ -1014,7 +910,7 @@ or buffer, set <code class="docutils literal notranslate"><span class="pre">rese<span class="sig-name descname"><span class="pre">process</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">self</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">pedalboard_native.Plugin</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">input_array</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">numpy.ndarray</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">sample_rate</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">buffer_size</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">8192</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">reset</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">bool</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">True</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">numpy.ndarray</span><span class="p"><span class="pre">[</span></span><span class="pre">numpy.float32</span><span class="p"><span class="pre">]</span></span></span></span><a class="headerlink" href="#pedalboard.Mix.process" title="Permalink to this definition">#</a></dt><dd><p>Run a 32-bit or 64-bit floating point audio buffer through this plugin.(If calling this multiple times with multiple plugins, consider creating a-<a class="reference internal" href="#pedalboard.Pedalboard" title="pedalboard.Pedalboard"><code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code></a> object instead.)</p>+<code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code> object instead.)</p><p>The returned array may contain up to (but not more than) the same number ofsamples as were provided. If fewer samples were returned than expected, theplugin has likely buffered audio inside itself. To receive the remaining@@ -1053,7 +949,7 @@ or buffer, set <code class="docutils literal notranslate"><span class="pre">rese<span class="sig-name descname"><span class="pre">process</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">input_array</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">ndarray</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">sample_rate</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">buffer_size</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">8192</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">reset</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">bool</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">True</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">ndarray</span><span class="p"><span class="pre">[</span></span><span class="pre">Any</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">dtype</span><span class="p"><span class="pre">[</span></span><span class="pre">float32</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></span></span></span><a class="headerlink" href="#pedalboard.NoiseGate.process" title="Permalink to this definition">#</a></dt><dd><p>Run a 32-bit or 64-bit floating point audio buffer through this plugin.(If calling this multiple times with multiple plugins, consider creating a-<a class="reference internal" href="#pedalboard.Pedalboard" title="pedalboard.Pedalboard"><code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code></a> object instead.)</p>+<code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code> object instead.)</p><p>The returned array may contain up to (but not more than) the same number ofsamples as were provided. If fewer samples were returned than expected, theplugin has likely buffered audio inside itself. To receive the remaining@@ -1087,7 +983,7 @@ or buffer, set <code class="docutils literal notranslate"><span class="pre">rese<span class="sig-name descname"><span class="pre">process</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">input_array</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">ndarray</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">sample_rate</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">buffer_size</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">8192</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">reset</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">bool</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">True</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">ndarray</span><span class="p"><span class="pre">[</span></span><span class="pre">Any</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">dtype</span><span class="p"><span class="pre">[</span></span><span class="pre">float32</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></span></span></span><a class="headerlink" href="#pedalboard.PeakFilter.process" title="Permalink to this definition">#</a></dt><dd><p>Run a 32-bit or 64-bit floating point audio buffer through this plugin.(If calling this multiple times with multiple plugins, consider creating a-<a class="reference internal" href="#pedalboard.Pedalboard" title="pedalboard.Pedalboard"><code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code></a> object instead.)</p>+<code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code> object instead.)</p><p>The returned array may contain up to (but not more than) the same number ofsamples as were provided. If fewer samples were returned than expected, theplugin has likely buffered audio inside itself. To receive the remaining@@ -1112,47 +1008,6 @@ or buffer, set <code class="docutils literal notranslate"><span class="pre">rese</dd></dl>-<dl class="py class">-<dt class="sig sig-object py" id="pedalboard.Pedalboard">-<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">pedalboard.</span></span><span class="sig-name descname"><span class="pre">Pedalboard</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">plugins</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><span class="pre">List</span><span class="p"><span class="pre">[</span></span><span class="pre">Plugin</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#pedalboard.Pedalboard" title="Permalink to this definition">#</a></dt>-<dd><p>A container for a chain of plugins, to use for processing audio.</p>-<dl class="py method">-<dt class="sig sig-object py" id="pedalboard.Pedalboard.append">-<span class="sig-name descname"><span class="pre">append</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">self</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">pedalboard_native.PluginContainer</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">arg0</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">pedalboard_native.Plugin</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">None</span></span></span><a class="headerlink" href="#pedalboard.Pedalboard.append" title="Permalink to this definition">#</a></dt>-<dd></dd></dl>--<dl class="py method">-<dt class="sig sig-object py" id="pedalboard.Pedalboard.insert">-<span class="sig-name descname"><span class="pre">insert</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">self</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">pedalboard_native.PluginContainer</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">index</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">plugin</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">pedalboard_native.Plugin</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">None</span></span></span><a class="headerlink" href="#pedalboard.Pedalboard.insert" title="Permalink to this definition">#</a></dt>-<dd></dd></dl>--<dl class="py method">-<dt class="sig sig-object py" id="pedalboard.Pedalboard.process">-<span class="sig-name descname"><span class="pre">process</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="o"><span class="pre">*</span></span><span class="n"><span class="pre">args</span></span></em>, <em class="sig-param"><span class="o"><span class="pre">**</span></span><span class="n"><span class="pre">kwargs</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#pedalboard.Pedalboard.process" title="Permalink to this definition">#</a></dt>-<dd><p>Overloaded function.</p>-<ol class="arabic simple">-<li><p>process(self: pedalboard_native.utils.Chain, input_array: numpy.ndarray[numpy.float32], sample_rate: float, buffer_size: int = 8192, reset: bool = True) -> numpy.ndarray[numpy.float32]</p></li>-</ol>-<p>Run a 32-bit floating point audio buffer through this plugin.(Note: if calling this multiple times with multiple plugins, consider using pedalboard.process(…) instead.)</p>-<ol class="arabic simple" start="2">-<li><p>process(self: pedalboard_native.utils.Chain, input_array: numpy.ndarray[numpy.float64], sample_rate: float, buffer_size: int = 8192, reset: bool = True) -> numpy.ndarray[numpy.float32]</p></li>-</ol>-<p>Run a 64-bit floating point audio buffer through this plugin.(Note: if calling this multiple times with multiple plugins, consider using pedalboard.process(…) instead.) The buffer will be converted to 32-bit for processing.</p>-</dd></dl>--<dl class="py method">-<dt class="sig sig-object py" id="pedalboard.Pedalboard.remove">-<span class="sig-name descname"><span class="pre">remove</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">self</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">pedalboard_native.PluginContainer</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">plugin</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">pedalboard_native.Plugin</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">None</span></span></span><a class="headerlink" href="#pedalboard.Pedalboard.remove" title="Permalink to this definition">#</a></dt>-<dd></dd></dl>--<dl class="py method">-<dt class="sig sig-object py" id="pedalboard.Pedalboard.reset">-<span class="sig-name descname"><span class="pre">reset</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">self</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">pedalboard_native.Plugin</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">None</span></span></span><a class="headerlink" href="#pedalboard.Pedalboard.reset" title="Permalink to this definition">#</a></dt>-<dd><p>Clear any internal state stored by this plugin (e.g.: reverb tails, delay lines, LFO state, etc). The values of plugin parameters will remain unchanged.</p>-</dd></dl>--</dd></dl>-<dl class="py class"><dt class="sig sig-object py" id="pedalboard.Phaser"><em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">pedalboard.</span></span><span class="sig-name descname"><span class="pre">Phaser</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">rate_hz</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">1.0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">depth</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0.5</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">centre_frequency_hz</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">1300.0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">feedback</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0.0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">mix</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0.5</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#pedalboard.Phaser" title="Permalink to this definition">#</a></dt>@@ -1162,7 +1017,7 @@ or buffer, set <code class="docutils literal notranslate"><span class="pre">rese<span class="sig-name descname"><span class="pre">process</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">input_array</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">ndarray</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">sample_rate</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">buffer_size</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">8192</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">reset</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">bool</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">True</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">ndarray</span><span class="p"><span class="pre">[</span></span><span class="pre">Any</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">dtype</span><span class="p"><span class="pre">[</span></span><span class="pre">float32</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></span></span></span><a class="headerlink" href="#pedalboard.Phaser.process" title="Permalink to this definition">#</a></dt><dd><p>Run a 32-bit or 64-bit floating point audio buffer through this plugin.(If calling this multiple times with multiple plugins, consider creating a-<a class="reference internal" href="#pedalboard.Pedalboard" title="pedalboard.Pedalboard"><code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code></a> object instead.)</p>+<code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code> object instead.)</p><p>The returned array may contain up to (but not more than) the same number ofsamples as were provided. If fewer samples were returned than expected, theplugin has likely buffered audio inside itself. To receive the remaining@@ -1197,7 +1052,7 @@ or buffer, set <code class="docutils literal notranslate"><span class="pre">rese<span class="sig-name descname"><span class="pre">process</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">input_array</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">ndarray</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">sample_rate</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">buffer_size</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">8192</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">reset</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">bool</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">True</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">ndarray</span><span class="p"><span class="pre">[</span></span><span class="pre">Any</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">dtype</span><span class="p"><span class="pre">[</span></span><span class="pre">float32</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></span></span></span><a class="headerlink" href="#pedalboard.PitchShift.process" title="Permalink to this definition">#</a></dt><dd><p>Run a 32-bit or 64-bit floating point audio buffer through this plugin.(If calling this multiple times with multiple plugins, consider creating a-<a class="reference internal" href="#pedalboard.Pedalboard" title="pedalboard.Pedalboard"><code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code></a> object instead.)</p>+<code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code> object instead.)</p><p>The returned array may contain up to (but not more than) the same number ofsamples as were provided. If fewer samples were returned than expected, theplugin has likely buffered audio inside itself. To receive the remaining@@ -1231,7 +1086,7 @@ or buffer, set <code class="docutils literal notranslate"><span class="pre">rese<span class="sig-name descname"><span class="pre">process</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">input_array</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">ndarray</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">sample_rate</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">buffer_size</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">8192</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">reset</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">bool</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">True</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">ndarray</span><span class="p"><span class="pre">[</span></span><span class="pre">Any</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">dtype</span><span class="p"><span class="pre">[</span></span><span class="pre">float32</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></span></span></span><a class="headerlink" href="#pedalboard.Plugin.process" title="Permalink to this definition">#</a></dt><dd><p>Run a 32-bit or 64-bit floating point audio buffer through this plugin.(If calling this multiple times with multiple plugins, consider creating a-<a class="reference internal" href="#pedalboard.Pedalboard" title="pedalboard.Pedalboard"><code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code></a> object instead.)</p>+<code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code> object instead.)</p><p>The returned array may contain up to (but not more than) the same number ofsamples as were provided. If fewer samples were returned than expected, theplugin has likely buffered audio inside itself. To receive the remaining@@ -1265,7 +1120,7 @@ or buffer, set <code class="docutils literal notranslate"><span class="pre">rese<span class="sig-name descname"><span class="pre">process</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">input_array</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">ndarray</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">sample_rate</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">buffer_size</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">8192</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">reset</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">bool</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">True</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">ndarray</span><span class="p"><span class="pre">[</span></span><span class="pre">Any</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">dtype</span><span class="p"><span class="pre">[</span></span><span class="pre">float32</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></span></span></span><a class="headerlink" href="#pedalboard.PluginContainer.process" title="Permalink to this definition">#</a></dt><dd><p>Run a 32-bit or 64-bit floating point audio buffer through this plugin.(If calling this multiple times with multiple plugins, consider creating a-<a class="reference internal" href="#pedalboard.Pedalboard" title="pedalboard.Pedalboard"><code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code></a> object instead.)</p>+<code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code> object instead.)</p><p>The returned array may contain up to (but not more than) the same number ofsamples as were provided. If fewer samples were returned than expected, theplugin has likely buffered audio inside itself. To receive the remaining@@ -1330,34 +1185,6 @@ or buffer, set <code class="docutils literal notranslate"><span class="pre">rese</dd></dl>-<dl class="py method">-<dt class="sig sig-object py" id="pedalboard.Resample.process">-<span class="sig-name descname"><span class="pre">process</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">input_array</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">ndarray</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">sample_rate</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">buffer_size</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">8192</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">reset</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">bool</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">True</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">ndarray</span><span class="p"><span class="pre">[</span></span><span class="pre">Any</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">dtype</span><span class="p"><span class="pre">[</span></span><span class="pre">float32</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></span></span></span><a class="headerlink" href="#pedalboard.Resample.process" title="Permalink to this definition">#</a></dt>-<dd><p>Run a 32-bit or 64-bit floating point audio buffer through this plugin.-(If calling this multiple times with multiple plugins, consider creating a-<a class="reference internal" href="#pedalboard.Pedalboard" title="pedalboard.Pedalboard"><code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code></a> object instead.)</p>-<p>The returned array may contain up to (but not more than) the same number of-samples as were provided. If fewer samples were returned than expected, the-plugin has likely buffered audio inside itself. To receive the remaining-audio, pass another audio buffer into <code class="docutils literal notranslate"><span class="pre">process</span></code> with <code class="docutils literal notranslate"><span class="pre">reset</span></code> set to-<code class="docutils literal notranslate"><span class="pre">True</span></code>.</p>-<p>If the provided buffer uses a 64-bit datatype, it will be converted to 32-bit-for processing.</p>-<p>The provided <code class="docutils literal notranslate"><span class="pre">buffer_size</span></code> argument will be used to control the size of-each chunk of audio provided to the plugin. Higher buffer sizes may speed up-processing at the expense of memory usage.</p>-<p>The <code class="docutils literal notranslate"><span class="pre">reset</span></code> flag determines if all of the plugins should be reset before-processing begins, clearing any state from previous calls to <code class="docutils literal notranslate"><span class="pre">process</span></code>.-If calling <code class="docutils literal notranslate"><span class="pre">process</span></code> multiple times while processing the same audio file-or buffer, set <code class="docutils literal notranslate"><span class="pre">reset</span></code> to <code class="docutils literal notranslate"><span class="pre">False</span></code>.</p>-</dd></dl>--<dl class="py method">-<dt class="sig sig-object py" id="pedalboard.Resample.reset">-<span class="sig-name descname"><span class="pre">reset</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">None</span></span></span><a class="headerlink" href="#pedalboard.Resample.reset" title="Permalink to this definition">#</a></dt>-<dd><p>Clear any internal state stored by this plugin (e.g.: reverb tails, delay lines, LFO state, etc). The values of plugin parameters will remain unchanged.</p>-</dd></dl>-<dl class="py property"><dt class="sig sig-object py" id="pedalboard.Resample.quality"><em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">quality</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><a class="reference internal" href="#pedalboard.Resample.Quality" title="pedalboard.Resample.Quality"><span class="pre">Quality</span></a></em><a class="headerlink" href="#pedalboard.Resample.quality" title="Permalink to this definition">#</a></dt>@@ -1370,18 +1197,12 @@ or buffer, set <code class="docutils literal notranslate"><span class="pre">rese<dd><p>The sample rate to resample the input audio to. This value may be a floating-point number, in which case a floating-point sampling rate will be used. Note that the output of this plugin will still be at the original sample rate; this is merely the sample rate used for quality reduction.</p></dd></dl>-</dd></dl>--<dl class="py class">-<dt class="sig sig-object py" id="pedalboard.Reverb">-<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">pedalboard.</span></span><span class="sig-name descname"><span class="pre">Reverb</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">room_size</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0.5</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">damping</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0.5</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">wet_level</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0.33</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">dry_level</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0.4</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">width</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">1.0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">freeze_mode</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0.0</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#pedalboard.Reverb" title="Permalink to this definition">#</a></dt>-<dd><p>A simple reverb effect. Uses a simple stereo reverb algorithm, based on the technique and tunings used in <cite>FreeVerb <https://ccrma.stanford.edu/~jos/pasp/Freeverb.html>_</cite>.</p><dl class="py method">-<dt class="sig sig-object py" id="pedalboard.Reverb.process">-<span class="sig-name descname"><span class="pre">process</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">input_array</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">ndarray</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">sample_rate</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">buffer_size</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">8192</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">reset</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">bool</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">True</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">ndarray</span><span class="p"><span class="pre">[</span></span><span class="pre">Any</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">dtype</span><span class="p"><span class="pre">[</span></span><span class="pre">float32</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></span></span></span><a class="headerlink" href="#pedalboard.Reverb.process" title="Permalink to this definition">#</a></dt>+<dt class="sig sig-object py" id="pedalboard.Resample.process">+<span class="sig-name descname"><span class="pre">process</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">input_array</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">ndarray</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">sample_rate</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">buffer_size</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">8192</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">reset</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">bool</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">True</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">ndarray</span><span class="p"><span class="pre">[</span></span><span class="pre">Any</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">dtype</span><span class="p"><span class="pre">[</span></span><span class="pre">float32</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></span></span></span><a class="headerlink" href="#pedalboard.Resample.process" title="Permalink to this definition">#</a></dt><dd><p>Run a 32-bit or 64-bit floating point audio buffer through this plugin.(If calling this multiple times with multiple plugins, consider creating a-<a class="reference internal" href="#pedalboard.Pedalboard" title="pedalboard.Pedalboard"><code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code></a> object instead.)</p>+<code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code> object instead.)</p><p>The returned array may contain up to (but not more than) the same number ofsamples as were provided. If fewer samples were returned than expected, theplugin has likely buffered audio inside itself. To receive the remaining@@ -1399,47 +1220,23 @@ or buffer, set <code class="docutils literal notranslate"><span class="pre">rese</dd></dl><dl class="py method">-<dt class="sig sig-object py" id="pedalboard.Reverb.reset">-<span class="sig-name descname"><span class="pre">reset</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">None</span></span></span><a class="headerlink" href="#pedalboard.Reverb.reset" title="Permalink to this definition">#</a></dt>+<dt class="sig sig-object py" id="pedalboard.Resample.reset">+<span class="sig-name descname"><span class="pre">reset</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">None</span></span></span><a class="headerlink" href="#pedalboard.Resample.reset" title="Permalink to this definition">#</a></dt><dd><p>Clear any internal state stored by this plugin (e.g.: reverb tails, delay lines, LFO state, etc). The values of plugin parameters will remain unchanged.</p></dd></dl></dd></dl><dl class="py class">-<dt class="sig sig-object py" id="pedalboard.VST3Plugin">-<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">pedalboard.</span></span><span class="sig-name descname"><span class="pre">VST3Plugin</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">path_to_plugin_file</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">str</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">parameter_values</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">Dict</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">Union</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">int</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">float</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">bool</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">{}</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">plugin_name</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">]</span></span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#pedalboard.VST3Plugin" title="Permalink to this definition">#</a></dt>-<dd><p>A wrapper around third-party, non-Pedalboard audio effects-plugins in Steinberg GmbH’s VST3® format.</p>-<p>VST3® plugins are supported on macOS, Windows, and Linux.-However, VST3® plugin files are not cross-compatible with-different operating systems; a platform-specific build of each plugin-is required to load that plugin on a given platform. (For example:-a Windows VST3 plugin bundle will not load on Linux or macOS.)</p>-<dl class="py method">-<dt class="sig sig-object py" id="pedalboard.VST3Plugin.get_plugin_names_for_file">-<em class="property"><span class="pre">static</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">get_plugin_names_for_file</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">arg0</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">str</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">List</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">]</span></span></span></span><a class="headerlink" href="#pedalboard.VST3Plugin.get_plugin_names_for_file" title="Permalink to this definition">#</a></dt>-<dd><p>Return a list of plugin names contained within a given VST3 plugin (i.e.: a “.vst3”). If the provided file cannot be scanned, an ImportError will be raised.</p>-</dd></dl>--<dl class="py method">-<dt class="sig sig-object py" id="pedalboard.VST3Plugin.load_preset">-<span class="sig-name descname"><span class="pre">load_preset</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">self</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">pedalboard_native._VST3Plugin</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">preset_file_path</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">str</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">None</span></span></span><a class="headerlink" href="#pedalboard.VST3Plugin.load_preset" title="Permalink to this definition">#</a></dt>-<dd><p>Load a VST3 preset file in .vstpreset format.</p>-</dd></dl>--<dl class="py property">-<dt class="sig sig-object py" id="pedalboard.VST3Plugin.name">-<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">name</span></span><a class="headerlink" href="#pedalboard.VST3Plugin.name" title="Permalink to this definition">#</a></dt>-<dd><p>The name of this plugin.</p>-</dd></dl>-+<dt class="sig sig-object py" id="pedalboard.Reverb">+<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">pedalboard.</span></span><span class="sig-name descname"><span class="pre">Reverb</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">room_size</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0.5</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">damping</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0.5</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">wet_level</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0.33</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">dry_level</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0.4</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">width</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">1.0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">freeze_mode</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0.0</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#pedalboard.Reverb" title="Permalink to this definition">#</a></dt>+<dd><p>A simple reverb effect. Uses a simple stereo reverb algorithm, based on the technique and tunings used in <cite>FreeVerb <https://ccrma.stanford.edu/~jos/pasp/Freeverb.html>_</cite>.</p><dl class="py method">-<dt class="sig sig-object py" id="pedalboard.VST3Plugin.process">-<span class="sig-name descname"><span class="pre">process</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">self</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">pedalboard_native.Plugin</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">input_array</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">numpy.ndarray</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">sample_rate</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">buffer_size</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">8192</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">reset</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">bool</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">True</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">numpy.ndarray</span><span class="p"><span class="pre">[</span></span><span class="pre">numpy.float32</span><span class="p"><span class="pre">]</span></span></span></span><a class="headerlink" href="#pedalboard.VST3Plugin.process" title="Permalink to this definition">#</a></dt>+<dt class="sig sig-object py" id="pedalboard.Reverb.process">+<span class="sig-name descname"><span class="pre">process</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">input_array</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">ndarray</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">sample_rate</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">float</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">buffer_size</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">8192</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">reset</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">bool</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">True</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">ndarray</span><span class="p"><span class="pre">[</span></span><span class="pre">Any</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">dtype</span><span class="p"><span class="pre">[</span></span><span class="pre">float32</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></span></span></span><a class="headerlink" href="#pedalboard.Reverb.process" title="Permalink to this definition">#</a></dt><dd><p>Run a 32-bit or 64-bit floating point audio buffer through this plugin.(If calling this multiple times with multiple plugins, consider creating a-<a class="reference internal" href="#pedalboard.Pedalboard" title="pedalboard.Pedalboard"><code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code></a> object instead.)</p>+<code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.Pedalboard</span></code> object instead.)</p><p>The returned array may contain up to (but not more than) the same number ofsamples as were provided. If fewer samples were returned than expected, theplugin has likely buffered audio inside itself. To receive the remaining@@ -1457,55 +1254,11 @@ or buffer, set <code class="docutils literal notranslate"><span class="pre">rese</dd></dl><dl class="py method">-<dt class="sig sig-object py" id="pedalboard.VST3Plugin.reset">-<span class="sig-name descname"><span class="pre">reset</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">self</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">pedalboard_native.Plugin</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">None</span></span></span><a class="headerlink" href="#pedalboard.VST3Plugin.reset" title="Permalink to this definition">#</a></dt>+<dt class="sig sig-object py" id="pedalboard.Reverb.reset">+<span class="sig-name descname"><span class="pre">reset</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">None</span></span></span><a class="headerlink" href="#pedalboard.Reverb.reset" title="Permalink to this definition">#</a></dt><dd><p>Clear any internal state stored by this plugin (e.g.: reverb tails, delay lines, LFO state, etc). The values of plugin parameters will remain unchanged.</p></dd></dl>-<dl class="py method">-<dt class="sig sig-object py" id="pedalboard.VST3Plugin.show_editor">-<span class="sig-name descname"><span class="pre">show_editor</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">self</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">pedalboard_native._VST3Plugin</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">None</span></span></span><a class="headerlink" href="#pedalboard.VST3Plugin.show_editor" title="Permalink to this definition">#</a></dt>-<dd><p>Show the UI of this plugin as a native window. This method will block until the window is closed or a KeyboardInterrupt is received.</p>-</dd></dl>--</dd></dl>--<dl class="py function">-<dt class="sig sig-object py" id="pedalboard.load_plugin">-<span class="sig-prename descclassname"><span class="pre">pedalboard.</span></span><span class="sig-name descname"><span class="pre">load_plugin</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">path_to_plugin_file</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">str</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">parameter_values</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">Dict</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">Union</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">int</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">float</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">bool</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">{}</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">plugin_name</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">]</span></span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">ExternalPlugin</span></span></span><a class="headerlink" href="#pedalboard.load_plugin" title="Permalink to this definition">#</a></dt>-<dd><p>Load an audio plugin.</p>-<dl class="simple">-<dt>Two plugin formats are supported:</dt><dd><ul class="simple">-<li><p>VST3® format is supported on macOS, Windows, and Linux</p></li>-<li><p>Audio Units are supported on macOS</p></li>-</ul>-</dd>-</dl>-<dl class="field-list simple">-<dt class="field-odd">Parameters<span class="colon">:</span></dt>-<dd class="field-odd"><ul class="simple">-<li><p><strong>path_to_plugin_file</strong> (<em>str</em>) – The path of a VST3® or Audio Unit plugin file or bundle.</p></li>-<li><p><strong>parameter_values</strong> (<em>Dict</em><em>[</em><em>str</em><em>, </em><em>Union</em><em>[</em><em>str</em><em>, </em><em>int</em><em>, </em><em>float</em><em>, </em><em>bool</em><em>]</em><em>]</em>) – An optional dictionary of initial values to provide to the plugin-after loading. Keys in this dictionary are expected to match the-parameter names reported by the plugin, but normalized to strings-that can be used as Python identifiers. (These are the same-identifiers that are used as keys in the <code class="docutils literal notranslate"><span class="pre">.parameters</span></code> dictionary-of a loaded plugin.)</p></li>-<li><p><strong>plugin_name</strong> (<em>Optional</em><em>[</em><em>str</em><em>]</em>) – An optional plugin name that can be used to load a specific plugin-from a multi-plugin package. If a package is loaded but a-<code class="docutils literal notranslate"><span class="pre">plugin_name</span></code> is not provided, an exception will be thrown.</p></li>-</ul>-</dd>-<dt class="field-even">Returns<span class="colon">:</span></dt>-<dd class="field-even"><p>an instance of <a class="reference internal" href="#pedalboard.VST3Plugin" title="pedalboard.VST3Plugin"><code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.VST3Plugin</span></code></a> or <a class="reference internal" href="#pedalboard.AudioUnitPlugin" title="pedalboard.AudioUnitPlugin"><code class="xref py py-class docutils literal notranslate"><span class="pre">pedalboard.AudioUnitPlugin</span></code></a></p>-</dd>-</dl>-<dl>-<dt>Throws:</dt><dd><p><code class="docutils literal notranslate"><span class="pre">ImportError</span></code>: if the plugin cannot be found or loaded</p>-<p><code class="docutils literal notranslate"><span class="pre">RuntimeError</span></code>: if the plugin file contains more than one plugin,-but no <code class="docutils literal notranslate"><span class="pre">plugin_name</span></code> was provided</p>-</dd>-</dl></dd></dl></section>@@ -1574,28 +1327,12 @@ but no <code class="docutils literal notranslate"><span class="pre">plugin_name<<div class="toc-tree"><ul><li><a class="reference internal" href="#">The <code class="docutils literal notranslate"><span class="pre">pedalboard</span></code> API</a><ul>-<li><a class="reference internal" href="#pedalboard.AudioUnitPlugin"><code class="docutils literal notranslate"><span class="pre">AudioUnitPlugin</span></code></a><ul>-<li><a class="reference internal" href="#pedalboard.AudioUnitPlugin.get_plugin_names_for_file"><code class="docutils literal notranslate"><span class="pre">AudioUnitPlugin.get_plugin_names_for_file()</span></code></a></li>-<li><a class="reference internal" href="#pedalboard.AudioUnitPlugin.name"><code class="docutils literal notranslate"><span class="pre">AudioUnitPlugin.name</span></code></a></li>-<li><a class="reference internal" href="#pedalboard.AudioUnitPlugin.process"><code class="docutils literal notranslate"><span class="pre">AudioUnitPlugin.process()</span></code></a></li>-<li><a class="reference internal" href="#pedalboard.AudioUnitPlugin.reset"><code class="docutils literal notranslate"><span class="pre">AudioUnitPlugin.reset()</span></code></a></li>-<li><a class="reference internal" href="#pedalboard.AudioUnitPlugin.show_editor"><code class="docutils literal notranslate"><span class="pre">AudioUnitPlugin.show_editor()</span></code></a></li>-</ul>-</li><li><a class="reference internal" href="#pedalboard.Bitcrush"><code class="docutils literal notranslate"><span class="pre">Bitcrush</span></code></a><ul><li><a class="reference internal" href="#pedalboard.Bitcrush.bit_depth"><code class="docutils literal notranslate"><span class="pre">Bitcrush.bit_depth</span></code></a></li><li><a class="reference internal" href="#pedalboard.Bitcrush.process"><code class="docutils literal notranslate"><span class="pre">Bitcrush.process()</span></code></a></li><li><a class="reference internal" href="#pedalboard.Bitcrush.reset"><code class="docutils literal notranslate"><span class="pre">Bitcrush.reset()</span></code></a></li></ul></li>-<li><a class="reference internal" href="#pedalboard.Chain"><code class="docutils literal notranslate"><span class="pre">Chain</span></code></a><ul>-<li><a class="reference internal" href="#pedalboard.Chain.append"><code class="docutils literal notranslate"><span class="pre">Chain.append()</span></code></a></li>-<li><a class="reference internal" href="#pedalboard.Chain.insert"><code class="docutils literal notranslate"><span class="pre">Chain.insert()</span></code></a></li>-<li><a class="reference internal" href="#pedalboard.Chain.process"><code class="docutils literal notranslate"><span class="pre">Chain.process()</span></code></a></li>-<li><a class="reference internal" href="#pedalboard.Chain.remove"><code class="docutils literal notranslate"><span class="pre">Chain.remove()</span></code></a></li>-<li><a class="reference internal" href="#pedalboard.Chain.reset"><code class="docutils literal notranslate"><span class="pre">Chain.reset()</span></code></a></li>-</ul>-</li><li><a class="reference internal" href="#pedalboard.Chorus"><code class="docutils literal notranslate"><span class="pre">Chorus</span></code></a><ul><li><a class="reference internal" href="#pedalboard.Chorus.rate_hz"><code class="docutils literal notranslate"><span class="pre">Chorus.rate_hz</span></code></a></li><li><a class="reference internal" href="#pedalboard.Chorus.process"><code class="docutils literal notranslate"><span class="pre">Chorus.process()</span></code></a></li>@@ -1709,14 +1446,6 @@ but no <code class="docutils literal notranslate"><span class="pre">plugin_name<<li><a class="reference internal" href="#pedalboard.PeakFilter.reset"><code class="docutils literal notranslate"><span class="pre">PeakFilter.reset()</span></code></a></li></ul></li>-<li><a class="reference internal" href="#pedalboard.Pedalboard"><code class="docutils literal notranslate"><span class="pre">Pedalboard</span></code></a><ul>-<li><a class="reference internal" href="#pedalboard.Pedalboard.append"><code class="docutils literal notranslate"><span class="pre">Pedalboard.append()</span></code></a></li>-<li><a class="reference internal" href="#pedalboard.Pedalboard.insert"><code class="docutils literal notranslate"><span class="pre">Pedalboard.insert()</span></code></a></li>-<li><a class="reference internal" href="#pedalboard.Pedalboard.process"><code class="docutils literal notranslate"><span class="pre">Pedalboard.process()</span></code></a></li>-<li><a class="reference internal" href="#pedalboard.Pedalboard.remove"><code class="docutils literal notranslate"><span class="pre">Pedalboard.remove()</span></code></a></li>-<li><a class="reference internal" href="#pedalboard.Pedalboard.reset"><code class="docutils literal notranslate"><span class="pre">Pedalboard.reset()</span></code></a></li>-</ul>-</li><li><a class="reference internal" href="#pedalboard.Phaser"><code class="docutils literal notranslate"><span class="pre">Phaser</span></code></a><ul><li><a class="reference internal" href="#pedalboard.Phaser.process"><code class="docutils literal notranslate"><span class="pre">Phaser.process()</span></code></a></li><li><a class="reference internal" href="#pedalboard.Phaser.reset"><code class="docutils literal notranslate"><span class="pre">Phaser.reset()</span></code></a></li>@@ -1746,10 +1475,10 @@ but no <code class="docutils literal notranslate"><span class="pre">plugin_name<<li><a class="reference internal" href="#pedalboard.Resample.Quality.WindowedSinc"><code class="docutils literal notranslate"><span class="pre">Resample.Quality.WindowedSinc</span></code></a></li></ul></li>-<li><a class="reference internal" href="#pedalboard.Resample.process"><code class="docutils literal notranslate"><span class="pre">Resample.process()</span></code></a></li>-<li><a class="reference internal" href="#pedalboard.Resample.reset"><code class="docutils literal notranslate"><span class="pre">Resample.reset()</span></code></a></li><li><a class="reference internal" href="#pedalboard.Resample.quality"><code class="docutils literal notranslate"><span class="pre">Resample.quality</span></code></a></li><li><a class="reference internal" href="#pedalboard.Resample.target_sample_rate"><code class="docutils literal notranslate"><span class="pre">Resample.target_sample_rate</span></code></a></li>+<li><a class="reference internal" href="#pedalboard.Resample.process"><code class="docutils literal notranslate"><span class="pre">Resample.process()</span></code></a></li>+<li><a class="reference internal" href="#pedalboard.Resample.reset"><code class="docutils literal notranslate"><span class="pre">Resample.reset()</span></code></a></li></ul></li><li><a class="reference internal" href="#pedalboard.Reverb"><code class="docutils literal notranslate"><span class="pre">Reverb</span></code></a><ul>@@ -1757,16 +1486,6 @@ but no <code class="docutils literal notranslate"><span class="pre">plugin_name<<li><a class="reference internal" href="#pedalboard.Reverb.reset"><code class="docutils literal notranslate"><span class="pre">Reverb.reset()</span></code></a></li></ul></li>-<li><a class="reference internal" href="#pedalboard.VST3Plugin"><code class="docutils literal notranslate"><span class="pre">VST3Plugin</span></code></a><ul>-<li><a class="reference internal" href="#pedalboard.VST3Plugin.get_plugin_names_for_file"><code class="docutils literal notranslate"><span class="pre">VST3Plugin.get_plugin_names_for_file()</span></code></a></li>-<li><a class="reference internal" href="#pedalboard.VST3Plugin.load_preset"><code class="docutils literal notranslate"><span class="pre">VST3Plugin.load_preset()</span></code></a></li>-<li><a class="reference internal" href="#pedalboard.VST3Plugin.name"><code class="docutils literal notranslate"><span class="pre">VST3Plugin.name</span></code></a></li>-<li><a class="reference internal" href="#pedalboard.VST3Plugin.process"><code class="docutils literal notranslate"><span class="pre">VST3Plugin.process()</span></code></a></li>-<li><a class="reference internal" href="#pedalboard.VST3Plugin.reset"><code class="docutils literal notranslate"><span class="pre">VST3Plugin.reset()</span></code></a></li>-<li><a class="reference internal" href="#pedalboard.VST3Plugin.show_editor"><code class="docutils literal notranslate"><span class="pre">VST3Plugin.show_editor()</span></code></a></li>-</ul>-</li>-<li><a class="reference internal" href="#pedalboard.load_plugin"><code class="docutils literal notranslate"><span class="pre">load_plugin()</span></code></a></li></ul></li></ul>diff --git a/docs/reference/pedalboard.io.html b/docs/reference/pedalboard.io.htmlindex 6b5f245..56d6902 100644--- a/docs/reference/pedalboard.io.html+++ b/docs/reference/pedalboard.io.html@@ -172,8 +172,6 @@</ul><ul><li class="toctree-l1"><a class="reference internal" href="../examples.html">Examples</a></li>-<li class="toctree-l1"><a class="reference internal" href="../examples.html#put-a-compressor-at-the-front-of-the-chain">Put a compressor at the front of the chain:</a></li>-<li class="toctree-l1"><a class="reference internal" href="../examples.html#run-all-of-these-pedalboards-simultaneously-with-the-mix-plugin">Run all of these pedalboards simultaneously with the Mix plugin:</a></li><li class="toctree-l1"><a class="reference internal" href="../faq.html">Frequently Asked Questions</a></li><li class="toctree-l1"><a class="reference internal" href="../compatibility.html">Plugin Compatibility</a></li><li class="toctree-l1"><a class="reference internal" href="../internals.html">Pedalboard Internals</a></li>diff --git a/docs/search.html b/docs/search.htmlindex 84acc66..e0f6580 100644--- a/docs/search.html+++ b/docs/search.html@@ -161,8 +161,6 @@</ul><ul><li class="toctree-l1"><a class="reference internal" href="examples.html">Examples</a></li>-<li class="toctree-l1"><a class="reference internal" href="examples.html#put-a-compressor-at-the-front-of-the-chain">Put a compressor at the front of the chain:</a></li>-<li class="toctree-l1"><a class="reference internal" href="examples.html#run-all-of-these-pedalboards-simultaneously-with-the-mix-plugin">Run all of these pedalboards simultaneously with the Mix plugin:</a></li><li class="toctree-l1"><a class="reference internal" href="faq.html">Frequently Asked Questions</a></li><li class="toctree-l1"><a class="reference internal" href="compatibility.html">Plugin Compatibility</a></li><li class="toctree-l1"><a class="reference internal" href="internals.html">Pedalboard Internals</a></li>diff --git a/docs/searchindex.js b/docs/searchindex.jsindex 3936267..459e152 100644--- a/docs/searchindex.js+++ b/docs/searchindex.js@@ -1 +1 @@-Search.setIndex({"docnames": ["compatibility", "examples", "faq", "index", "internals", "license", "reference/pedalboard", "reference/pedalboard.io"], "filenames": ["compatibility.rst", "examples.rst", "faq.rst", "index.rst", "internals.rst", "license.rst", "reference/pedalboard.rst", "reference/pedalboard.io.rst"], "titles": ["Plugin Compatibility", "Examples", "Frequently Asked Questions", "Features", "Pedalboard Internals", "License", "The <code class=\"docutils literal notranslate\"><span class=\"pre\">pedalboard</span></code> API", "The <code class=\"docutils literal notranslate\"><span class=\"pre\">pedalboard.io</span></code> API"], "terms": {"pedalboard": [0, 3, 5], "allow": [0, 2, 3, 6, 7], "load": [0, 1, 3, 4, 6], "vst3": [0, 3, 4, 5, 6], "audio": [0, 3, 4, 5, 6, 7], "unit": [0, 2, 3, 4, 6], "which": [0, 2, 5, 6, 7], "could": [0, 2, 6], "contain": [0, 1, 2, 6, 7], "ani": [0, 2, 4, 6, 7], "code": [0, 2, 4, 5], "most": [0, 2, 3, 4, 6, 7], "have": [0, 2, 4, 6, 7], "been": [0, 7], "test": [0, 3, 4], "work": [0, 1, 3, 6, 7], "just": [0, 1, 2, 4, 7], "fine": [0, 2], "some": [0, 1, 4, 7], "mai": [0, 4, 6, 7], "worst": [0, 7], "even": [0, 3], "crash": [0, 7], "python": [0, 1, 2, 3, 4, 6, 7], "interpret": [0, 2, 3], "without": [0, 2, 3, 6, 7], "warn": 0, "abil": 0, "catch": 0, "error": 0, "ar": [0, 1, 2, 3, 4, 5, 6, 7], "well": [0, 3, 4, 6, 7], "behav": [0, 1], "conform": 0, "set": [0, 1, 2, 6, 7], "convent": 0, "how": [0, 1, 6], "suppos": 0, "mani": [0, 3, 6, 7], "do": [0, 1, 7], "specif": [0, 6], "attempt": [0, 7], "detect": 0, "common": [0, 3], "program": [0, 1, 2], "can": [0, 1, 3, 4, 6, 7], "around": [0, 4, 6], "issu": [0, 2, 4], "includ": [0, 1, 2, 3, 4, 5], "automat": [0, 3, 7], "don": [0, 1, 7], "t": [0, 1, 2, 7], "clear": [0, 6], "intern": [0, 3, 6, 7], "state": [0, 6, 7], "when": [0, 2, 3, 4, 6, 7], "ask": [0, 3], "so": [0, 1, 2, 6, 7], "misbehav": 0, "notic": 0, "If": [0, 1, 3, 6, 7], "i": [0, 1, 2, 3, 4, 5, 6, 7], "being": 0, "render": [0, 7], "incorrectli": 0, "leak": [0, 7], "from": [0, 1, 2, 3, 5, 6, 7], "one": [0, 1, 3, 6, 7], "process": [0, 1, 2, 3, 4, 5, 6, 7], "call": [0, 6, 7], "next": 0, "an": [0, 1, 2, 4, 6, 7], "undesir": 0, "fashion": [0, 2], "try": [0, 6], "pass": [0, 2, 6, 7], "silenc": 0, "between": [0, 2, 6, 7], "ensur": [0, 2, 4, 7], "reverb": [0, 1, 2, 3, 6], "tail": [0, 2, 6], "other": [0, 1, 3, 6, 7], "ha": [0, 6, 7], "time": [0, 1, 3, 6, 7], "fade": 0, "reload": 0, "everi": [0, 4, 7], "load_plugin": [0, 1, 3, 4, 6], "import": [1, 2, 4], "choru": [1, 3, 6], "io": [1, 2, 3, 6], "audiofil": [1, 2, 7], "read": [1, 2, 3, 6, 7], "whole": 1, "file": [1, 2, 3, 4, 6, 7], "wav": [1, 2, 3, 7], "f": [1, 7], "frame": [1, 2, 7], "sampler": [1, 2, 7], "object": [1, 2, 6, 7], "multipl": [1, 2, 3, 6, 7], "board": [1, 2], "room_siz": [1, 6], "0": [1, 2, 6, 7], "25": [1, 6], "run": [3, 6], "through": [1, 2, 6, 7], "thi": [1, 2, 5, 6, 7], "write": [1, 2, 3, 6, 7], "back": [1, 6], "output": [1, 2, 6, 7], "w": [1, 2, 7], "shape": [1, 2, 7], "It": [1, 3], "smaller": [1, 2, 7], "resampl": [1, 3, 6, 7], "our": [1, 2], "desir": 1, "sampl": [1, 2, 6, 7], "rate": [1, 2, 6, 7], "44100": [1, 7], "input": [1, 2, 6, 7], "resampled_to": [1, 7], "pretti": 1, "interest": 1, "sound": [1, 6], "compressor": [2, 3, 6], "threshold_db": [1, 6], "50": [1, 6], "ratio": [1, 6], "gain": [1, 3, 6], "gain_db": [1, 6], "30": 1, "ladderfilt": [1, 3, 6], "mode": [1, 6, 7], "hpf12": [1, 6], "cutoff_hz": [1, 6], "900": 1, "phaser": [1, 3, 6], "convolut": [1, 3, 6], "guitar_amp": 1, "1": [1, 2, 3, 6, 7], "like": [1, 6, 7], "list": [1, 6], "you": [1, 3, 7], "add": [1, 2, 3, 4, 6], "append": [1, 6, 7], "10": [1, 3, 6, 7], "limit": [1, 3, 6], "chang": [1, 3, 6, 7], "paramet": [1, 3, 6, 7], "easili": 1, "40": 1, "known": 1, "path": [1, 6, 7], "disk": [1, 7], "vst": [1, 3, 5], "roughrider3": 1, "print": 1, "kei": [1, 6], "dict_kei": 1, "sc_hpf_hz": 1, "input_lvl_db": 1, "sensitivity_db": 1, "attack_m": [1, 6], "release_m": [1, 6], "makeup_db": 1, "mix": [3, 6], "output_lvl_db": 1, "sc_activ": 1, "full_bandwidth": 1, "bypass": 1, "15": 1, "r": [1, 7], "put": 3, "same": [1, 4, 6, 7], "instanc": [1, 4, 6, 7], "delai": [1, 2, 3, 6], "pitch": [1, 3, 6], "shift": [1, 6], "themselv": 1, "nest": 1, "them": [1, 6], "much": [1, 6], "distort": [1, 3, 6], "pitchshift": [1, 3, 5, 6], "passthrough": 1, "delay_and_pitch_shift": 1, "delay_second": [1, 6], "semiton": [1, 6], "7": [1, 3, 6], "3": [1, 3, 6], "delay_longer_and_more_pitch_shift": 1, "5": [1, 6, 7], "12": [1, 6], "6": [1, 3, 5, 6, 7], "front": 3, "all": [2, 3, 4, 6, 7], "simultan": 3, "final": [], "For": [1, 6, 7], "more": [1, 3, 4, 6, 7], "see": [1, 2, 6, 7], "folder": [], "repositori": 4, "demo": [], "colab": [], "notebook": [], "interact": [], "web": [], "hug": [], "face": [], "space": [], "gradio": [], "via": [3, 6, 7], "ak391": [], "technic": 2, "ye": 2, "pull": [2, 5], "request": 2, "98": 2, "experiment": [2, 3], "interfac": [2, 4], "written": [2, 4, 7], "c": [2, 4], "stefanobazzi": 2, "guitarboard": 2, "project": [2, 5], "exampl": [2, 3, 4, 6, 7], "sounddevic": 2, "librari": [2, 3, 4, 5, 6, 7], "howev": [2, 6], "coupl": 2, "big": 2, "caveat": 2, "talk": 2, "about": [1, 2], "context": 2, "languag": 2, "garbag": 2, "collect": 2, "mean": 2, "your": 2, "randomli": 2, "paus": 2, "regular": [1, 2, 7], "interv": 2, "clean": 2, "up": [2, 3, 6], "unus": [2, 7], "In": 2, "result": [2, 7], "random": [2, 7], "pop": 2, "click": 2, "drop": 2, "out": [2, 3, 6, 7], "veri": 2, "difficult": 2, "prevent": [2, 7], "global": [2, 3], "lock": [2, 3], "also": [2, 3, 4, 6, 7], "potenti": [2, 7], "unbound": [2, 7], "switch": 2, "thread": [2, 3, 4], "oper": [2, 6, 7], "system": [2, 6, 7], "separ": 2, "high": [2, 6], "prioriti": 2, "block": [2, 6], "caus": [2, 6, 7], "stutter": 2, "access": 2, "mutat": 2, "note": [1, 2, 6, 7], "applic": [2, 4], "stream": [2, 3, 6, 7], "larg": [2, 7], "buffer": [2, 6, 7], "size": [2, 4, 6], "second": [1, 2, 6, 7], "soft": 2, "requir": [2, 3, 4, 6, 7], "case": [2, 3, 4, 6], "network": 2, "data": [2, 3, 7], "offlin": 2, "chunk": [1, 2, 6, 7], "while": [1, 2, 6, 7], "built": [2, 3], "function": [2, 4, 6, 7], "possibl": [2, 3, 7], "vari": 2, "manual": [2, 3], "tqdm": 2, "step": 2, "would": [2, 4, 6, 7], "give": [2, 6], "smoother": 2, "transit": 2, "expens": [2, 6], "speed": [2, 3, 4, 6], "step_size_in_sampl": 2, "100": [2, 6, 7], "_n_": 2, "af": 2, "open": [1, 2, 4, 7], "we": 2, "directli": [2, 6, 7], "save": 2, "memori": [2, 3, 6, 7], "num_channel": [1, 2, 7], "o": [1, 2, 3, 6, 7], "creat": [2, 3, 6, 7], "progress": 2, "bar": 2, "show": [2, 4, 6], "total": [2, 7], "pbar": 2, "rang": [2, 3, 6], "wet": [2, 6], "equal": [2, 3, 6, 7], "percentag": [2, 6], "track": 2, "e": [2, 6, 7], "make": [2, 3], "ramp": 2, "percentage_through_track": 2, "wet_level": [2, 6], "updat": 2, "number": [2, 3, 5, 6, 7], "receiv": [2, 6], "reset": [1, 2, 6, 7], "fals": [1, 2, 6, 7], "aren": 2, "cut": [2, 6], "off": [2, 6], "With": 2, "techniqu": [2, 6], "autom": 2, "usual": [2, 6, 7], "somewher": 2, "000": [2, 7], "2m": 2, "22m": 2, "44": [2, 6, 7], "1khz": [2, 6], "small": 2, "enough": 2, "avoid": [2, 7], "hear": 2, "artifact": [2, 6], "slow": [2, 6], "down": 2, "dramat": 2, "Not": [2, 4, 6, 7], "yet": 2, "The": [2, 4, 5], "underli": [2, 7], "framework": 2, "juce": [2, 4, 5], "au": [2, 7], "itself": [2, 4, 6], "modifi": 2, "either": [2, 7], "although": [2, 6, 7], "ad": [3, 6, 7], "effect": [3, 4, 6, 7], "support": [3, 4, 6, 7], "popular": 3, "format": [3, 6, 7], "box": 3, "us": [3, 4, 5, 6, 7], "third": [3, 6], "parti": [3, 6], "plugin": [3, 5, 6], "wa": [3, 6, 7], "spotifi": [1, 3, 5], "": [3, 4, 6, 7], "intellig": 3, "lab": 3, "enabl": 3, "studio": 3, "qualiti": [3, 6, 7], "within": [3, 4, 6], "tensorflow": 3, "augment": 3, "improv": 3, "machin": [3, 4], "learn": [3, 4], "model": [3, 6], "help": 3, "content": [3, 7], "creation": 3, "digit": [3, 4, 6], "workstat": 3, "util": [3, 6], "aiff": [3, 7], "flac": [3, 7], "mp3": [3, 6, 7], "ogg": [3, 7], "platform": [3, 4, 6, 7], "depend": [3, 4, 6, 7], "addit": [3, 4, 7], "aac": [3, 7], "ac3": [3, 7], "wma": [3, 7], "fly": [3, 7], "usag": [3, 6], "basic": [3, 6, 7], "transform": 3, "guitar": 3, "style": 3, "clip": [3, 6], "loud": [3, 6], "dynam": [3, 6], "filter": [3, 6], "highpassfilt": [3, 6], "lowpassfilt": [3, 6], "spatial": 3, "lossi": [3, 6], "compress": [3, 6, 7], "gsmfullratecompressor": [3, 5, 6], "mp3compressor": [3, 5, 6], "reduct": [3, 6], "bitcrush": [3, 6], "maco": [3, 4, 6, 7], "window": [3, 4, 6, 7], "linux": [3, 4, 6, 7], "strong": 3, "safeti": 3, "guarante": 3, "releas": [3, 6], "gil": 3, "cpu": 3, "core": [3, 5], "No": [3, 6], "need": [3, 4], "multiprocess": 3, "onli": [3, 6, 7], "300x": 3, "faster": 3, "than": [3, 4, 6, 7], "pysox": 3, "singl": [3, 6], "2": [3, 6, 7], "5x": 3, "soxbind": 3, "icorv": 3, "4x": 3, "librosa": 3, "tf": 3, "pipelin": 3, "avail": [3, 4, 6], "pypi": 3, "wheel": [3, 4], "pip": 3, "That": 3, "new": [3, 7], "follow": [3, 4, 5], "md": 3, "robust": 3, "guid": 3, "thoroughli": 3, "8": [3, 6], "9": 3, "11": 3, "heavili": 3, "product": 3, "github": [1, 3], "manylinux": 3, "x86_64": 3, "intel": 3, "amd": 3, "aarch64": 3, "arm": 3, "appl": [3, 6], "silicon": 3, "rel": 3, "modern": 3, "glibc": 3, "27": 3, "both": [3, 6], "wide": [3, 6], "amd64": 3, "x86": 3, "64": [3, 6], "api": [3, 4], "quick": 3, "start": [3, 7], "parallel": [3, 6], "chain": [3, 6], "frequent": 3, "question": 3, "live": 3, "real": [3, 6, 7], "doe": [3, 4, 7], "over": 3, "instrument": 3, "instead": [1, 3, 6, 7], "accept": [3, 6, 7], "midi": 3, "design": [3, 6], "consider": 3, "licens": [3, 4], "repo": 3, "wrapper": [4, 6], "sourc": [4, 7], "cross": [4, 6], "develop": 4, "pybind11": 4, "bind": 4, "goal": 4, "expos": 4, "signal": [4, 6], "idiomat": 4, "wai": 4, "provid": [4, 6, 7], "raw": [4, 7], "perform": 4, "dsp": 4, "hide": 4, "complex": 4, "programm": 4, "intuit": 4, "varieti": 4, "reason": 4, "wider": 4, "compat": [4, 5, 6], "notabl": 4, "rare": 4, "fewer": [4, 6], "simpler": 4, "remov": [4, 6], "copi": 4, "associ": 4, "resourc": 4, "option": [4, 6, 7], "might": 4, "meant": 4, "music": 4, "appropri": [4, 6], "vice": 4, "versa": 4, "stabil": 4, "environ": 4, "where": 4, "implement": [4, 6], "logic": 4, "portabl": 4, "safe": 4, "constraint": 4, "should": [4, 6, 7], "consid": [4, 6, 7], "gplv3": [4, 5], "static": [4, 5, 6], "link": 4, "vendor": 4, "git": 4, "submodul": 4, "binari": [4, 7], "distribut": 4, "Will": [4, 7], "increas": [4, 6, 7], "amount": [4, 6, 7], "compil": [4, 5], "runtim": 4, "cannot": [4, 6], "user": 4, "instal": [4, 6, 7], "softwar": 4, "complic": 4, "simplic": 4, "packag": [4, 6, 7], "copyright": 5, "2021": 5, "2022": 5, "ab": 5, "under": [5, 7], "gnu": 5, "gener": [5, 6], "public": 5, "v3": 5, "carri": 5, "dual": 5, "commerci": 5, "sdk": 5, "bundl": [5, 6], "own": [5, 6], "steinberg": [5, 6], "media": 5, "technologi": 5, "gmbh": [5, 6], "rubber": [5, 6], "band": [5, 6], "gplv2": 5, "newer": 5, "libmp3lam": 5, "lame": [5, 6, 7], "lgplv2": 5, "upgrad": 5, "inclus": 5, "permit": 5, "libgsm": 5, "isc": 5, "regist": 5, "trademark": 5, "modul": [6, 7], "class": [6, 7], "subclass": 6, "each": [6, 7], "appli": 6, "audiounitplugin": 6, "path_to_plugin_fil": 6, "str": [6, 7], "parameter_valu": 6, "dict": 6, "union": [6, 7], "int": [1, 6, 7], "float": [6, 7], "bool": [6, 7], "plugin_nam": 6, "none": [6, 7], "A": [6, 7], "non": [6, 7], "unavail": 6, "must": [6, 7], "loadabl": 6, "plug": [6, 7], "Ins": 6, "compon": 6, "vst3plugin": 6, "get_plugin_names_for_fil": 6, "filenam": [6, 7], "return": [6, 7], "name": [6, 7], "given": [6, 7], "scan": 6, "importerror": 6, "rais": [6, 7], "insid": 6, "method": [6, 7], "determin": 6, "present": 6, "what": 6, "properti": [6, 7], "report": 6, "self": 6, "pedalboard_n": 6, "input_arrai": 6, "numpi": [6, 7], "ndarrai": [6, 7], "sample_r": 6, "buffer_s": 6, "8192": 6, "true": [6, 7], "float32": [6, 7], "32": [6, 7], "bit": [6, 7], "point": [6, 7], "arrai": [6, 7], "were": 6, "expect": [6, 7], "To": [6, 7], "remain": [6, 7], "anoth": 6, "datatyp": [6, 7], "convert": [6, 7], "argument": [6, 7], "control": 6, "higher": 6, "flag": 6, "befor": [6, 7], "begin": [6, 7], "previou": 6, "store": [6, 7], "g": 6, "line": [6, 7], "lfo": 6, "etc": [6, 7], "valu": [6, 7], "unchang": 6, "show_editor": 6, "_audiounitplugin": 6, "ui": 6, "nativ": [6, 7], "until": [1, 6], "close": [6, 7], "keyboardinterrupt": 6, "bit_depth": [6, 7], "reduc": 6, "depth": [6, 7], "lo": 6, "fi": 6, "vertic": 6, "resolut": 6, "uniqu": 6, "repres": 6, "horizont": 6, "per": [6, 7], "quantiz": 6, "integ": [6, 7], "decim": 6, "onto": 6, "dtype": [6, 7], "zero": 6, "plugincontain": 6, "arg0": 6, "insert": 6, "index": 6, "arg": 6, "kwarg": 6, "overload": 6, "float64": [6, 7], "rate_hz": 6, "centre_delay_m": 6, "feedback": 6, "frequenc": 6, "respons": 6, "centr": 6, "get": 6, "classic": 6, "m": 6, "low": 6, "feeback": 6, "volum": 6, "flanger": 6, "lower": 6, "lot": 6, "vibrato": 6, "oscil": 6, "hertz": 6, "hz": [6, 7], "hard": [6, 7], "threshold": 6, "decibel": 6, "algorithm": [6, 7], "introduc": [6, 7], "nois": 6, "gsmcompressor": 6, "impulse_response_filenam": 6, "suitabl": 6, "thing": 6, "speaker": 6, "simul": 6, "dry": 6, "drive_db": 6, "linear": [6, 7], "tanh": 6, "hyperbol": 6, "tangent": 6, "waveshap": 6, "harmon": 6, "pleas": 6, "produc": 6, "roughli": 6, "equival": 6, "def": 6, "x": 6, "db_to_gain": 6, "windowedsinc": [6, 7], "4": 6, "degrad": 6, "gsm": 6, "full": 6, "emul": 6, "2g": 6, "cellular": 6, "phone": 6, "connect": 6, "fix": 6, "8khz": 6, "codec": [6, 7], "specifi": [6, 7], "decreas": [6, 7], "amplifi": 6, "attenu": 6, "think": 6, "highshelffilt": 6, "cutoff_frequency_hz": 6, "440": 6, "q": 6, "7071067690849304": 6, "shelf": 6, "variabl": [6, 7], "abov": 6, "cutoff": 6, "boost": 6, "first": 6, "order": 6, "roll": 6, "6db": 6, "octav": 6, "3db": 6, "frac": 6, "sqrt": 6, "express": 6, "factor": 6, "further": [6, 7], "iirfilt": 6, "abstract": 6, "variou": 6, "kind": 6, "infinit": 6, "impuls": 6, "iir": 6, "lowshelffilt": 6, "peakfilt": 6, "invert": 6, "flip": 6, "polar": 6, "audibl": 6, "its": [6, 7], "take": 6, "mathemat": 6, "ident": [6, 7], "cancel": 6, "origin": [6, 7], "lpf12": 6, "200": 6, "reson": 6, "drive": 6, "multi": [6, 7], "base": [6, 7], "moog": 6, "synthes": 6, "ladder": 6, "invent": 6, "dr": 6, "bob": 6, "1968": 6, "below": 6, "side": 6, "peak": 6, "type": [6, 7], "architectur": 6, "db": 6, "bpf12": 6, "lpf24": 6, "24": 6, "hpf24": 6, "bpf24": 6, "simpl": 6, "standard": 6, "featur": 6, "two": 6, "clipper": 6, "707x": 6, "vbr_qualiti": 6, "encod": [6, 7], "current": [6, 7], "vbr": 6, "better": 6, "32khz": 6, "48khz": 6, "unsupport": [6, 7], "except": [6, 7], "thrown": 6, "noiseg": 6, "gate": 6, "attack": 6, "expand": 6, "notch": 6, "centre_frequency_hz": 6, "1300": 6, "stage": 6, "sweep": 6, "magnitud": 6, "affect": 6, "durat": [6, 7], "chri": 6, "cannam": 6, "wonder": 6, "stretch": 6, "intend": 6, "direct": 6, "target_sample_r": [6, 7], "8000": 6, "downsampl": 6, "upsampl": 6, "alias": 6, "indic": [6, 7], "zeroorderhold": 6, "lowest": 6, "fastest": [6, 7], "slightli": 6, "less": 6, "noisi": 6, "simplest": 6, "catmullrom": 6, "moder": 6, "good": 6, "fast": 6, "lagrang": 6, "highest": 6, "slowest": [6, 7], "still": 6, "mere": 6, "damp": 6, "33": 6, "dry_level": 6, "width": 6, "freeze_mod": 6, "stereo": [6, 7], "tune": 6, "freeverb": 6, "http": [1, 6], "ccrma": 6, "stanford": 6, "edu": 6, "jo": 6, "pasp": 6, "html": [1, 6], "_": [1, 6], "differ": [6, 7], "build": 6, "load_preset": 6, "_vst3plugin": 6, "preset_file_path": 6, "preset": 6, "vstpreset": 6, "externalplugin": 6, "dictionari": 6, "initi": 6, "after": 6, "match": [6, 7], "normal": 6, "string": [6, 7], "identifi": 6, "These": 6, "throw": [6, 7], "found": 6, "runtimeerror": [6, 7], "v0": 7, "file_lik": 7, "binaryio": 7, "liter": 7, "16": 7, "readabl": 7, "writeabl": 7, "default": 7, "unlik": 7, "typic": 7, "trail": 7, "b": 7, "redund": 7, "exist": 7, "seekabl": 7, "stringio": 7, "my_fil": 7, "first_ten_second": 7, "ogg_buff": 7, "bytesio": 7, "get_audio_buff": 7, "22_050": 7, "white_nois": 7, "np": 7, "rand": 7, "wav_buff": 7, "getvalu": 7, "someth": 7, "160": 7, "kilobit": 7, "re": 7, "four": 7, "tell": [1, 7], "1024": 7, "readableaudiofil": 7, "cross_platform_formats_onli": 7, "wrap": 7, "vorbi": 7, "3g2": 7, "3gp": 7, "adt": 7, "aif": 7, "aifc": 7, "amr": 7, "bwf": 7, "caf": 7, "ec3": 7, "latm": 7, "loa": 7, "m4a": 7, "m4b": 7, "m4r": 7, "mov": 7, "mp1": 7, "mp2": 7, "mp4": 7, "mpa": 7, "mpeg": 7, "qt": 7, "sd2": 7, "snd": 7, "w64": 7, "xhe": 7, "get_supported_read_format": 7, "extens": 7, "pars": 7, "consist": 7, "constructor": 7, "certain": 7, "probabl": 7, "want": 7, "too": 7, "d": [1, 7], "num_fram": 7, "channel": 7, "posit": 7, "decept": 7, "hour": 7, "long": 7, "hand": 7, "megabyt": 7, "decompress": 7, "nearli": 7, "gigabyt": 7, "rather": [1, 7], "onc": 7, "debug": 7, "problem": 7, "dimension": 7, "length": 7, "alwai": 7, "minimum": 7, "0f": 7, "maximum": 7, "read_raw": 7, "int8": 7, "int16": 7, "int32": 7, "resampledreadableaudiofil": 7, "constant": 7, "seek": 7, "locat": 7, "futur": 7, "pointer": 7, "iff": 7, "longer": 7, "usabl": 7, "otherwis": 7, "divid": 7, "file_dtyp": 7, "regardless": 7, "441": 7, "audio_fil": 7, "resampling_qu": 7, "22050": 7, "fraction": 7, "hood": 7, "streamresampl": 7, "obtain": 7, "entir": 7, "benefit": 7, "target": 7, "As": 7, "version": 7, "respect": 7, "push": 7, "accur": 7, "optim": 7, "22": 7, "050": 7, "source_sample_r": 7, "seri": 7, "flush": 7, "input_lat": 7, "suppli": 7, "writeableaudiofil": 7, "get_supported_write_format": 7, "filename_or_file_lik": 7, "assum": 7, "level": 7, "numer": 7, "128": 7, "256": 7, "advanc": 7, "v2": 7, "best": 7, "happen": 7, "reliabl": 7, "forc": 7, "occur": 7, "typeerror": 7, "far": 7, "increment": 7, "kbp": 7, "v9": 7, "aupreset": [], "preset_st": [], "audiounit": [], "bytestr": [], "watch": 1, "video": 1, "document": 1, "feat": 1, "youtub": 1, "empti": 1, "inform": 1, "refer": 1}, "objects": {"": [[6, 0, 0, "-", "pedalboard"]], "pedalboard": [[6, 1, 1, "", "AudioUnitPlugin"], [6, 1, 1, "", "Bitcrush"], [6, 1, 1, "", "Chain"], [6, 1, 1, "", "Chorus"], [6, 1, 1, "", "Clipping"], [6, 1, 1, "", "Compressor"], [6, 1, 1, "", "Convolution"], [6, 1, 1, "", "Delay"], [6, 1, 1, "", "Distortion"], [6, 1, 1, "", "GSMFullRateCompressor"], [6, 1, 1, "", "Gain"], [6, 1, 1, "", "HighShelfFilter"], [6, 1, 1, "", "HighpassFilter"], [6, 1, 1, "", "IIRFilter"], [6, 1, 1, "", "Invert"], [6, 1, 1, "", "LadderFilter"], [6, 1, 1, "", "Limiter"], [6, 1, 1, "", "LowShelfFilter"], [6, 1, 1, "", "LowpassFilter"], [6, 1, 1, "", "MP3Compressor"], [6, 1, 1, "", "Mix"], [6, 1, 1, "", "NoiseGate"], [6, 1, 1, "", "PeakFilter"], [6, 1, 1, "", "Pedalboard"], [6, 1, 1, "", "Phaser"], [6, 1, 1, "", "PitchShift"], [6, 1, 1, "", "Plugin"], [6, 1, 1, "", "PluginContainer"], [6, 1, 1, "", "Resample"], [6, 1, 1, "", "Reverb"], [6, 1, 1, "", "VST3Plugin"], [7, 0, 0, "-", "io"], [6, 5, 1, "", "load_plugin"]], "pedalboard.AudioUnitPlugin": [[6, 2, 1, "", "get_plugin_names_for_file"], [6, 3, 1, "", "name"], [6, 2, 1, "", "process"], [6, 2, 1, "", "reset"], [6, 2, 1, "", "show_editor"]], "pedalboard.Bitcrush": [[6, 3, 1, "", "bit_depth"], [6, 2, 1, "", "process"], [6, 2, 1, "", "reset"]], "pedalboard.Chain": [[6, 2, 1, "", "append"], [6, 2, 1, "", "insert"], [6, 2, 1, "", "process"], [6, 2, 1, "", "remove"], [6, 2, 1, "", "reset"]], "pedalboard.Chorus": [[6, 2, 1, "", "process"], [6, 3, 1, "", "rate_hz"], [6, 2, 1, "", "reset"]], "pedalboard.Clipping": [[6, 2, 1, "", "process"], [6, 2, 1, "", "reset"]], "pedalboard.Compressor": [[6, 2, 1, "", "process"], [6, 2, 1, "", "reset"]], "pedalboard.Convolution": [[6, 2, 1, "", "process"], [6, 2, 1, "", "reset"]], "pedalboard.Delay": [[6, 2, 1, "", "process"], [6, 2, 1, "", "reset"]], "pedalboard.Distortion": [[6, 2, 1, "", "process"], [6, 2, 1, "", "reset"]], "pedalboard.GSMFullRateCompressor": [[6, 2, 1, "", "process"], [6, 2, 1, "", "reset"]], "pedalboard.Gain": [[6, 2, 1, "", "process"], [6, 2, 1, "", "reset"]], "pedalboard.HighShelfFilter": [[6, 2, 1, "", "process"], [6, 2, 1, "", "reset"]], "pedalboard.HighpassFilter": [[6, 2, 1, "", "process"], [6, 2, 1, "", "reset"]], "pedalboard.IIRFilter": [[6, 2, 1, "", "process"], [6, 2, 1, "", "reset"]], "pedalboard.Invert": [[6, 2, 1, "", "process"], [6, 2, 1, "", "reset"]], "pedalboard.LadderFilter": [[6, 1, 1, "", "Mode"], [6, 2, 1, "", "process"], [6, 2, 1, "", "reset"]], "pedalboard.LadderFilter.Mode": [[6, 4, 1, "", "BPF12"], [6, 4, 1, "", "BPF24"], [6, 4, 1, "", "HPF12"], [6, 4, 1, "", "HPF24"], [6, 4, 1, "", "LPF12"], [6, 4, 1, "", "LPF24"]], "pedalboard.Limiter": [[6, 2, 1, "", "process"], [6, 2, 1, "", "reset"]], "pedalboard.LowShelfFilter": [[6, 2, 1, "", "process"], [6, 2, 1, "", "reset"]], "pedalboard.LowpassFilter": [[6, 2, 1, "", "process"], [6, 2, 1, "", "reset"]], "pedalboard.MP3Compressor": [[6, 2, 1, "", "process"], [6, 2, 1, "", "reset"]], "pedalboard.Mix": [[6, 2, 1, "", "append"], [6, 2, 1, "", "insert"], [6, 2, 1, "", "process"], [6, 2, 1, "", "remove"], [6, 2, 1, "", "reset"]], "pedalboard.NoiseGate": [[6, 2, 1, "", "process"], [6, 2, 1, "", "reset"]], "pedalboard.PeakFilter": [[6, 2, 1, "", "process"], [6, 2, 1, "", "reset"]], "pedalboard.Pedalboard": [[6, 2, 1, "", "append"], [6, 2, 1, "", "insert"], [6, 2, 1, "", "process"], [6, 2, 1, "", "remove"], [6, 2, 1, "", "reset"]], "pedalboard.Phaser": [[6, 2, 1, "", "process"], [6, 2, 1, "", "reset"]], "pedalboard.PitchShift": [[6, 2, 1, "", "process"], [6, 2, 1, "", "reset"]], "pedalboard.Plugin": [[6, 2, 1, "", "process"], [6, 2, 1, "", "reset"]], "pedalboard.PluginContainer": [[6, 2, 1, "", "process"], [6, 2, 1, "", "reset"]], "pedalboard.Resample": [[6, 1, 1, "", "Quality"], [6, 2, 1, "", "process"], [6, 3, 1, "", "quality"], [6, 2, 1, "", "reset"], [6, 3, 1, "", "target_sample_rate"]], "pedalboard.Resample.Quality": [[6, 4, 1, "", "CatmullRom"], [6, 4, 1, "", "Lagrange"], [6, 4, 1, "", "Linear"], [6, 4, 1, "", "WindowedSinc"], [6, 4, 1, "", "ZeroOrderHold"]], "pedalboard.Reverb": [[6, 2, 1, "", "process"], [6, 2, 1, "", "reset"]], "pedalboard.VST3Plugin": [[6, 2, 1, "", "get_plugin_names_for_file"], [6, 2, 1, "", "load_preset"], [6, 3, 1, "", "name"], [6, 2, 1, "", "process"], [6, 2, 1, "", "reset"], [6, 2, 1, "", "show_editor"]], "pedalboard.io": [[7, 1, 1, "", "AudioFile"], [7, 1, 1, "", "ReadableAudioFile"], [7, 1, 1, "", "ResampledReadableAudioFile"], [7, 1, 1, "", "StreamResampler"], [7, 1, 1, "", "WriteableAudioFile"]], "pedalboard.io.ReadableAudioFile": [[7, 2, 1, "", "close"], [7, 3, 1, "", "closed"], [7, 3, 1, "", "duration"], [7, 3, 1, "", "file_dtype"], [7, 3, 1, "", "frames"], [7, 3, 1, "", "name"], [7, 3, 1, "", "num_channels"], [7, 2, 1, "", "read"], [7, 2, 1, "", "read_raw"], [7, 2, 1, "", "resampled_to"], [7, 3, 1, "", "samplerate"], [7, 2, 1, "", "seek"], [7, 2, 1, "", "seekable"], [7, 2, 1, "", "tell"]], "pedalboard.io.ResampledReadableAudioFile": [[7, 2, 1, "", "close"], [7, 3, 1, "", "closed"], [7, 3, 1, "", "duration"], [7, 3, 1, "", "file_dtype"], [7, 3, 1, "", "frames"], [7, 3, 1, "", "name"], [7, 3, 1, "", "num_channels"], [7, 2, 1, "", "read"], [7, 3, 1, "", "resampling_quality"], [7, 3, 1, "", "samplerate"], [7, 2, 1, "", "seek"], [7, 2, 1, "", "seekable"], [7, 2, 1, "", "tell"]], "pedalboard.io.StreamResampler": [[7, 3, 1, "", "input_latency"], [7, 3, 1, "", "num_channels"], [7, 2, 1, "", "process"], [7, 3, 1, "", "quality"], [7, 2, 1, "", "reset"], [7, 3, 1, "", "source_sample_rate"], [7, 3, 1, "", "target_sample_rate"]], "pedalboard.io.WriteableAudioFile": [[7, 2, 1, "", "close"], [7, 3, 1, "", "closed"], [7, 3, 1, "", "file_dtype"], [7, 2, 1, "", "flush"], [7, 3, 1, "", "frames"], [7, 3, 1, "", "num_channels"], [7, 3, 1, "", "quality"], [7, 3, 1, "", "samplerate"], [7, 2, 1, "", "write"]]}, "objtypes": {"0": "py:module", "1": "py:class", "2": "py:method", "3": "py:property", "4": "py:attribute", "5": "py:function"}, "objnames": {"0": ["py", "module", "Python module"], "1": ["py", "class", "Python class"], "2": ["py", "method", "Python method"], "3": ["py", "property", "Python property"], "4": ["py", "attribute", "Python attribute"], "5": ["py", "function", "Python function"]}, "titleterms": {"plugin": [0, 1, 2, 4], "compat": [0, 3], "exampl": 1, "quick": 1, "start": 1, "make": 1, "guitar": 1, "style": 1, "pedalboard": [1, 2, 4, 6, 7], "us": [1, 2], "vst3": 1, "audio": [1, 2], "unit": 1, "creat": 1, "parallel": 1, "effect": [1, 2], "chain": 1, "frequent": 2, "ask": 2, "question": 2, "can": 2, "live": 2, "real": 2, "time": 2, "doe": 2, "support": 2, "chang": 2, "": 2, "paramet": 2, "over": 2, "vst": 2, "instrument": 2, "instead": 2, "accept": 2, "midi": 2, "featur": 3, "instal": 3, "refer": 3, "document": 3, "intern": 4, "ad": 4, "new": 4, "built": 4, "design": 4, "consider": 4, "licens": 5, "The": [6, 7], "api": [6, 7], "io": 7, "put": 1, "compressor": 1, "front": 1, "run": 1, "all": 1, "simultan": 1, "mix": 1}, "envversion": {"sphinx.domains.c": 2, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 8, "sphinx.domains.index": 1, "sphinx.domains.javascript": 2, "sphinx.domains.math": 2, "sphinx.domains.python": 3, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx": 57}, "alltitles": {"Plugin Compatibility": [[0, "plugin-compatibility"]], "Examples": [[1, "examples"]], "Quick start": [[1, "quick-start"]], "Making a guitar-style pedalboard": [[1, "making-a-guitar-style-pedalboard"]], "Using VST3\u00ae or Audio Unit plugins": [[1, "using-vst3-or-audio-unit-plugins"]], "Creating parallel effects chains": [[1, "creating-parallel-effects-chains"]], "Put a compressor at the front of the chain:": [[1, "put-a-compressor-at-the-front-of-the-chain"]], "Run all of these pedalboards simultaneously with the Mix plugin:": [[1, "run-all-of-these-pedalboards-simultaneously-with-the-mix-plugin"]], "Frequently Asked Questions": [[2, "frequently-asked-questions"]], "Can Pedalboard be used with live (real-time) audio?": [[2, "can-pedalboard-be-used-with-live-real-time-audio"]], "Does Pedalboard support changing a plugin\u2019s parameters over time?": [[2, "does-pedalboard-support-changing-a-plugin-s-parameters-over-time"]], "Can Pedalboard be used with VST instruments, instead of effects?": [[2, "can-pedalboard-be-used-with-vst-instruments-instead-of-effects"]], "Can Pedalboard plugins accept MIDI?": [[2, "can-pedalboard-plugins-accept-midi"]], "Features": [[3, "features"]], "Installation": [[3, "installation"]], "Compatibility": [[3, "compatibility"]], "Reference": [[3, "reference"]], "Documentation": [[3, "documentation"]], "Pedalboard Internals": [[4, "pedalboard-internals"]], "Adding new built-in Pedalboard plugins": [[4, "adding-new-built-in-pedalboard-plugins"]], "Design considerations": [[4, "design-considerations"]], "License": [[5, "license"]], "The pedalboard API": [[6, "module-pedalboard"]], "The pedalboard.io API": [[7, "module-pedalboard.io"]]}, "indexentries": {"audiounitplugin (class in pedalboard)": [[6, "pedalboard.AudioUnitPlugin"]], "bpf12 (pedalboard.ladderfilter.mode attribute)": [[6, "pedalboard.LadderFilter.Mode.BPF12"]], "bpf24 (pedalboard.ladderfilter.mode attribute)": [[6, "pedalboard.LadderFilter.Mode.BPF24"]], "bitcrush (class in pedalboard)": [[6, "pedalboard.Bitcrush"]], "catmullrom (pedalboard.resample.quality attribute)": [[6, "pedalboard.Resample.Quality.CatmullRom"]], "chain (class in pedalboard)": [[6, "pedalboard.Chain"]], "chorus (class in pedalboard)": [[6, "pedalboard.Chorus"]], "clipping (class in pedalboard)": [[6, "pedalboard.Clipping"]], "compressor (class in pedalboard)": [[6, "pedalboard.Compressor"]], "convolution (class in pedalboard)": [[6, "pedalboard.Convolution"]], "delay (class in pedalboard)": [[6, "pedalboard.Delay"]], "distortion (class in pedalboard)": [[6, "pedalboard.Distortion"]], "gsmfullratecompressor (class in pedalboard)": [[6, "pedalboard.GSMFullRateCompressor"]], "gain (class in pedalboard)": [[6, "pedalboard.Gain"]], "hpf12 (pedalboard.ladderfilter.mode attribute)": [[6, "pedalboard.LadderFilter.Mode.HPF12"]], "hpf24 (pedalboard.ladderfilter.mode attribute)": [[6, "pedalboard.LadderFilter.Mode.HPF24"]], "highshelffilter (class in pedalboard)": [[6, "pedalboard.HighShelfFilter"]], "highpassfilter (class in pedalboard)": [[6, "pedalboard.HighpassFilter"]], "iirfilter (class in pedalboard)": [[6, "pedalboard.IIRFilter"]], "invert (class in pedalboard)": [[6, "pedalboard.Invert"]], "lpf12 (pedalboard.ladderfilter.mode attribute)": [[6, "pedalboard.LadderFilter.Mode.LPF12"]], "lpf24 (pedalboard.ladderfilter.mode attribute)": [[6, "pedalboard.LadderFilter.Mode.LPF24"]], "ladderfilter (class in pedalboard)": [[6, "pedalboard.LadderFilter"]], "ladderfilter.mode (class in pedalboard)": [[6, "pedalboard.LadderFilter.Mode"]], "lagrange (pedalboard.resample.quality attribute)": [[6, "pedalboard.Resample.Quality.Lagrange"]], "limiter (class in pedalboard)": [[6, "pedalboard.Limiter"]], "linear (pedalboard.resample.quality attribute)": [[6, "pedalboard.Resample.Quality.Linear"]], "lowshelffilter (class in pedalboard)": [[6, "pedalboard.LowShelfFilter"]], "lowpassfilter (class in pedalboard)": [[6, "pedalboard.LowpassFilter"]], "mp3compressor (class in pedalboard)": [[6, "pedalboard.MP3Compressor"]], "mix (class in pedalboard)": [[6, "pedalboard.Mix"]], "noisegate (class in pedalboard)": [[6, "pedalboard.NoiseGate"]], "peakfilter (class in pedalboard)": [[6, "pedalboard.PeakFilter"]], "pedalboard (class in pedalboard)": [[6, "pedalboard.Pedalboard"]], "phaser (class in pedalboard)": [[6, "pedalboard.Phaser"]], "pitchshift (class in pedalboard)": [[6, "pedalboard.PitchShift"]], "plugin (class in pedalboard)": [[6, "pedalboard.Plugin"]], "plugincontainer (class in pedalboard)": [[6, "pedalboard.PluginContainer"]], "resample (class in pedalboard)": [[6, "pedalboard.Resample"]], "resample.quality (class in pedalboard)": [[6, "pedalboard.Resample.Quality"]], "reverb (class in pedalboard)": [[6, "pedalboard.Reverb"]], "vst3plugin (class in pedalboard)": [[6, "pedalboard.VST3Plugin"]], "windowedsinc (pedalboard.resample.quality attribute)": [[6, "pedalboard.Resample.Quality.WindowedSinc"]], "zeroorderhold (pedalboard.resample.quality attribute)": [[6, "pedalboard.Resample.Quality.ZeroOrderHold"]], "append() (pedalboard.chain method)": [[6, "pedalboard.Chain.append"]], "append() (pedalboard.mix method)": [[6, "pedalboard.Mix.append"]], "append() (pedalboard.pedalboard method)": [[6, "pedalboard.Pedalboard.append"]], "bit_depth (pedalboard.bitcrush property)": [[6, "pedalboard.Bitcrush.bit_depth"]], "get_plugin_names_for_file() (pedalboard.audiounitplugin static method)": [[6, "pedalboard.AudioUnitPlugin.get_plugin_names_for_file"]], "get_plugin_names_for_file() (pedalboard.vst3plugin static method)": [[6, "pedalboard.VST3Plugin.get_plugin_names_for_file"]], "insert() (pedalboard.chain method)": [[6, "pedalboard.Chain.insert"]], "insert() (pedalboard.mix method)": [[6, "pedalboard.Mix.insert"]], "insert() (pedalboard.pedalboard method)": [[6, "pedalboard.Pedalboard.insert"]], "load_plugin() (in module pedalboard)": [[6, "pedalboard.load_plugin"]], "load_preset() (pedalboard.vst3plugin method)": [[6, "pedalboard.VST3Plugin.load_preset"]], "module": [[6, "module-pedalboard"], [7, "module-pedalboard.io"]], "name (pedalboard.audiounitplugin property)": [[6, "pedalboard.AudioUnitPlugin.name"]], "name (pedalboard.vst3plugin property)": [[6, "pedalboard.VST3Plugin.name"]], "pedalboard": [[6, "module-pedalboard"]], "process() (pedalboard.audiounitplugin method)": [[6, "pedalboard.AudioUnitPlugin.process"]], "process() (pedalboard.bitcrush method)": [[6, "pedalboard.Bitcrush.process"]], "process() (pedalboard.chain method)": [[6, "pedalboard.Chain.process"]], "process() (pedalboard.chorus method)": [[6, "pedalboard.Chorus.process"]], "process() (pedalboard.clipping method)": [[6, "pedalboard.Clipping.process"]], "process() (pedalboard.compressor method)": [[6, "pedalboard.Compressor.process"]], "process() (pedalboard.convolution method)": [[6, "pedalboard.Convolution.process"]], "process() (pedalboard.delay method)": [[6, "pedalboard.Delay.process"]], "process() (pedalboard.distortion method)": [[6, "pedalboard.Distortion.process"]], "process() (pedalboard.gsmfullratecompressor method)": [[6, "pedalboard.GSMFullRateCompressor.process"]], "process() (pedalboard.gain method)": [[6, "pedalboard.Gain.process"]], "process() (pedalboard.highshelffilter method)": [[6, "pedalboard.HighShelfFilter.process"]], "process() (pedalboard.highpassfilter method)": [[6, "pedalboard.HighpassFilter.process"]], "process() (pedalboard.iirfilter method)": [[6, "pedalboard.IIRFilter.process"]], "process() (pedalboard.invert method)": [[6, "pedalboard.Invert.process"]], "process() (pedalboard.ladderfilter method)": [[6, "pedalboard.LadderFilter.process"]], "process() (pedalboard.limiter method)": [[6, "pedalboard.Limiter.process"]], "process() (pedalboard.lowshelffilter method)": [[6, "pedalboard.LowShelfFilter.process"]], "process() (pedalboard.lowpassfilter method)": [[6, "pedalboard.LowpassFilter.process"]], "process() (pedalboard.mp3compressor method)": [[6, "pedalboard.MP3Compressor.process"]], "process() (pedalboard.mix method)": [[6, "pedalboard.Mix.process"]], "process() (pedalboard.noisegate method)": [[6, "pedalboard.NoiseGate.process"]], "process() (pedalboard.peakfilter method)": [[6, "pedalboard.PeakFilter.process"]], "process() (pedalboard.pedalboard method)": [[6, "pedalboard.Pedalboard.process"]], "process() (pedalboard.phaser method)": [[6, "pedalboard.Phaser.process"]], "process() (pedalboard.pitchshift method)": [[6, "pedalboard.PitchShift.process"]], "process() (pedalboard.plugin method)": [[6, "pedalboard.Plugin.process"]], "process() (pedalboard.plugincontainer method)": [[6, "pedalboard.PluginContainer.process"]], "process() (pedalboard.resample method)": [[6, "pedalboard.Resample.process"]], "process() (pedalboard.reverb method)": [[6, "pedalboard.Reverb.process"]], "process() (pedalboard.vst3plugin method)": [[6, "pedalboard.VST3Plugin.process"]], "quality (pedalboard.resample property)": [[6, "pedalboard.Resample.quality"]], "rate_hz (pedalboard.chorus property)": [[6, "pedalboard.Chorus.rate_hz"]], "remove() (pedalboard.chain method)": [[6, "pedalboard.Chain.remove"]], "remove() (pedalboard.mix method)": [[6, "pedalboard.Mix.remove"]], "remove() (pedalboard.pedalboard method)": [[6, "pedalboard.Pedalboard.remove"]], "reset() (pedalboard.audiounitplugin method)": [[6, "pedalboard.AudioUnitPlugin.reset"]], "reset() (pedalboard.bitcrush method)": [[6, "pedalboard.Bitcrush.reset"]], "reset() (pedalboard.chain method)": [[6, "pedalboard.Chain.reset"]], "reset() (pedalboard.chorus method)": [[6, "pedalboard.Chorus.reset"]], "reset() (pedalboard.clipping method)": [[6, "pedalboard.Clipping.reset"]], "reset() (pedalboard.compressor method)": [[6, "pedalboard.Compressor.reset"]], "reset() (pedalboard.convolution method)": [[6, "pedalboard.Convolution.reset"]], "reset() (pedalboard.delay method)": [[6, "pedalboard.Delay.reset"]], "reset() (pedalboard.distortion method)": [[6, "pedalboard.Distortion.reset"]], "reset() (pedalboard.gsmfullratecompressor method)": [[6, "pedalboard.GSMFullRateCompressor.reset"]], "reset() (pedalboard.gain method)": [[6, "pedalboard.Gain.reset"]], "reset() (pedalboard.highshelffilter method)": [[6, "pedalboard.HighShelfFilter.reset"]], "reset() (pedalboard.highpassfilter method)": [[6, "pedalboard.HighpassFilter.reset"]], "reset() (pedalboard.iirfilter method)": [[6, "pedalboard.IIRFilter.reset"]], "reset() (pedalboard.invert method)": [[6, "pedalboard.Invert.reset"]], "reset() (pedalboard.ladderfilter method)": [[6, "pedalboard.LadderFilter.reset"]], "reset() (pedalboard.limiter method)": [[6, "pedalboard.Limiter.reset"]], "reset() (pedalboard.lowshelffilter method)": [[6, "pedalboard.LowShelfFilter.reset"]], "reset() (pedalboard.lowpassfilter method)": [[6, "pedalboard.LowpassFilter.reset"]], "reset() (pedalboard.mp3compressor method)": [[6, "pedalboard.MP3Compressor.reset"]], "reset() (pedalboard.mix method)": [[6, "pedalboard.Mix.reset"]], "reset() (pedalboard.noisegate method)": [[6, "pedalboard.NoiseGate.reset"]], "reset() (pedalboard.peakfilter method)": [[6, "pedalboard.PeakFilter.reset"]], "reset() (pedalboard.pedalboard method)": [[6, "pedalboard.Pedalboard.reset"]], "reset() (pedalboard.phaser method)": [[6, "pedalboard.Phaser.reset"]], "reset() (pedalboard.pitchshift method)": [[6, "pedalboard.PitchShift.reset"]], "reset() (pedalboard.plugin method)": [[6, "pedalboard.Plugin.reset"]], "reset() (pedalboard.plugincontainer method)": [[6, "pedalboard.PluginContainer.reset"]], "reset() (pedalboard.resample method)": [[6, "pedalboard.Resample.reset"]], "reset() (pedalboard.reverb method)": [[6, "pedalboard.Reverb.reset"]], "reset() (pedalboard.vst3plugin method)": [[6, "pedalboard.VST3Plugin.reset"]], "show_editor() (pedalboard.audiounitplugin method)": [[6, "pedalboard.AudioUnitPlugin.show_editor"]], "show_editor() (pedalboard.vst3plugin method)": [[6, "pedalboard.VST3Plugin.show_editor"]], "target_sample_rate (pedalboard.resample property)": [[6, "pedalboard.Resample.target_sample_rate"]], "audiofile (class in pedalboard.io)": [[7, "pedalboard.io.AudioFile"]], "readableaudiofile (class in pedalboard.io)": [[7, "pedalboard.io.ReadableAudioFile"]], "resampledreadableaudiofile (class in pedalboard.io)": [[7, "pedalboard.io.ResampledReadableAudioFile"]], "streamresampler (class in pedalboard.io)": [[7, "pedalboard.io.StreamResampler"]], "writeableaudiofile (class in pedalboard.io)": [[7, "pedalboard.io.WriteableAudioFile"]], "close() (pedalboard.io.readableaudiofile method)": [[7, "pedalboard.io.ReadableAudioFile.close"]], "close() (pedalboard.io.resampledreadableaudiofile method)": [[7, "pedalboard.io.ResampledReadableAudioFile.close"]], "close() (pedalboard.io.writeableaudiofile method)": [[7, "pedalboard.io.WriteableAudioFile.close"]], "closed (pedalboard.io.readableaudiofile property)": [[7, "pedalboard.io.ReadableAudioFile.closed"]], "closed (pedalboard.io.resampledreadableaudiofile property)": [[7, "pedalboard.io.ResampledReadableAudioFile.closed"]], "closed (pedalboard.io.writeableaudiofile property)": [[7, "pedalboard.io.WriteableAudioFile.closed"]], "duration (pedalboard.io.readableaudiofile property)": [[7, "pedalboard.io.ReadableAudioFile.duration"]], "duration (pedalboard.io.resampledreadableaudiofile property)": [[7, "pedalboard.io.ResampledReadableAudioFile.duration"]], "file_dtype (pedalboard.io.readableaudiofile property)": [[7, "pedalboard.io.ReadableAudioFile.file_dtype"]], "file_dtype (pedalboard.io.resampledreadableaudiofile property)": [[7, "pedalboard.io.ResampledReadableAudioFile.file_dtype"]], "file_dtype (pedalboard.io.writeableaudiofile property)": [[7, "pedalboard.io.WriteableAudioFile.file_dtype"]], "flush() (pedalboard.io.writeableaudiofile method)": [[7, "pedalboard.io.WriteableAudioFile.flush"]], "frames (pedalboard.io.readableaudiofile property)": [[7, "pedalboard.io.ReadableAudioFile.frames"]], "frames (pedalboard.io.resampledreadableaudiofile property)": [[7, "pedalboard.io.ResampledReadableAudioFile.frames"]], "frames (pedalboard.io.writeableaudiofile property)": [[7, "pedalboard.io.WriteableAudioFile.frames"]], "input_latency (pedalboard.io.streamresampler property)": [[7, "pedalboard.io.StreamResampler.input_latency"]], "name (pedalboard.io.readableaudiofile property)": [[7, "pedalboard.io.ReadableAudioFile.name"]], "name (pedalboard.io.resampledreadableaudiofile property)": [[7, "pedalboard.io.ResampledReadableAudioFile.name"]], "num_channels (pedalboard.io.readableaudiofile property)": [[7, "pedalboard.io.ReadableAudioFile.num_channels"]], "num_channels (pedalboard.io.resampledreadableaudiofile property)": [[7, "pedalboard.io.ResampledReadableAudioFile.num_channels"]], "num_channels (pedalboard.io.streamresampler property)": [[7, "pedalboard.io.StreamResampler.num_channels"]], "num_channels (pedalboard.io.writeableaudiofile property)": [[7, "pedalboard.io.WriteableAudioFile.num_channels"]], "pedalboard.io": [[7, "module-pedalboard.io"]], "process() (pedalboard.io.streamresampler method)": [[7, "pedalboard.io.StreamResampler.process"]], "quality (pedalboard.io.streamresampler property)": [[7, "pedalboard.io.StreamResampler.quality"]], "quality (pedalboard.io.writeableaudiofile property)": [[7, "pedalboard.io.WriteableAudioFile.quality"]], "read() (pedalboard.io.readableaudiofile method)": [[7, "pedalboard.io.ReadableAudioFile.read"]], "read() (pedalboard.io.resampledreadableaudiofile method)": [[7, "pedalboard.io.ResampledReadableAudioFile.read"]], "read_raw() (pedalboard.io.readableaudiofile method)": [[7, "pedalboard.io.ReadableAudioFile.read_raw"]], "resampled_to() (pedalboard.io.readableaudiofile method)": [[7, "pedalboard.io.ReadableAudioFile.resampled_to"]], "resampling_quality (pedalboard.io.resampledreadableaudiofile property)": [[7, "pedalboard.io.ResampledReadableAudioFile.resampling_quality"]], "reset() (pedalboard.io.streamresampler method)": [[7, "pedalboard.io.StreamResampler.reset"]], "samplerate (pedalboard.io.readableaudiofile property)": [[7, "pedalboard.io.ReadableAudioFile.samplerate"]], "samplerate (pedalboard.io.resampledreadableaudiofile property)": [[7, "pedalboard.io.ResampledReadableAudioFile.samplerate"]], "samplerate (pedalboard.io.writeableaudiofile property)": [[7, "pedalboard.io.WriteableAudioFile.samplerate"]], "seek() (pedalboard.io.readableaudiofile method)": [[7, "pedalboard.io.ReadableAudioFile.seek"]], "seek() (pedalboard.io.resampledreadableaudiofile method)": [[7, "pedalboard.io.ResampledReadableAudioFile.seek"]], "seekable() (pedalboard.io.readableaudiofile method)": [[7, "pedalboard.io.ReadableAudioFile.seekable"]], "seekable() (pedalboard.io.resampledreadableaudiofile method)": [[7, "pedalboard.io.ResampledReadableAudioFile.seekable"]], "source_sample_rate (pedalboard.io.streamresampler property)": [[7, "pedalboard.io.StreamResampler.source_sample_rate"]], "target_sample_rate (pedalboard.io.streamresampler property)": [[7, "pedalboard.io.StreamResampler.target_sample_rate"]], "tell() (pedalboard.io.readableaudiofile method)": [[7, "pedalboard.io.ReadableAudioFile.tell"]], "tell() (pedalboard.io.resampledreadableaudiofile method)": [[7, "pedalboard.io.ResampledReadableAudioFile.tell"]], "write() (pedalboard.io.writeableaudiofile method)": [[7, "pedalboard.io.WriteableAudioFile.write"]]}})\ No newline at end of file+Search.setIndex({"docnames": ["compatibility", "examples", "faq", "index", "internals", "license", "reference/pedalboard", "reference/pedalboard.io"], "filenames": ["compatibility.rst", "examples.rst", "faq.rst", "index.rst", "internals.rst", "license.rst", "reference/pedalboard.rst", "reference/pedalboard.io.rst"], "titles": ["Plugin Compatibility", "Examples", "Frequently Asked Questions", "Features", "Pedalboard Internals", "License", "The <code class=\"docutils literal notranslate\"><span class=\"pre\">pedalboard</span></code> API", "The <code class=\"docutils literal notranslate\"><span class=\"pre\">pedalboard.io</span></code> API"], "terms": {"pedalboard": [0, 3, 5], "allow": [0, 2, 3, 6, 7], "load": [0, 1, 3, 4], "vst3": [0, 3, 4, 5], "audio": [0, 3, 4, 5, 6, 7], "unit": [0, 2, 3, 4], "which": [0, 2, 5, 6, 7], "could": [0, 2, 6], "contain": [0, 1, 2, 6, 7], "ani": [0, 2, 4, 6, 7], "code": [0, 2, 4, 5], "most": [0, 2, 3, 4, 6, 7], "have": [0, 2, 4, 7], "been": [0, 7], "test": [0, 3, 4], "work": [0, 1, 3, 7], "just": [0, 1, 2, 4, 7], "fine": [0, 2], "some": [0, 1, 4, 7], "mai": [0, 4, 6, 7], "worst": [0, 7], "even": [0, 3], "crash": [0, 7], "python": [0, 1, 2, 3, 4, 7], "interpret": [0, 2, 3], "without": [0, 2, 3, 6, 7], "warn": 0, "abil": 0, "catch": 0, "error": 0, "ar": [0, 1, 2, 3, 4, 5, 6, 7], "well": [0, 3, 4, 7], "behav": [0, 1], "conform": 0, "set": [0, 1, 2, 6, 7], "convent": 0, "how": [0, 1, 6], "suppos": 0, "mani": [0, 3, 6, 7], "do": [0, 1, 7], "specif": [0, 6], "attempt": [0, 7], "detect": 0, "common": [0, 3], "program": [0, 1, 2], "can": [0, 1, 3, 4, 6, 7], "around": [0, 4, 6], "issu": [0, 2, 4], "includ": [0, 1, 2, 3, 4, 5], "automat": [0, 3, 7], "don": [0, 1, 7], "t": [0, 1, 2, 7], "clear": [0, 6], "intern": [0, 3, 6, 7], "state": [0, 6, 7], "when": [0, 2, 3, 4, 7], "ask": [0, 3], "so": [0, 1, 2, 7], "misbehav": 0, "notic": 0, "If": [0, 1, 3, 6, 7], "i": [0, 1, 2, 3, 4, 5, 6, 7], "being": 0, "render": [0, 7], "incorrectli": 0, "leak": [0, 7], "from": [0, 1, 2, 3, 5, 6, 7], "one": [0, 1, 3, 7], "process": [0, 1, 2, 3, 4, 5, 6, 7], "call": [0, 6, 7], "next": 0, "an": [0, 1, 2, 4, 6, 7], "undesir": 0, "fashion": [0, 2], "try": [0, 6], "pass": [0, 2, 6, 7], "silenc": 0, "between": [0, 2, 6, 7], "ensur": [0, 2, 4, 7], "reverb": [0, 1, 2, 3, 6], "tail": [0, 2, 6], "other": [0, 1, 3, 6, 7], "ha": [0, 6, 7], "time": [0, 1, 3, 6, 7], "fade": 0, "reload": 0, "everi": [0, 4, 7], "load_plugin": [0, 1, 3, 4], "import": [1, 2, 4], "choru": [1, 3, 6], "io": [1, 2, 3, 6], "audiofil": [1, 2, 7], "read": [1, 2, 3, 6, 7], "whole": 1, "file": [1, 2, 3, 4, 6, 7], "wav": [1, 2, 3, 7], "f": [1, 7], "frame": [1, 2, 7], "sampler": [1, 2, 7], "object": [1, 2, 6, 7], "multipl": [1, 2, 3, 6, 7], "board": [1, 2], "room_siz": [1, 6], "0": [1, 2, 6, 7], "25": [1, 6], "run": [1, 6], "through": [1, 2, 6, 7], "thi": [1, 2, 5, 6, 7], "write": [1, 2, 3, 6, 7], "back": [1, 6], "output": [1, 2, 6, 7], "w": [1, 2, 7], "shape": [1, 2, 7], "It": [1, 3], "smaller": [1, 2, 7], "resampl": [1, 3, 6, 7], "our": [1, 2], "desir": 1, "sampl": [1, 2, 6, 7], "rate": [1, 2, 6, 7], "44100": [1, 7], "input": [1, 2, 6, 7], "resampled_to": [1, 7], "pretti": 1, "interest": 1, "sound": [1, 6], "compressor": [1, 2, 3, 6], "threshold_db": [1, 6], "50": [1, 6], "ratio": [1, 6], "gain": [1, 3, 6], "gain_db": [1, 6], "30": 1, "ladderfilt": [1, 3, 6], "mode": [1, 6, 7], "hpf12": [1, 6], "cutoff_hz": [1, 6], "900": 1, "phaser": [1, 3, 6], "convolut": [1, 3, 6], "guitar_amp": 1, "1": [1, 2, 3, 6, 7], "like": [1, 6, 7], "list": [1, 6], "you": [1, 3, 7], "add": [1, 2, 3, 4, 6], "append": [1, 6, 7], "10": [1, 3, 6, 7], "limit": [1, 3, 6], "chang": [1, 3, 6, 7], "paramet": [1, 3, 6, 7], "easili": 1, "40": 1, "known": 1, "path": [1, 7], "disk": [1, 7], "vst": [1, 3, 5], "roughrider3": 1, "print": 1, "kei": 1, "dict_kei": 1, "sc_hpf_hz": 1, "input_lvl_db": 1, "sensitivity_db": 1, "attack_m": [1, 6], "release_m": [1, 6], "makeup_db": 1, "mix": [1, 6], "output_lvl_db": 1, "sc_activ": 1, "full_bandwidth": 1, "bypass": 1, "15": 1, "r": [1, 7], "put": 1, "same": [1, 4, 6, 7], "instanc": [1, 4, 6, 7], "delai": [1, 2, 3, 6], "pitch": [1, 3, 6], "shift": [1, 6], "themselv": 1, "nest": 1, "them": 1, "much": [1, 6], "distort": [1, 3, 6], "pitchshift": [1, 3, 5, 6], "passthrough": 1, "delay_and_pitch_shift": 1, "delay_second": [1, 6], "semiton": [1, 6], "7": [1, 3, 6], "3": [1, 3, 6], "delay_longer_and_more_pitch_shift": 1, "5": [1, 6, 7], "12": [1, 6], "6": [1, 3, 5, 6, 7], "front": 1, "all": [1, 2, 3, 4, 6, 7], "simultan": 1, "final": 1, "For": [1, 6, 7], "more": [1, 3, 4, 6, 7], "see": [1, 2, 6, 7], "folder": 1, "repositori": [1, 4], "demo": 1, "colab": 1, "notebook": 1, "interact": 1, "web": 1, "hug": 1, "face": 1, "space": 1, "gradio": 1, "via": [1, 3, 6, 7], "ak391": 1, "technic": 2, "ye": 2, "pull": [2, 5], "request": 2, "98": 2, "experiment": [2, 3], "interfac": [2, 4], "written": [2, 4, 7], "c": [2, 4], "stefanobazzi": 2, "guitarboard": 2, "project": [2, 5], "exampl": [2, 3, 4, 7], "sounddevic": 2, "librari": [2, 3, 4, 5, 6, 7], "howev": 2, "coupl": 2, "big": 2, "caveat": 2, "talk": 2, "about": [1, 2], "context": 2, "languag": 2, "garbag": 2, "collect": 2, "mean": 2, "your": 2, "randomli": 2, "paus": 2, "regular": [1, 2, 7], "interv": 2, "clean": 2, "up": [2, 3, 6], "unus": [2, 7], "In": 2, "result": [2, 7], "random": [2, 7], "pop": 2, "click": 2, "drop": 2, "out": [2, 3, 6, 7], "veri": 2, "difficult": 2, "prevent": [2, 7], "global": [2, 3], "lock": [2, 3], "also": [2, 3, 4, 6, 7], "potenti": [2, 7], "unbound": [2, 7], "switch": 2, "thread": [2, 3, 4], "oper": [2, 7], "system": [2, 7], "separ": 2, "high": [2, 6], "prioriti": 2, "block": 2, "caus": [2, 6, 7], "stutter": 2, "access": 2, "mutat": 2, "note": [1, 2, 6, 7], "applic": [2, 4], "stream": [2, 3, 6, 7], "larg": [2, 7], "buffer": [2, 6, 7], "size": [2, 4, 6], "second": [1, 2, 6, 7], "soft": 2, "requir": [2, 3, 4, 6, 7], "case": [2, 3, 4, 6], "network": 2, "data": [2, 3, 7], "offlin": 2, "chunk": [1, 2, 6, 7], "while": [1, 2, 6, 7], "built": [2, 3], "function": [2, 4, 6, 7], "possibl": [2, 3, 7], "vari": 2, "manual": [2, 3], "tqdm": 2, "step": 2, "would": [2, 4, 6, 7], "give": [2, 6], "smoother": 2, "transit": 2, "expens": [2, 6], "speed": [2, 3, 4, 6], "step_size_in_sampl": 2, "100": [2, 6, 7], "_n_": 2, "af": 2, "open": [1, 2, 4, 7], "we": 2, "directli": [2, 6, 7], "save": 2, "memori": [2, 3, 6, 7], "num_channel": [1, 2, 7], "o": [1, 2, 3, 6, 7], "creat": [2, 3, 6, 7], "progress": 2, "bar": 2, "show": [2, 4], "total": [2, 7], "pbar": 2, "rang": [2, 3, 6], "wet": [2, 6], "equal": [2, 3, 6, 7], "percentag": [2, 6], "track": 2, "e": [2, 6, 7], "make": [2, 3], "ramp": 2, "percentage_through_track": 2, "wet_level": [2, 6], "updat": 2, "number": [2, 3, 5, 6, 7], "receiv": [2, 6], "reset": [1, 2, 6, 7], "fals": [1, 2, 6, 7], "aren": 2, "cut": [2, 6], "off": [2, 6], "With": 2, "techniqu": [2, 6], "autom": 2, "usual": [2, 7], "somewher": 2, "000": [2, 7], "2m": 2, "22m": 2, "44": [2, 6, 7], "1khz": [2, 6], "small": 2, "enough": 2, "avoid": [2, 7], "hear": 2, "artifact": [2, 6], "slow": [2, 6], "down": 2, "dramat": 2, "Not": [2, 4, 6, 7], "yet": 2, "The": [2, 4, 5], "underli": [2, 7], "framework": 2, "juce": [2, 4, 5], "au": [2, 7], "itself": [2, 4, 6], "modifi": 2, "either": [2, 7], "although": [2, 6, 7], "ad": [3, 6, 7], "effect": [3, 4, 6, 7], "support": [3, 4, 6, 7], "popular": 3, "format": [3, 6, 7], "box": 3, "us": [3, 4, 5, 6, 7], "third": 3, "parti": 3, "plugin": [3, 5, 6], "wa": [3, 7], "spotifi": [1, 3, 5], "": [3, 4, 6, 7], "intellig": 3, "lab": 3, "enabl": 3, "studio": 3, "qualiti": [3, 6, 7], "within": [3, 4], "tensorflow": 3, "augment": 3, "improv": 3, "machin": [3, 4], "learn": [3, 4], "model": [3, 6], "help": 3, "content": [3, 7], "creation": 3, "digit": [3, 4, 6], "workstat": 3, "util": [3, 6], "aiff": [3, 7], "flac": [3, 7], "mp3": [3, 6, 7], "ogg": [3, 7], "platform": [3, 4, 7], "depend": [3, 4, 6, 7], "addit": [3, 4, 7], "aac": [3, 7], "ac3": [3, 7], "wma": [3, 7], "fly": [3, 7], "usag": [3, 6], "basic": [3, 6, 7], "transform": 3, "guitar": 3, "style": 3, "clip": [3, 6], "loud": [3, 6], "dynam": [3, 6], "filter": [3, 6], "highpassfilt": [3, 6], "lowpassfilt": [3, 6], "spatial": 3, "lossi": [3, 6], "compress": [3, 6, 7], "gsmfullratecompressor": [3, 5, 6], "mp3compressor": [3, 5, 6], "reduct": [3, 6], "bitcrush": [3, 6], "maco": [3, 4, 7], "window": [3, 4, 7], "linux": [3, 4, 7], "strong": 3, "safeti": 3, "guarante": 3, "releas": [3, 6], "gil": 3, "cpu": 3, "core": [3, 5], "No": [3, 6], "need": [3, 4], "multiprocess": 3, "onli": [3, 6, 7], "300x": 3, "faster": 3, "than": [3, 4, 6, 7], "pysox": 3, "singl": 3, "2": [3, 6, 7], "5x": 3, "soxbind": 3, "icorv": 3, "4x": 3, "librosa": 3, "tf": 3, "pipelin": 3, "avail": [3, 4, 6], "pypi": 3, "wheel": [3, 4], "pip": 3, "That": 3, "new": [3, 7], "follow": [3, 4, 5], "md": 3, "robust": 3, "guid": 3, "thoroughli": 3, "8": [3, 6], "9": 3, "11": 3, "heavili": 3, "product": 3, "github": [1, 3], "manylinux": 3, "x86_64": 3, "intel": 3, "amd": 3, "aarch64": 3, "arm": 3, "appl": 3, "silicon": 3, "rel": 3, "modern": 3, "glibc": 3, "27": 3, "both": [3, 6], "wide": 3, "amd64": 3, "x86": 3, "64": [3, 6], "api": [3, 4], "quick": 3, "start": [3, 7], "parallel": [3, 6], "chain": [3, 6], "frequent": 3, "question": 3, "live": 3, "real": [3, 6, 7], "doe": [3, 4, 7], "over": 3, "instrument": 3, "instead": [1, 3, 6, 7], "accept": [3, 6, 7], "midi": 3, "design": [3, 6], "consider": 3, "licens": [3, 4], "repo": 3, "wrapper": 4, "sourc": [4, 7], "cross": 4, "develop": 4, "pybind11": 4, "bind": 4, "goal": 4, "expos": 4, "signal": [4, 6], "idiomat": 4, "wai": 4, "provid": [4, 6, 7], "raw": [4, 7], "perform": 4, "dsp": 4, "hide": 4, "complex": 4, "programm": 4, "intuit": 4, "varieti": 4, "reason": 4, "wider": 4, "compat": [4, 5], "notabl": 4, "rare": 4, "fewer": [4, 6], "simpler": 4, "remov": [4, 6], "copi": 4, "associ": 4, "resourc": 4, "option": [4, 7], "might": 4, "meant": 4, "music": 4, "appropri": 4, "vice": 4, "versa": 4, "stabil": 4, "environ": 4, "where": 4, "implement": [4, 6], "logic": 4, "portabl": 4, "safe": 4, "constraint": 4, "should": [4, 6, 7], "consid": [4, 6, 7], "gplv3": [4, 5], "static": [4, 5], "link": 4, "vendor": 4, "git": 4, "submodul": 4, "binari": [4, 7], "distribut": 4, "Will": [4, 7], "increas": [4, 6, 7], "amount": [4, 6, 7], "compil": [4, 5], "runtim": 4, "cannot": 4, "user": 4, "instal": [4, 7], "softwar": 4, "complic": 4, "simplic": 4, "packag": [4, 7], "copyright": 5, "2021": 5, "2022": [1, 5], "ab": 5, "under": [5, 7], "gnu": 5, "gener": [5, 6], "public": 5, "v3": 5, "carri": 5, "dual": 5, "commerci": 5, "sdk": 5, "bundl": 5, "own": [5, 6], "steinberg": 5, "media": 5, "technologi": 5, "gmbh": 5, "rubber": [5, 6], "band": [5, 6], "gplv2": 5, "newer": 5, "libmp3lam": 5, "lame": [5, 6, 7], "lgplv2": 5, "upgrad": 5, "inclus": 5, "permit": 5, "libgsm": 5, "isc": 5, "regist": 5, "trademark": 5, "modul": [6, 7], "class": [6, 7], "subclass": 6, "each": [6, 7], "appli": 6, "audiounitplugin": [], "path_to_plugin_fil": [], "str": [6, 7], "parameter_valu": [], "dict": [], "union": 7, "int": [1, 6, 7], "float": [6, 7], "bool": [6, 7], "plugin_nam": [], "none": [6, 7], "A": [6, 7], "non": [6, 7], "unavail": [], "must": [6, 7], "loadabl": [], "plug": 7, "Ins": [], "compon": [], "vst3plugin": [], "get_plugin_names_for_fil": [], "filenam": 7, "return": [6, 7], "name": 7, "given": [6, 7], "scan": [], "importerror": [], "rais": 7, "insid": 6, "method": [6, 7], "determin": 6, "present": [], "what": [], "properti": [6, 7], "report": [], "self": 6, "pedalboard_n": 6, "input_arrai": 6, "numpi": [6, 7], "ndarrai": [6, 7], "sample_r": 6, "buffer_s": 6, "8192": 6, "true": [6, 7], "float32": [6, 7], "32": [6, 7], "bit": [6, 7], "point": [6, 7], "arrai": [6, 7], "were": 6, "expect": [6, 7], "To": [6, 7], "remain": [6, 7], "anoth": 6, "datatyp": [6, 7], "convert": [6, 7], "argument": [6, 7], "control": 6, "higher": 6, "flag": 6, "befor": [6, 7], "begin": [6, 7], "previou": 6, "store": [6, 7], "g": 6, "line": [6, 7], "lfo": 6, "etc": [6, 7], "valu": [6, 7], "unchang": 6, "show_editor": [], "_audiounitplugin": [], "ui": [], "nativ": 7, "until": 1, "close": 7, "keyboardinterrupt": [], "bit_depth": [6, 7], "reduc": 6, "depth": [6, 7], "lo": 6, "fi": 6, "vertic": 6, "resolut": 6, "uniqu": 6, "repres": 6, "horizont": 6, "per": [6, 7], "quantiz": 6, "integ": [6, 7], "decim": 6, "onto": 6, "dtype": [6, 7], "zero": 6, "plugincontain": 6, "arg0": 6, "insert": 6, "index": 6, "arg": [], "kwarg": [], "overload": [], "float64": 7, "rate_hz": 6, "centre_delay_m": 6, "feedback": 6, "frequenc": 6, "respons": 6, "centr": 6, "get": 6, "classic": 6, "m": 6, "low": 6, "feeback": 6, "volum": 6, "flanger": 6, "lower": 6, "lot": 6, "vibrato": 6, "oscil": 6, "hertz": 6, "hz": [6, 7], "hard": [6, 7], "threshold": 6, "decibel": 6, "algorithm": [6, 7], "introduc": [6, 7], "nois": 6, "gsmcompressor": 6, "impulse_response_filenam": 6, "suitabl": 6, "thing": 6, "speaker": 6, "simul": 6, "dry": 6, "drive_db": 6, "linear": [6, 7], "tanh": 6, "hyperbol": 6, "tangent": 6, "waveshap": 6, "harmon": 6, "pleas": 6, "produc": 6, "roughli": 6, "equival": 6, "def": 6, "x": 6, "db_to_gain": 6, "windowedsinc": [6, 7], "4": 6, "degrad": 6, "gsm": 6, "full": 6, "emul": 6, "2g": 6, "cellular": 6, "phone": 6, "connect": 6, "fix": 6, "8khz": 6, "codec": [6, 7], "specifi": [6, 7], "decreas": [6, 7], "amplifi": 6, "attenu": 6, "think": 6, "highshelffilt": 6, "cutoff_frequency_hz": 6, "440": 6, "q": 6, "7071067690849304": 6, "shelf": 6, "variabl": [6, 7], "abov": 6, "cutoff": 6, "boost": 6, "first": 6, "order": 6, "roll": 6, "6db": 6, "octav": 6, "3db": 6, "frac": 6, "sqrt": 6, "express": 6, "factor": 6, "further": [6, 7], "iirfilt": 6, "abstract": 6, "variou": 6, "kind": 6, "infinit": 6, "impuls": 6, "iir": 6, "lowshelffilt": 6, "peakfilt": 6, "invert": 6, "flip": 6, "polar": 6, "audibl": 6, "its": [6, 7], "take": 6, "mathemat": 6, "ident": [6, 7], "cancel": 6, "origin": [6, 7], "lpf12": 6, "200": 6, "reson": 6, "drive": 6, "multi": [6, 7], "base": [6, 7], "moog": 6, "synthes": 6, "ladder": 6, "invent": 6, "dr": 6, "bob": 6, "1968": 6, "below": 6, "side": 6, "peak": 6, "type": [6, 7], "architectur": 6, "db": 6, "bpf12": 6, "lpf24": 6, "24": 6, "hpf24": 6, "bpf24": 6, "simpl": 6, "standard": 6, "featur": 6, "two": 6, "clipper": 6, "707x": 6, "vbr_qualiti": 6, "encod": [6, 7], "current": [6, 7], "vbr": 6, "better": 6, "32khz": 6, "48khz": 6, "unsupport": [6, 7], "except": [6, 7], "thrown": 6, "noiseg": 6, "gate": 6, "attack": 6, "expand": 6, "notch": 6, "centre_frequency_hz": 6, "1300": 6, "stage": 6, "sweep": 6, "magnitud": 6, "affect": 6, "durat": [6, 7], "chri": 6, "cannam": 6, "wonder": 6, "stretch": 6, "intend": 6, "direct": 6, "target_sample_r": [6, 7], "8000": 6, "downsampl": 6, "upsampl": 6, "alias": 6, "indic": [6, 7], "zeroorderhold": 6, "lowest": 6, "fastest": [6, 7], "slightli": 6, "less": 6, "noisi": 6, "simplest": 6, "catmullrom": 6, "moder": 6, "good": 6, "fast": 6, "lagrang": 6, "highest": 6, "slowest": [6, 7], "still": 6, "mere": 6, "damp": 6, "33": 6, "dry_level": 6, "width": 6, "freeze_mod": 6, "stereo": [6, 7], "tune": 6, "freeverb": 6, "http": [1, 6], "ccrma": 6, "stanford": 6, "edu": 6, "jo": 6, "pasp": 6, "html": [1, 6], "_": [1, 6], "differ": 7, "build": [], "load_preset": [], "_vst3plugin": [], "preset_file_path": [], "preset": [], "vstpreset": [], "externalplugin": [], "dictionari": [], "initi": [], "after": [], "match": 7, "normal": [], "string": 7, "identifi": [], "These": [], "throw": 7, "found": [], "runtimeerror": 7, "v0": 7, "file_lik": 7, "binaryio": 7, "liter": 7, "16": 7, "readabl": 7, "writeabl": 7, "default": 7, "unlik": 7, "typic": 7, "trail": 7, "b": 7, "redund": 7, "exist": 7, "seekabl": 7, "stringio": 7, "my_fil": 7, "first_ten_second": 7, "ogg_buff": 7, "bytesio": 7, "get_audio_buff": 7, "22_050": 7, "white_nois": 7, "np": 7, "rand": 7, "wav_buff": 7, "getvalu": 7, "someth": 7, "160": 7, "kilobit": 7, "re": 7, "four": 7, "tell": [1, 7], "1024": 7, "readableaudiofil": 7, "cross_platform_formats_onli": 7, "wrap": 7, "vorbi": 7, "3g2": 7, "3gp": 7, "adt": 7, "aif": 7, "aifc": 7, "amr": 7, "bwf": 7, "caf": 7, "ec3": 7, "latm": 7, "loa": 7, "m4a": 7, "m4b": 7, "m4r": 7, "mov": 7, "mp1": 7, "mp2": 7, "mp4": 7, "mpa": 7, "mpeg": 7, "qt": 7, "sd2": 7, "snd": 7, "w64": 7, "xhe": 7, "get_supported_read_format": 7, "extens": 7, "pars": 7, "consist": 7, "constructor": 7, "certain": 7, "probabl": 7, "want": 7, "too": 7, "d": [1, 7], "num_fram": 7, "channel": 7, "posit": 7, "decept": 7, "hour": 7, "long": 7, "hand": 7, "megabyt": 7, "decompress": 7, "nearli": 7, "gigabyt": 7, "rather": [1, 7], "onc": 7, "debug": 7, "problem": 7, "dimension": 7, "length": 7, "alwai": 7, "minimum": 7, "0f": 7, "maximum": 7, "read_raw": 7, "int8": 7, "int16": 7, "int32": 7, "resampledreadableaudiofil": 7, "constant": 7, "seek": 7, "locat": 7, "futur": 7, "pointer": 7, "iff": 7, "longer": 7, "usabl": 7, "otherwis": 7, "divid": 7, "file_dtyp": 7, "regardless": 7, "441": 7, "audio_fil": 7, "resampling_qu": 7, "22050": 7, "fraction": 7, "hood": 7, "streamresampl": 7, "obtain": 7, "entir": 7, "benefit": 7, "target": 7, "As": 7, "version": 7, "respect": 7, "push": 7, "accur": 7, "optim": 7, "22": 7, "050": 7, "source_sample_r": 7, "seri": 7, "flush": 7, "input_lat": 7, "suppli": 7, "writeableaudiofil": 7, "get_supported_write_format": 7, "filename_or_file_lik": 7, "assum": 7, "level": 7, "numer": 7, "128": 7, "256": 7, "advanc": 7, "v2": 7, "best": 7, "happen": 7, "reliabl": 7, "forc": 7, "occur": 7, "typeerror": 7, "far": 7, "increment": 7, "kbp": 7, "v9": 7, "aupreset": [], "preset_st": [], "audiounit": [], "bytestr": [], "watch": 1, "video": 1, "document": 1, "feat": 1, "youtub": 1, "empti": 1, "inform": 1, "refer": 1, "member": [], "peter": 1, "sobot": 1, "europython": 1, "contribut": 3}, "objects": {"": [[6, 0, 0, "-", "pedalboard"]], "pedalboard": [[6, 1, 1, "", "Bitcrush"], [6, 1, 1, "", "Chorus"], [6, 1, 1, "", "Clipping"], [6, 1, 1, "", "Compressor"], [6, 1, 1, "", "Convolution"], [6, 1, 1, "", "Delay"], [6, 1, 1, "", "Distortion"], [6, 1, 1, "", "GSMFullRateCompressor"], [6, 1, 1, "", "Gain"], [6, 1, 1, "", "HighShelfFilter"], [6, 1, 1, "", "HighpassFilter"], [6, 1, 1, "", "IIRFilter"], [6, 1, 1, "", "Invert"], [6, 1, 1, "", "LadderFilter"], [6, 1, 1, "", "Limiter"], [6, 1, 1, "", "LowShelfFilter"], [6, 1, 1, "", "LowpassFilter"], [6, 1, 1, "", "MP3Compressor"], [6, 1, 1, "", "Mix"], [6, 1, 1, "", "NoiseGate"], [6, 1, 1, "", "PeakFilter"], [6, 1, 1, "", "Phaser"], [6, 1, 1, "", "PitchShift"], [6, 1, 1, "", "Plugin"], [6, 1, 1, "", "PluginContainer"], [6, 1, 1, "", "Resample"], [6, 1, 1, "", "Reverb"], [7, 0, 0, "-", "io"]], "pedalboard.Bitcrush": [[6, 2, 1, "", "bit_depth"], [6, 3, 1, "", "process"], [6, 3, 1, "", "reset"]], "pedalboard.Chorus": [[6, 3, 1, "", "process"], [6, 2, 1, "", "rate_hz"], [6, 3, 1, "", "reset"]], "pedalboard.Clipping": [[6, 3, 1, "", "process"], [6, 3, 1, "", "reset"]], "pedalboard.Compressor": [[6, 3, 1, "", "process"], [6, 3, 1, "", "reset"]], "pedalboard.Convolution": [[6, 3, 1, "", "process"], [6, 3, 1, "", "reset"]], "pedalboard.Delay": [[6, 3, 1, "", "process"], [6, 3, 1, "", "reset"]], "pedalboard.Distortion": [[6, 3, 1, "", "process"], [6, 3, 1, "", "reset"]], "pedalboard.GSMFullRateCompressor": [[6, 3, 1, "", "process"], [6, 3, 1, "", "reset"]], "pedalboard.Gain": [[6, 3, 1, "", "process"], [6, 3, 1, "", "reset"]], "pedalboard.HighShelfFilter": [[6, 3, 1, "", "process"], [6, 3, 1, "", "reset"]], "pedalboard.HighpassFilter": [[6, 3, 1, "", "process"], [6, 3, 1, "", "reset"]], "pedalboard.IIRFilter": [[6, 3, 1, "", "process"], [6, 3, 1, "", "reset"]], "pedalboard.Invert": [[6, 3, 1, "", "process"], [6, 3, 1, "", "reset"]], "pedalboard.LadderFilter": [[6, 1, 1, "", "Mode"], [6, 3, 1, "", "process"], [6, 3, 1, "", "reset"]], "pedalboard.LadderFilter.Mode": [[6, 4, 1, "", "BPF12"], [6, 4, 1, "", "BPF24"], [6, 4, 1, "", "HPF12"], [6, 4, 1, "", "HPF24"], [6, 4, 1, "", "LPF12"], [6, 4, 1, "", "LPF24"]], "pedalboard.Limiter": [[6, 3, 1, "", "process"], [6, 3, 1, "", "reset"]], "pedalboard.LowShelfFilter": [[6, 3, 1, "", "process"], [6, 3, 1, "", "reset"]], "pedalboard.LowpassFilter": [[6, 3, 1, "", "process"], [6, 3, 1, "", "reset"]], "pedalboard.MP3Compressor": [[6, 3, 1, "", "process"], [6, 3, 1, "", "reset"]], "pedalboard.Mix": [[6, 3, 1, "", "append"], [6, 3, 1, "", "insert"], [6, 3, 1, "", "process"], [6, 3, 1, "", "remove"], [6, 3, 1, "", "reset"]], "pedalboard.NoiseGate": [[6, 3, 1, "", "process"], [6, 3, 1, "", "reset"]], "pedalboard.PeakFilter": [[6, 3, 1, "", "process"], [6, 3, 1, "", "reset"]], "pedalboard.Phaser": [[6, 3, 1, "", "process"], [6, 3, 1, "", "reset"]], "pedalboard.PitchShift": [[6, 3, 1, "", "process"], [6, 3, 1, "", "reset"]], "pedalboard.Plugin": [[6, 3, 1, "", "process"], [6, 3, 1, "", "reset"]], "pedalboard.PluginContainer": [[6, 3, 1, "", "process"], [6, 3, 1, "", "reset"]], "pedalboard.Resample": [[6, 1, 1, "", "Quality"], [6, 3, 1, "", "process"], [6, 2, 1, "", "quality"], [6, 3, 1, "", "reset"], [6, 2, 1, "", "target_sample_rate"]], "pedalboard.Resample.Quality": [[6, 4, 1, "", "CatmullRom"], [6, 4, 1, "", "Lagrange"], [6, 4, 1, "", "Linear"], [6, 4, 1, "", "WindowedSinc"], [6, 4, 1, "", "ZeroOrderHold"]], "pedalboard.Reverb": [[6, 3, 1, "", "process"], [6, 3, 1, "", "reset"]], "pedalboard.io": [[7, 1, 1, "", "AudioFile"], [7, 1, 1, "", "ReadableAudioFile"], [7, 1, 1, "", "ResampledReadableAudioFile"], [7, 1, 1, "", "StreamResampler"], [7, 1, 1, "", "WriteableAudioFile"]], "pedalboard.io.ReadableAudioFile": [[7, 3, 1, "", "close"], [7, 2, 1, "", "closed"], [7, 2, 1, "", "duration"], [7, 2, 1, "", "file_dtype"], [7, 2, 1, "", "frames"], [7, 2, 1, "", "name"], [7, 2, 1, "", "num_channels"], [7, 3, 1, "", "read"], [7, 3, 1, "", "read_raw"], [7, 3, 1, "", "resampled_to"], [7, 2, 1, "", "samplerate"], [7, 3, 1, "", "seek"], [7, 3, 1, "", "seekable"], [7, 3, 1, "", "tell"]], "pedalboard.io.ResampledReadableAudioFile": [[7, 3, 1, "", "close"], [7, 2, 1, "", "closed"], [7, 2, 1, "", "duration"], [7, 2, 1, "", "file_dtype"], [7, 2, 1, "", "frames"], [7, 2, 1, "", "name"], [7, 2, 1, "", "num_channels"], [7, 3, 1, "", "read"], [7, 2, 1, "", "resampling_quality"], [7, 2, 1, "", "samplerate"], [7, 3, 1, "", "seek"], [7, 3, 1, "", "seekable"], [7, 3, 1, "", "tell"]], "pedalboard.io.StreamResampler": [[7, 2, 1, "", "input_latency"], [7, 2, 1, "", "num_channels"], [7, 3, 1, "", "process"], [7, 2, 1, "", "quality"], [7, 3, 1, "", "reset"], [7, 2, 1, "", "source_sample_rate"], [7, 2, 1, "", "target_sample_rate"]], "pedalboard.io.WriteableAudioFile": [[7, 3, 1, "", "close"], [7, 2, 1, "", "closed"], [7, 2, 1, "", "file_dtype"], [7, 3, 1, "", "flush"], [7, 2, 1, "", "frames"], [7, 2, 1, "", "num_channels"], [7, 2, 1, "", "quality"], [7, 2, 1, "", "samplerate"], [7, 3, 1, "", "write"]]}, "objtypes": {"0": "py:module", "1": "py:class", "2": "py:property", "3": "py:method", "4": "py:attribute"}, "objnames": {"0": ["py", "module", "Python module"], "1": ["py", "class", "Python class"], "2": ["py", "property", "Python property"], "3": ["py", "method", "Python method"], "4": ["py", "attribute", "Python attribute"]}, "titleterms": {"plugin": [0, 1, 2, 4], "compat": [0, 3], "exampl": 1, "quick": 1, "start": 1, "make": 1, "guitar": 1, "style": 1, "pedalboard": [1, 2, 4, 6, 7], "us": [1, 2], "vst3": 1, "audio": [1, 2], "unit": 1, "creat": 1, "parallel": 1, "effect": [1, 2], "chain": 1, "frequent": 2, "ask": 2, "question": 2, "can": 2, "live": 2, "real": 2, "time": 2, "doe": 2, "support": 2, "chang": 2, "": 2, "paramet": 2, "over": 2, "vst": 2, "instrument": 2, "instead": 2, "accept": 2, "midi": 2, "featur": 3, "instal": 3, "refer": 3, "document": 3, "intern": 4, "ad": 4, "new": 4, "built": 4, "design": 4, "consider": 4, "licens": 5, "The": [6, 7], "api": [6, 7], "io": 7, "put": [], "compressor": [], "front": [], "run": [], "all": [], "simultan": [], "mix": [], "contribut": 1}, "envversion": {"sphinx.domains.c": 2, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 8, "sphinx.domains.index": 1, "sphinx.domains.javascript": 2, "sphinx.domains.math": 2, "sphinx.domains.python": 3, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx": 57}, "alltitles": {"Plugin Compatibility": [[0, "plugin-compatibility"]], "Examples": [[1, "examples"]], "Quick start": [[1, "quick-start"]], "Making a guitar-style pedalboard": [[1, "making-a-guitar-style-pedalboard"]], "Using VST3\u00ae or Audio Unit plugins": [[1, "using-vst3-or-audio-unit-plugins"]], "Creating parallel effects chains": [[1, "creating-parallel-effects-chains"]], "Contributing": [[1, "contributing"]], "Frequently Asked Questions": [[2, "frequently-asked-questions"]], "Can Pedalboard be used with live (real-time) audio?": [[2, "can-pedalboard-be-used-with-live-real-time-audio"]], "Does Pedalboard support changing a plugin\u2019s parameters over time?": [[2, "does-pedalboard-support-changing-a-plugin-s-parameters-over-time"]], "Can Pedalboard be used with VST instruments, instead of effects?": [[2, "can-pedalboard-be-used-with-vst-instruments-instead-of-effects"]], "Can Pedalboard plugins accept MIDI?": [[2, "can-pedalboard-plugins-accept-midi"]], "Features": [[3, "features"]], "Installation": [[3, "installation"]], "Compatibility": [[3, "compatibility"]], "Reference": [[3, "reference"]], "Documentation": [[3, "documentation"]], "Pedalboard Internals": [[4, "pedalboard-internals"]], "Adding new built-in Pedalboard plugins": [[4, "adding-new-built-in-pedalboard-plugins"]], "Design considerations": [[4, "design-considerations"]], "License": [[5, "license"]], "The pedalboard API": [[6, "module-pedalboard"]], "The pedalboard.io API": [[7, "module-pedalboard.io"]]}, "indexentries": {"bpf12 (pedalboard.ladderfilter.mode attribute)": [[6, "pedalboard.LadderFilter.Mode.BPF12"]], "bpf24 (pedalboard.ladderfilter.mode attribute)": [[6, "pedalboard.LadderFilter.Mode.BPF24"]], "bitcrush (class in pedalboard)": [[6, "pedalboard.Bitcrush"]], "catmullrom (pedalboard.resample.quality attribute)": [[6, "pedalboard.Resample.Quality.CatmullRom"]], "chorus (class in pedalboard)": [[6, "pedalboard.Chorus"]], "clipping (class in pedalboard)": [[6, "pedalboard.Clipping"]], "compressor (class in pedalboard)": [[6, "pedalboard.Compressor"]], "convolution (class in pedalboard)": [[6, "pedalboard.Convolution"]], "delay (class in pedalboard)": [[6, "pedalboard.Delay"]], "distortion (class in pedalboard)": [[6, "pedalboard.Distortion"]], "gsmfullratecompressor (class in pedalboard)": [[6, "pedalboard.GSMFullRateCompressor"]], "gain (class in pedalboard)": [[6, "pedalboard.Gain"]], "hpf12 (pedalboard.ladderfilter.mode attribute)": [[6, "pedalboard.LadderFilter.Mode.HPF12"]], "hpf24 (pedalboard.ladderfilter.mode attribute)": [[6, "pedalboard.LadderFilter.Mode.HPF24"]], "highshelffilter (class in pedalboard)": [[6, "pedalboard.HighShelfFilter"]], "highpassfilter (class in pedalboard)": [[6, "pedalboard.HighpassFilter"]], "iirfilter (class in pedalboard)": [[6, "pedalboard.IIRFilter"]], "invert (class in pedalboard)": [[6, "pedalboard.Invert"]], "lpf12 (pedalboard.ladderfilter.mode attribute)": [[6, "pedalboard.LadderFilter.Mode.LPF12"]], "lpf24 (pedalboard.ladderfilter.mode attribute)": [[6, "pedalboard.LadderFilter.Mode.LPF24"]], "ladderfilter (class in pedalboard)": [[6, "pedalboard.LadderFilter"]], "ladderfilter.mode (class in pedalboard)": [[6, "pedalboard.LadderFilter.Mode"]], "lagrange (pedalboard.resample.quality attribute)": [[6, "pedalboard.Resample.Quality.Lagrange"]], "limiter (class in pedalboard)": [[6, "pedalboard.Limiter"]], "linear (pedalboard.resample.quality attribute)": [[6, "pedalboard.Resample.Quality.Linear"]], "lowshelffilter (class in pedalboard)": [[6, "pedalboard.LowShelfFilter"]], "lowpassfilter (class in pedalboard)": [[6, "pedalboard.LowpassFilter"]], "mp3compressor (class in pedalboard)": [[6, "pedalboard.MP3Compressor"]], "mix (class in pedalboard)": [[6, "pedalboard.Mix"]], "noisegate (class in pedalboard)": [[6, "pedalboard.NoiseGate"]], "peakfilter (class in pedalboard)": [[6, "pedalboard.PeakFilter"]], "phaser (class in pedalboard)": [[6, "pedalboard.Phaser"]], "pitchshift (class in pedalboard)": [[6, "pedalboard.PitchShift"]], "plugin (class in pedalboard)": [[6, "pedalboard.Plugin"]], "plugincontainer (class in pedalboard)": [[6, "pedalboard.PluginContainer"]], "resample (class in pedalboard)": [[6, "pedalboard.Resample"]], "resample.quality (class in pedalboard)": [[6, "pedalboard.Resample.Quality"]], "reverb (class in pedalboard)": [[6, "pedalboard.Reverb"]], "windowedsinc (pedalboard.resample.quality attribute)": [[6, "pedalboard.Resample.Quality.WindowedSinc"]], "zeroorderhold (pedalboard.resample.quality attribute)": [[6, "pedalboard.Resample.Quality.ZeroOrderHold"]], "append() (pedalboard.mix method)": [[6, "pedalboard.Mix.append"]], "bit_depth (pedalboard.bitcrush property)": [[6, "pedalboard.Bitcrush.bit_depth"]], "insert() (pedalboard.mix method)": [[6, "pedalboard.Mix.insert"]], "module": [[6, "module-pedalboard"], [7, "module-pedalboard.io"]], "pedalboard": [[6, "module-pedalboard"]], "process() (pedalboard.bitcrush method)": [[6, "pedalboard.Bitcrush.process"]], "process() (pedalboard.chorus method)": [[6, "pedalboard.Chorus.process"]], "process() (pedalboard.clipping method)": [[6, "pedalboard.Clipping.process"]], "process() (pedalboard.compressor method)": [[6, "pedalboard.Compressor.process"]], "process() (pedalboard.convolution method)": [[6, "pedalboard.Convolution.process"]], "process() (pedalboard.delay method)": [[6, "pedalboard.Delay.process"]], "process() (pedalboard.distortion method)": [[6, "pedalboard.Distortion.process"]], "process() (pedalboard.gsmfullratecompressor method)": [[6, "pedalboard.GSMFullRateCompressor.process"]], "process() (pedalboard.gain method)": [[6, "pedalboard.Gain.process"]], "process() (pedalboard.highshelffilter method)": [[6, "pedalboard.HighShelfFilter.process"]], "process() (pedalboard.highpassfilter method)": [[6, "pedalboard.HighpassFilter.process"]], "process() (pedalboard.iirfilter method)": [[6, "pedalboard.IIRFilter.process"]], "process() (pedalboard.invert method)": [[6, "pedalboard.Invert.process"]], "process() (pedalboard.ladderfilter method)": [[6, "pedalboard.LadderFilter.process"]], "process() (pedalboard.limiter method)": [[6, "pedalboard.Limiter.process"]], "process() (pedalboard.lowshelffilter method)": [[6, "pedalboard.LowShelfFilter.process"]], "process() (pedalboard.lowpassfilter method)": [[6, "pedalboard.LowpassFilter.process"]], "process() (pedalboard.mp3compressor method)": [[6, "pedalboard.MP3Compressor.process"]], "process() (pedalboard.mix method)": [[6, "pedalboard.Mix.process"]], "process() (pedalboard.noisegate method)": [[6, "pedalboard.NoiseGate.process"]], "process() (pedalboard.peakfilter method)": [[6, "pedalboard.PeakFilter.process"]], "process() (pedalboard.phaser method)": [[6, "pedalboard.Phaser.process"]], "process() (pedalboard.pitchshift method)": [[6, "pedalboard.PitchShift.process"]], "process() (pedalboard.plugin method)": [[6, "pedalboard.Plugin.process"]], "process() (pedalboard.plugincontainer method)": [[6, "pedalboard.PluginContainer.process"]], "process() (pedalboard.resample method)": [[6, "pedalboard.Resample.process"]], "process() (pedalboard.reverb method)": [[6, "pedalboard.Reverb.process"]], "quality (pedalboard.resample property)": [[6, "pedalboard.Resample.quality"]], "rate_hz (pedalboard.chorus property)": [[6, "pedalboard.Chorus.rate_hz"]], "remove() (pedalboard.mix method)": [[6, "pedalboard.Mix.remove"]], "reset() (pedalboard.bitcrush method)": [[6, "pedalboard.Bitcrush.reset"]], "reset() (pedalboard.chorus method)": [[6, "pedalboard.Chorus.reset"]], "reset() (pedalboard.clipping method)": [[6, "pedalboard.Clipping.reset"]], "reset() (pedalboard.compressor method)": [[6, "pedalboard.Compressor.reset"]], "reset() (pedalboard.convolution method)": [[6, "pedalboard.Convolution.reset"]], "reset() (pedalboard.delay method)": [[6, "pedalboard.Delay.reset"]], "reset() (pedalboard.distortion method)": [[6, "pedalboard.Distortion.reset"]], "reset() (pedalboard.gsmfullratecompressor method)": [[6, "pedalboard.GSMFullRateCompressor.reset"]], "reset() (pedalboard.gain method)": [[6, "pedalboard.Gain.reset"]], "reset() (pedalboard.highshelffilter method)": [[6, "pedalboard.HighShelfFilter.reset"]], "reset() (pedalboard.highpassfilter method)": [[6, "pedalboard.HighpassFilter.reset"]], "reset() (pedalboard.iirfilter method)": [[6, "pedalboard.IIRFilter.reset"]], "reset() (pedalboard.invert method)": [[6, "pedalboard.Invert.reset"]], "reset() (pedalboard.ladderfilter method)": [[6, "pedalboard.LadderFilter.reset"]], "reset() (pedalboard.limiter method)": [[6, "pedalboard.Limiter.reset"]], "reset() (pedalboard.lowshelffilter method)": [[6, "pedalboard.LowShelfFilter.reset"]], "reset() (pedalboard.lowpassfilter method)": [[6, "pedalboard.LowpassFilter.reset"]], "reset() (pedalboard.mp3compressor method)": [[6, "pedalboard.MP3Compressor.reset"]], "reset() (pedalboard.mix method)": [[6, "pedalboard.Mix.reset"]], "reset() (pedalboard.noisegate method)": [[6, "pedalboard.NoiseGate.reset"]], "reset() (pedalboard.peakfilter method)": [[6, "pedalboard.PeakFilter.reset"]], "reset() (pedalboard.phaser method)": [[6, "pedalboard.Phaser.reset"]], "reset() (pedalboard.pitchshift method)": [[6, "pedalboard.PitchShift.reset"]], "reset() (pedalboard.plugin method)": [[6, "pedalboard.Plugin.reset"]], "reset() (pedalboard.plugincontainer method)": [[6, "pedalboard.PluginContainer.reset"]], "reset() (pedalboard.resample method)": [[6, "pedalboard.Resample.reset"]], "reset() (pedalboard.reverb method)": [[6, "pedalboard.Reverb.reset"]], "target_sample_rate (pedalboard.resample property)": [[6, "pedalboard.Resample.target_sample_rate"]], "audiofile (class in pedalboard.io)": [[7, "pedalboard.io.AudioFile"]], "readableaudiofile (class in pedalboard.io)": [[7, "pedalboard.io.ReadableAudioFile"]], "resampledreadableaudiofile (class in pedalboard.io)": [[7, "pedalboard.io.ResampledReadableAudioFile"]], "streamresampler (class in pedalboard.io)": [[7, "pedalboard.io.StreamResampler"]], "writeableaudiofile (class in pedalboard.io)": [[7, "pedalboard.io.WriteableAudioFile"]], "close() (pedalboard.io.readableaudiofile method)": [[7, "pedalboard.io.ReadableAudioFile.close"]], "close() (pedalboard.io.resampledreadableaudiofile method)": [[7, "pedalboard.io.ResampledReadableAudioFile.close"]], "close() (pedalboard.io.writeableaudiofile method)": [[7, "pedalboard.io.WriteableAudioFile.close"]], "closed (pedalboard.io.readableaudiofile property)": [[7, "pedalboard.io.ReadableAudioFile.closed"]], "closed (pedalboard.io.resampledreadableaudiofile property)": [[7, "pedalboard.io.ResampledReadableAudioFile.closed"]], "closed (pedalboard.io.writeableaudiofile property)": [[7, "pedalboard.io.WriteableAudioFile.closed"]], "duration (pedalboard.io.readableaudiofile property)": [[7, "pedalboard.io.ReadableAudioFile.duration"]], "duration (pedalboard.io.resampledreadableaudiofile property)": [[7, "pedalboard.io.ResampledReadableAudioFile.duration"]], "file_dtype (pedalboard.io.readableaudiofile property)": [[7, "pedalboard.io.ReadableAudioFile.file_dtype"]], "file_dtype (pedalboard.io.resampledreadableaudiofile property)": [[7, "pedalboard.io.ResampledReadableAudioFile.file_dtype"]], "file_dtype (pedalboard.io.writeableaudiofile property)": [[7, "pedalboard.io.WriteableAudioFile.file_dtype"]], "flush() (pedalboard.io.writeableaudiofile method)": [[7, "pedalboard.io.WriteableAudioFile.flush"]], "frames (pedalboard.io.readableaudiofile property)": [[7, "pedalboard.io.ReadableAudioFile.frames"]], "frames (pedalboard.io.resampledreadableaudiofile property)": [[7, "pedalboard.io.ResampledReadableAudioFile.frames"]], "frames (pedalboard.io.writeableaudiofile property)": [[7, "pedalboard.io.WriteableAudioFile.frames"]], "input_latency (pedalboard.io.streamresampler property)": [[7, "pedalboard.io.StreamResampler.input_latency"]], "name (pedalboard.io.readableaudiofile property)": [[7, "pedalboard.io.ReadableAudioFile.name"]], "name (pedalboard.io.resampledreadableaudiofile property)": [[7, "pedalboard.io.ResampledReadableAudioFile.name"]], "num_channels (pedalboard.io.readableaudiofile property)": [[7, "pedalboard.io.ReadableAudioFile.num_channels"]], "num_channels (pedalboard.io.resampledreadableaudiofile property)": [[7, "pedalboard.io.ResampledReadableAudioFile.num_channels"]], "num_channels (pedalboard.io.streamresampler property)": [[7, "pedalboard.io.StreamResampler.num_channels"]], "num_channels (pedalboard.io.writeableaudiofile property)": [[7, "pedalboard.io.WriteableAudioFile.num_channels"]], "pedalboard.io": [[7, "module-pedalboard.io"]], "process() (pedalboard.io.streamresampler method)": [[7, "pedalboard.io.StreamResampler.process"]], "quality (pedalboard.io.streamresampler property)": [[7, "pedalboard.io.StreamResampler.quality"]], "quality (pedalboard.io.writeableaudiofile property)": [[7, "pedalboard.io.WriteableAudioFile.quality"]], "read() (pedalboard.io.readableaudiofile method)": [[7, "pedalboard.io.ReadableAudioFile.read"]], "read() (pedalboard.io.resampledreadableaudiofile method)": [[7, "pedalboard.io.ResampledReadableAudioFile.read"]], "read_raw() (pedalboard.io.readableaudiofile method)": [[7, "pedalboard.io.ReadableAudioFile.read_raw"]], "resampled_to() (pedalboard.io.readableaudiofile method)": [[7, "pedalboard.io.ReadableAudioFile.resampled_to"]], "resampling_quality (pedalboard.io.resampledreadableaudiofile property)": [[7, "pedalboard.io.ResampledReadableAudioFile.resampling_quality"]], "reset() (pedalboard.io.streamresampler method)": [[7, "pedalboard.io.StreamResampler.reset"]], "samplerate (pedalboard.io.readableaudiofile property)": [[7, "pedalboard.io.ReadableAudioFile.samplerate"]], "samplerate (pedalboard.io.resampledreadableaudiofile property)": [[7, "pedalboard.io.ResampledReadableAudioFile.samplerate"]], "samplerate (pedalboard.io.writeableaudiofile property)": [[7, "pedalboard.io.WriteableAudioFile.samplerate"]], "seek() (pedalboard.io.readableaudiofile method)": [[7, "pedalboard.io.ReadableAudioFile.seek"]], "seek() (pedalboard.io.resampledreadableaudiofile method)": [[7, "pedalboard.io.ResampledReadableAudioFile.seek"]], "seekable() (pedalboard.io.readableaudiofile method)": [[7, "pedalboard.io.ReadableAudioFile.seekable"]], "seekable() (pedalboard.io.resampledreadableaudiofile method)": [[7, "pedalboard.io.ResampledReadableAudioFile.seekable"]], "source_sample_rate (pedalboard.io.streamresampler property)": [[7, "pedalboard.io.StreamResampler.source_sample_rate"]], "target_sample_rate (pedalboard.io.streamresampler property)": [[7, "pedalboard.io.StreamResampler.target_sample_rate"]], "tell() (pedalboard.io.readableaudiofile method)": [[7, "pedalboard.io.ReadableAudioFile.tell"]], "tell() (pedalboard.io.resampledreadableaudiofile method)": [[7, "pedalboard.io.ResampledReadableAudioFile.tell"]], "write() (pedalboard.io.writeableaudiofile method)": [[7, "pedalboard.io.WriteableAudioFile.write"]]}})\ No newline at end of filediff --git a/docs/source/examples.rst b/docs/source/examples.rstindex ed86df0..fa0387b 100644--- a/docs/source/examples.rst+++ b/docs/source/examples.rst@@ -2,5 +2,5 @@ Examples========.. mdinclude:: ../../README.md- :start-line: 73- :end-line: 209+ :start-line: 72+ :end-line: 222diff --git a/pedalboard/__init__.py b/pedalboard/__init__.pyindex 39a9d45..12e446e 100644--- a/pedalboard/__init__.py+++ b/pedalboard/__init__.py@@ -34,7 +34,13 @@ except ImportError as _e:else:raisefrom pedalboard_native.utils import * # noqa: F403, F401-from .pedalboard import Pedalboard, _AVAILABLE_PLUGIN_CLASSES, load_plugin # noqa: F401+from ._pedalboard import (+ Pedalboard,+ _AVAILABLE_PLUGIN_CLASSES,+ load_plugin,+ AudioProcessorParameter,+ ExternalPlugin,+) # noqa: F401from .version import __version__ # noqa: F401for _klass in _AVAILABLE_PLUGIN_CLASSES:diff --git a/pedalboard/__init__.pyi b/pedalboard/__init__.pyiindex b9e9c7f..3b708fd 100644--- a/pedalboard/__init__.pyi+++ b/pedalboard/__init__.pyi@@ -2,9 +2,9 @@For audio I/O classes (i.e.: reading and writing audio files), see ``pedalboard.io``."""from __future__ import annotations-import pedalboard_native # type: ignore # type: ignore-import pedalboard # type: ignore+import pedalboard_native as pedalboard # type: ignoreimport typing+from typing import List, Dict, Union, Optionalfrom typing_extensions import Literalfrom enum import Enumimport numpy@@ -83,7 +83,7 @@ class Plugin:"""Clear any internal state stored by this plugin (e.g.: reverb tails, delay lines, LFO state, etc). The values of plugin parameters will remain unchanged."""- pass+ __call__ = processclass Chorus(Plugin):"""@@ -703,7 +703,7 @@ class Resample(Plugin):def __init__(self,target_sample_rate: float = 8000.0,- quality: Resample.Quality = pedalboard_native.Resample.Quality.WindowedSinc,+ quality: Resample.Quality = pedalboard.Resample.Quality.WindowedSinc,) -> None: ...def __repr__(self) -> str: ...@property@@ -730,11 +730,11 @@ class Resample(Plugin):"""The sample rate to resample the input audio to. This value may be a floating-point number, in which case a floating-point sampling rate will be used. Note that the output of this plugin will still be at the original sample rate; this is merely the sample rate used for quality reduction."""- CatmullRom: pedalboard_native.Resample.Quality # value = <Quality.CatmullRom: 2>- Lagrange: pedalboard_native.Resample.Quality # value = <Quality.Lagrange: 3>- Linear: pedalboard_native.Resample.Quality # value = <Quality.Linear: 1>- WindowedSinc: pedalboard_native.Resample.Quality # value = <Quality.WindowedSinc: 4>- ZeroOrderHold: pedalboard_native.Resample.Quality # value = <Quality.ZeroOrderHold: 0>+ CatmullRom: pedalboard.Resample.Quality # value = <Quality.CatmullRom: 2>+ Lagrange: pedalboard.Resample.Quality # value = <Quality.Lagrange: 3>+ Linear: pedalboard.Resample.Quality # value = <Quality.Linear: 1>+ WindowedSinc: pedalboard.Resample.Quality # value = <Quality.WindowedSinc: 4>+ ZeroOrderHold: pedalboard.Resample.Quality # value = <Quality.ZeroOrderHold: 0>passclass Reverb(Plugin):@@ -899,13 +899,73 @@ class _AudioProcessorParameter:"""pass-class _VST3Plugin(Plugin):+class ExternalPlugin(Plugin):+ def __init__(+ self,+ path_to_plugin_file: str,+ parameter_values: Dict[str, Union[str, int, float, bool]] = ...,+ plugin_name: Optional[str] = ...,+ ) -> None: ...+ @classmethod+ def get_plugin_names_for_file(cls, filename: str) -> List[str]: ...+ def show_editor(self) -> None: ...+ @property+ def name(self) -> str: ...+ def __set_initial_parameter_values__(+ self, parameter_values: Dict[str, Union[str, int, float, bool]] = ...+ ): ...+ @property+ def parameters(self) -> Dict[str, AudioProcessorParameter]: ...+ def __dir__(self): ...+ def __getattr__(self, name: str): ...+ def __setattr__(self, name: str, value): ...++class AudioUnitPlugin(ExternalPlugin):+ """+ A wrapper around any Apple Audio Unit audio effect plugin. Only available on macOS.+ """++ def __init__(+ self,+ path_to_plugin_file: str,+ parameter_values: Dict[str, Union[str, int, float, bool]] = ...,+ plugin_name: Optional[str] = ...,+ ) -> None: ...+ def __repr__(self) -> str: ...+ def _get_parameter(self, arg0: str) -> _AudioProcessorParameter: ...+ @staticmethod+ def get_plugin_names_for_file(filename: str) -> typing.List[str]:+ """+ Return a list of plugin names contained within a given Audio Unit bundle (i.e.: a ``.component`` file). If the provided file cannot be scanned, an ``ImportError`` will be raised.++ Note that most Audio Units have a single plugin inside, but this method can be useful to determine if multiple plugins are present in one bundle, and if so, what their names are.+ """+ def show_editor(self) -> None:+ """+ Show the UI of this plugin as a native window. This method will block until the window is closed or a KeyboardInterrupt is received.+ """+ @property+ def _parameters(self) -> typing.List[_AudioProcessorParameter]:+ """ """+ @property+ def name(self) -> str:+ """+ The name of this plugin, as reported by the plugin itself.+++ """+ pass++class VST3Plugin(ExternalPlugin):"""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)."""def __init__(- self, path_to_plugin_file: str, plugin_name: typing.Optional[str] = None+ self,+ path_to_plugin_file: str,+ parameter_values: Dict[str, Union[str, int, float, bool]] = ...,+ plugin_name: Optional[str] = ...,) -> None: ...def __repr__(self) -> str: ...def _get_parameter(self, arg0: str) -> _AudioProcessorParameter: ...@@ -929,8 +989,6 @@ class _VST3Plugin(Plugin):def name(self) -> str:"""The name of this plugin.--"""pass@@ -958,76 +1016,17 @@ def process(:meta private:"""-class GSMFullRateCompressor(Plugin):+from pedalboard_native.utils import Mix as Mix, Chain as Chain+from pedalboard.version import __version__ as __version__++class Pedalboard(Chain):"""- An audio degradation/compression plugin that applies the GSM "Full Rate" compression algorithm to emulate the sound of a 2G cellular phone connection. This plugin internally resamples the input audio to a fixed sample rate of 8kHz (required by the GSM Full Rate codec), although the quality of the resampling algorithm can be specified.+ Run zero or more plugins as a plugin, just like when using a real-life pedalboard."""- def __init__(- self, quality: Resample.Quality = pedalboard_native.Resample.Quality.WindowedSinc- ) -> None: ...- def __repr__(self) -> str: ...- @property- def quality(self) -> Resample.Quality:- """ """- @quality.setter- def quality(self, arg1: Resample.Quality) -> None:- pass- pass--from _typeshed import Incomplete-from pedalboard_native import (- Plugin as Plugin,- _AudioProcessorParameter,- _AudioUnitPlugin,- _VST3Plugin,-)-from pedalboard_native.utils import Chain-from typing import Dict, List, Optional, Union--class Pedalboard(Chain):def __init__(self, plugins: Optional[List[Plugin]] = ...) -> None: ...-FLOAT_SUFFIXES_TO_IGNORE: Incomplete--def strip_common_float_suffixes(- s: Union[float, str, bool], strip_si_prefixes: bool = ...-) -> Union[float, str, bool]: ...-def looks_like_float(s: Union[float, str]) -> bool: ...--class ReadOnlyDictWrapper(dict):- def __setitem__(self, name, value) -> None: ...--def wrap_type(base_type): ...--class WrappedBool:- def __init__(self, value) -> None: ...- def __eq__(self, o: object) -> bool: ...- def __hash__(self) -> int: ...- def __bool__(self) -> bool: ...- def __getattr__(self, attr: str): ...- def __hasattr__(self, attr: str): ...--StringWithParameter: Incomplete-FloatWithParameter: Incomplete-BooleanWithParameter: Incomplete-PARAMETER_NAME_REGEXES_TO_IGNORE: Incomplete-TRUE_BOOLEANS: Incomplete--def get_text_for_raw_value(- cpp_parameter: _AudioProcessorParameter, raw_value: float, slow: bool = ...-) -> Optional[str]: ...-class AudioProcessorParameter:- ranges: Incomplete- python_name: Incomplete- min_value: Incomplete- max_value: Incomplete- step_size: Incomplete- approximate_step_size: Incomplete- type: Incomplete- valid_values: Incomplete- range: Incompletedef __init__(self, plugin, parameter_name, search_steps: int = ...) -> None: ...@propertydef label(self) -> Optional[str]: ...@@ -1037,50 +1036,58 @@ class AudioProcessorParameter:def __setattr__(self, name: str, value): ...def get_raw_value_for(self, new_value: Union[float, str, bool]) -> float: ...-def to_python_parameter_name(parameter: _AudioProcessorParameter) -> Optional[str]: ...-def normalize_python_parameter_name(name: str) -> str: ...--class ExternalPlugin(Plugin):- def __init__(- self,- path_to_plugin_file: str,- parameter_values: Dict[str, Union[str, int, float, bool]] = ...,- plugin_name: Optional[str] = ...,- ) -> None: ...- @classmethod- def get_plugin_names_for_file(cls, filename: str) -> List[str]: ...- def show_editor(self) -> None: ...- @property- def name(self) -> str: ...- def __set_initial_parameter_values__(- self, parameter_values: Dict[str, Union[str, int, float, bool]] = ...- ): ...- @property- def parameters(self) -> Dict[str, AudioProcessorParameter]: ...- def __dir__(self): ...- def __getattr__(self, name: str): ...- def __setattr__(self, name: str, value): ...--class VST3Plugin(_VST3Plugin, ExternalPlugin):- def __init__(- self,- path_to_plugin_file: str,- parameter_values: Dict[str, Union[str, int, float, bool]] = ...,- plugin_name: Optional[str] = ...,- ) -> None: ...--class AudioUnitPlugin(_AudioUnitPlugin, ExternalPlugin):- def __init__(- self,- path_to_plugin_file: str,- parameter_values: Dict[str, Union[str, int, float, bool]] = ...,- plugin_name: Optional[str] = ...,- ) -> None: ...-def load_plugin(path_to_plugin_file: str,parameter_values: Dict[str, Union[str, int, float, bool]] = ...,plugin_name: Union[str, None] = ...,-) -> ExternalPlugin: ...+) -> ExternalPlugin:+ """+ Load an audio plugin.++ Two plugin formats are supported:+ - VST3® format is supported on macOS, Windows, and Linux+ - Audio Units are supported on macOS++ Args:+ path_to_plugin_file (str): The path of a VST3® or Audio Unit plugin file or bundle.++ parameter_values (Dict[str, Union[str, int, float, bool]]):+ An optional dictionary of initial values to provide to the plugin+ after loading. Keys in this dictionary are expected to match the+ parameter names reported by the plugin, but normalized to strings+ that can be used as Python identifiers. (These are the same+ identifiers that are used as keys in the ``.parameters`` dictionary+ of a loaded plugin.)++ plugin_name (Optional[str]):+ An optional plugin name that can be used to load a specific plugin+ from a multi-plugin package. If a package is loaded but a+ ``plugin_name`` is not provided, an exception will be thrown.++ Returns:+ an instance of :class:`pedalboard.VST3Plugin` or :class:`pedalboard.AudioUnitPlugin`++ Throws:+ ``ImportError``: if the plugin cannot be found or loaded-from pedalboard.utils import *+ ``RuntimeError``: if the plugin file contains more than one plugin,+ but no ``plugin_name`` was provided+ """+ ...++class GSMFullRateCompressor(Plugin):+ """+ An audio degradation/compression plugin that applies the GSM "Full Rate" compression algorithm to emulate the sound of a 2G cellular phone connection. This plugin internally resamples the input audio to a fixed sample rate of 8kHz (required by the GSM Full Rate codec), although the quality of the resampling algorithm can be specified.+ """++ def __init__(+ self, quality: Resample.Quality = pedalboard.Resample.Quality.WindowedSinc+ ) -> None: ...+ def __repr__(self) -> str: ...+ @property+ def quality(self) -> Resample.Quality:+ """ """+ @quality.setter+ def quality(self, arg1: Resample.Quality) -> None:+ pass+ passdiff --git a/pedalboard/pedalboard.py b/pedalboard/_pedalboard.pysimilarity index 92%rename from pedalboard/pedalboard.pyrename to pedalboard/_pedalboard.pyindex 7095f67..b96a1c5 100644--- a/pedalboard/pedalboard.py+++ b/pedalboard/_pedalboard.py@@ -19,7 +19,7 @@ import platformimport weakreffrom contextlib import contextmanager-from typing import List, Optional, Dict, Tuple, Iterable, Type, Union+from typing import List, Optional, Dict, Tuple, Iterable, Type, Union, Set, no_type_checkfrom pedalboard_native import Plugin, _AudioProcessorParameter # type: ignorefrom pedalboard_native.utils import Chain # type: ignore@@ -42,7 +42,7 @@ class Pedalboard(Chain):)-FLOAT_SUFFIXES_TO_IGNORE = set(+FLOAT_SUFFIXES_TO_IGNORE: Set[str] = set(["x", "%", "*", ",", ".", "hz", "ms", "sec", "seconds", "dB", "dBTP"])@@ -92,7 +92,10 @@ class ReadOnlyDictWrapper(dict):)+# This is so nasty that I had to disable MyPy. Sorry.+@no_type_checkdef wrap_type(base_type):+ @no_type_checkclass WeakTypeWrapper(base_type):"""A wrapper around `base_type` that allows adding additional@@ -111,8 +114,9 @@ def wrap_type(base_type):del kwargs["wrapped"]else:raise ValueError(- "WeakTypeWrapper({}) expected to be passed a 'wrapped' keyword argument."- .format(base_type)+ "WeakTypeWrapper({}) expected to be passed a 'wrapped' keyword argument.".format(+ base_type+ ))try:super().__init__(*args, **kwargs)@@ -136,6 +140,7 @@ def wrap_type(base_type):return WeakTypeWrapper+@no_type_checkclass WrappedBool(object):def __init__(self, value):if not isinstance(value, bool):@@ -164,9 +169,9 @@ class WrappedBool(object):return hasattr(self.__value, attr)-StringWithParameter = wrap_type(str)-FloatWithParameter = wrap_type(float)-BooleanWithParameter = wrap_type(WrappedBool)+StringWithParameter: Type[str] = wrap_type(str)+FloatWithParameter: Type[float] = wrap_type(float)+BooleanWithParameter: Type[bool] = wrap_type(WrappedBool)# Some plugins, on some platforms (TAL Reverb 3 on Ubuntu, so far) seem to@@ -174,11 +179,11 @@ BooleanWithParameter = wrap_type(WrappedBool)# (i.e.: MIDI CC [0-16]|[0-128], resulting in 2,048 parameters).# This hugely delays load times and adds complexity to the interface.# Guitar Rig also seems to expose 512 parameters, each matching "P\d\d\d"-PARAMETER_NAME_REGEXES_TO_IGNORE = set(+PARAMETER_NAME_REGEXES_TO_IGNORE: Set[re.Pattern] = set([re.compile(pattern) for pattern in ["MIDI CC ", r"P\d\d\d"]])-TRUE_BOOLEANS = {"on", "yes", "true", "enabled"}+TRUE_BOOLEANS: Set[str] = {"on", "yes", "true", "enabled"}def get_text_for_raw_value(@@ -271,18 +276,26 @@ class AudioProcessorParameter(object):if not self.label:# Try to infer the label from the string values:a_value = next(iter(self.ranges.values()))- stripped_value = strip_common_float_suffixes(a_value, strip_si_prefixes=False)- if stripped_value != a_value and stripped_value in a_value:- # We probably have a label! Iterate through all values just to make sure:- all_possible_labels = set()- for value in self.ranges.values():- all_possible_labels.add(- value.replace(- strip_common_float_suffixes(value, strip_si_prefixes=False), ""- ).strip()- )- if len(all_possible_labels) == 1:- self._label = next(iter(all_possible_labels))+ if isinstance(a_value, str):+ stripped_value = strip_common_float_suffixes(a_value, strip_si_prefixes=False)+ if (+ stripped_value != a_value+ and isinstance(stripped_value, str)+ and stripped_value in a_value+ ):+ # We probably have a label! Iterate through all values just to make sure:+ all_possible_labels = set()+ for value in self.ranges.values():+ if not isinstance(value, str):+ continue+ stripped_value = strip_common_float_suffixes(+ value, strip_si_prefixes=False+ )+ if not isinstance(stripped_value, str):+ continue+ all_possible_labels.add(value.replace(stripped_value, "").strip())+ if len(all_possible_labels) == 1:+ self._label = next(iter(all_possible_labels))sorted_values = sorted(float_ranges.values())first_derivative_steps = set(@@ -333,6 +346,7 @@ class AudioProcessorParameter(object):with self.__get_cpp_parameter() as parameter:if parameter.label:return parameter.label+ return None@propertydef units(self) -> Optional[str]:@@ -405,6 +419,7 @@ class AudioProcessorParameter(object):def get_raw_value_for(self, new_value: Union[float, str, bool]) -> float:if self.type is float:+ to_float_value: Union[str, float, bool]if isinstance(new_value, str) and self.label and new_value.endswith(self.label):to_float_value = new_value[: -len(self.label)]else:@@ -425,7 +440,9 @@ class AudioProcessorParameter(object):self.python_name, repr(new_value)))- if new_value < self.min_value or new_value > self.max_value:+ if (self.min_value is not None and new_value < self.min_value) or (+ self.max_value is not None and new_value > self.max_value+ ):raise ValueError("Value received for parameter '{}' ({}) is out of range [{}{}, {}{}]".format(self.python_name,@@ -441,6 +458,8 @@ class AudioProcessorParameter(object):closest_diff = Noneclosest_range_value: Optional[Tuple[float, float]] = Nonefor value, raw_value_range in self._value_to_raw_value_ranges.items():+ if not isinstance(value, float):+ continuediff = new_value - valueif closest_diff is None or abs(diff) < abs(closest_diff):closest_range_value = raw_value_range@@ -541,14 +560,14 @@ class ExternalPlugin(object):@classmethoddef get_plugin_names_for_file(cls, filename: str) -> List[str]:- ...+ return [] # Should never be hit, just appeasing MyPy.def show_editor(self) -> None:...@propertydef name(self) -> str:- ...+ return "" # Should never be hit, just appeasing MyPy.def __set_initial_parameter_values__(self, parameter_values: Dict[str, Union[str, int, float, bool]] = {}@@ -625,11 +644,13 @@ class ExternalPlugin(object):if parameter.type is float:return FloatWithParameter(float(strip_common_float_suffixes(string_value)), wrapped=parameter- )+ ) # type: ignoreelif parameter.type is bool:- return BooleanWithParameter(parameter.raw_value >= 0.5, wrapped=parameter)+ return BooleanWithParameter(+ parameter.raw_value >= 0.5, wrapped=parameter+ ) # type: ignoreelif parameter.type is str:- return StringWithParameter(str(string_value), wrapped=parameter)+ return StringWithParameter(str(string_value), wrapped=parameter) # type: ignoreelse:raise ValueError(f"Parameter {parameter.python_name} has an unknown type. (Found"diff --git a/pedalboard/io/__init__.pyi b/pedalboard/io/__init__.pyiindex a351136..d895e15 100644--- a/pedalboard/io/__init__.pyi+++ b/pedalboard/io/__init__.pyi@@ -8,14 +8,11 @@ import typingfrom typing_extensions import Literalfrom enum import Enumimport numpy-import pedalboard_native.utils # type: ignore # type: ignore-import pedalboard # type: ignore_Shape = typing.Tuple[int, ...]__all__ = ["AudioFile",- "AudioStream","ReadableAudioFile","ResampledReadableAudioFile","StreamResampler",@@ -138,105 +135,6 @@ class AudioFile:) -> WriteableAudioFile: ...pass-class AudioStream:- """- A class that streams audio from an input audio device (i.e.: a microphone,- audio interface, etc) to an output device (speaker, headphones),- passing it through a Pedalboard to add effects.-- :class:`AudioStream` may be used as a context manager::-- input_device_name = AudioStream.input_device_names[0]- output_device_name = AudioStream.output_device_names[0]- with AudioStream(input_device_name, output_device_name) as stream:- # In this block, audio is streaming through `stream`!- # Audio will be coming out of your speakers at this point.-- # Add plugins to the live audio stream:- reverb = Reverb()- stream.plugins.append(reverb)-- # Change plugin properties as the stream is running:- reverb.wet_level = 1.0-- # Delete plugins:- del stream.plugins[0]--- :class:`AudioStream` may also be used synchronously::-- stream = AudioStream(ogg_buffer)- stream.plugins.append(Reverb(wet_level=1.0))- stream.run() # Run the stream until Ctrl-C is received-- .. note::- This class uses C++ under the hood to ensure speed, thread safety,- and avoid any locking concerns with Python's Global Interpreter Lock.- Audio data processed by :class:`AudioStream` is not available to- Python code; the only way to interact with the audio stream is through- the :py:attr:`plugins` attribute.-- .. warning::- The :class:`AudioStream` class implements a context manager interface- to ensure that audio streams are never left "dangling" (i.e.: running in- the background without being stopped).-- While it is possible to call the :meth:`__enter__` method directly to run an- audio stream in the background, this can have some nasty side effects. If the- :class:`AudioStream` object is no longer reachable (not bound to a variable,- not in scope, etc), the audio stream will continue to play back forever, and- won't stop until the Python interpreter exits.-- To run an :class:`AudioStream` in the background, use Python's- :py:mod:`threading` module to call the synchronous :meth:`run` method on a- background thread, allowing for easier cleanup.-- *Introduced in v0.6.9. Not supported on Linux.*- """-- def __enter__(self) -> AudioStream: ...- def __exit__(self, arg0: object, arg1: object, arg2: object) -> None: ...- def __init__(- self,- input_device_name: str,- output_device_name: str,- plugins: typing.Optional[pedalboard_native.utils.Chain] = None,- sample_rate: typing.Optional[float] = None,- buffer_size: int = 512,- allow_feedback: bool = False,- ) -> None: ...- def __repr__(self) -> str: ...- def run(self) -> None:- """- Start streaming audio from input to output, passing the audio stream through the :py:attr:`plugins` on this AudioStream object. This call will block the current thread until a KeyboardInterrupt (Ctrl-C) is received.- """- @property- def plugins(self) -> pedalboard_native.utils.Chain:- """- The Pedalboard object that this AudioStream will use to process audio.--- """- @plugins.setter- def plugins(self, arg1: pedalboard_native.utils.Chain) -> None:- """- The Pedalboard object that this AudioStream will use to process audio.- """- @property- def running(self) -> bool:- """- True if this stream is currently streaming live audio from input to output, False otherwise.--- """- input_device_names = [- "Peter Sobot’s iPhone Microphone",- "BlackHole 2ch",- "MacBook Pro Microphone",- ]- output_device_names = ["BlackHole 2ch", "MacBook Pro Speakers"]- pass-class ReadableAudioFile(AudioFile):"""A class that wraps an audio file for reading, with native support for Ogg Vorbis,diff --git a/pedalboard/utils/__init__.pyi b/pedalboard/utils/__init__.pyiindex 0c08b44..2c1a6f8 100644--- a/pedalboard/utils/__init__.pyi+++ b/pedalboard/utils/__init__.pyi@@ -17,8 +17,6 @@ class Chain(pedalboard_native.PluginContainer, pedalboard_native.Plugin):Run zero or more plugins as a plugin. Useful when used with the Mix plugin."""- @typing.overload- @typing.overloaddef __init__(self, plugins: typing.List[pedalboard_native.Plugin]) -> None: ...def __repr__(self) -> str: ...@typing.overload@@ -49,8 +47,6 @@ class Mix(pedalboard_native.PluginContainer, pedalboard_native.Plugin):A utility plugin that allows running other plugins in parallel. All plugins provided will be mixed equally."""- @typing.overload- @typing.overloaddef __init__(self, plugins: typing.List[pedalboard_native.Plugin]) -> None: ...def __repr__(self) -> str: ...passdiff --git a/scripts/generate_type_stubs_and_docs.py b/scripts/generate_type_stubs_and_docs.pyindex c55fd50..c200c64 100644--- a/scripts/generate_type_stubs_and_docs.py+++ b/scripts/generate_type_stubs_and_docs.py@@ -12,9 +12,6 @@ from tempfile import TemporaryDirectoryfrom contextlib import contextmanagerfrom typing import List-from pybind11_stubgen import ClassStubsGenerator, StubsGenerator-from pybind11_stubgen import main as pybind11_stubgen_main-from .postprocess_type_hints import main as postprocess_type_hints_mainfrom mypy.stubtest import test_stubs, parse_options as mypy_parse_optionsimport sphinx.ext.autodoc.importerfrom sphinx.cmd.build import main as sphinx_build_main@@ -23,67 +20,6 @@ from sphinx.cmd.build import main as sphinx_build_mainMAX_DIFF_LINE_LENGTH = 150-def patch_pybind11_stubgen():- """- Patch ``pybind11_stubgen`` to generate more ergonomic code for Enum-like classes.- This generates a subclass of :class:``Enum`` for each Pybind11-generated Enum,- which is not strictly correct, but produces much nicer documentation and allows- for a much more Pythonic API.- """-- original_class_stubs_generator_new = ClassStubsGenerator.__new__-- class EnumClassStubsGenerator(StubsGenerator):- def __init__(self, klass):- self.klass = klass- assert inspect.isclass(klass)- assert klass.__name__.isidentifier()- assert hasattr(klass, "__entries")-- self.doc_string = None- self.enum_names = []- self.enum_values = []- self.enum_docstrings = []-- def get_involved_modules_names(self):- return []-- def parse(self):- self.doc_string = self.klass.__doc__ or ""- self.doc_string = self.doc_string.split("Members:")[0]- for name, (value_object, docstring) in getattr(self.klass, "__entries").items():- self.enum_names.append(name)- self.enum_values.append(value_object.value)- self.enum_docstrings.append(docstring)-- def to_lines(self):- result = [- "class {class_name}(Enum):{doc_string}".format(- class_name=self.klass.__name__,- doc_string="\n" + self.format_docstring(self.doc_string)- if self.doc_string- else "",- ),- ]- for (name, value, docstring) in sorted(- list(zip(self.enum_names, self.enum_values, self.enum_docstrings)),- key=lambda x: x[1],- ):- result.append(f" {name} = {value} # fmt: skip")- result.append(f"{self.format_docstring(docstring)}")- if not self.enum_names:- result.append(self.indent("pass"))- return result-- def patched_class_stubs_generator_new(cls, klass, *args, **kwargs):- if hasattr(klass, "__entries"):- return EnumClassStubsGenerator(klass, *args, **kwargs)- else:- return original_class_stubs_generator_new(cls)-- ClassStubsGenerator.__new__ = patched_class_stubs_generator_new--def import_stub(stubs_path: str, module_name: str) -> typing.Any:"""Import a stub file (.pyi) as a regular Python module.@@ -236,28 +172,12 @@ def main():)args = parser.parse_args()- patch_pybind11_stubgen()patch_sphinx(module_names_to_combine={"pedalboard", "pedalboard.io"})if not args.skip_regenerating_type_hints:with TemporaryDirectory() as tempdir, isolated_imports({"pedalboard", "pedalboard.io"}):print("Generating type stubs from pure-Python code...")- subprocess.check_call(["stubgen", "-o", tempdir, "pedalboard/pedalboard.py"])-- # Generate .pyi stubs files from Pedalboard's native (Pybind11) source.- # Documentation will be copied from the Pybind11 docstrings, and these stubs- # files will be used as the "source of truth" for both IDE autocompletion- # and Sphinx documentation.- print("Generating type stubs from native code...")- pybind11_stubgen_main(["-o", tempdir, "pedalboard_native", "--no-setup-py"])-- # Post-process the type hints generaetd by pybind11_stubgen; we can't patch- # everything easily, so we do string manipulation after-the-fact and run ``black``.- print("Postprocessing generated type hints...")- postprocess_type_hints_main(- [tempdir, "pedalboard"] + (["--check"] if args.check else [])- )- breakpoint()+ subprocess.check_call(["stubgen", "-o", tempdir, "pedalboard/_pedalboard.py"])# Run mypy.stubtest to ensure that the results are correct and nothing got missed:if sys.version_info > (3, 6):diff --git a/scripts/postprocess_type_hints.py b/scripts/postprocess_type_hints.pydeleted file mode 100644index ceed73a..0000000--- a/scripts/postprocess_type_hints.py+++ /dev/null@@ -1,213 +0,0 @@-"""-This script is intended to postprocess type hint (.pyi) files produced by pybind11-stubgen.--A number of changes must be made to produce valid type hint files out-of-the-box.-Think of this as a more intelligent (or less intelligent) application of `git patch`.-"""--import os-import io-import re-import difflib-from pathlib import Path-from collections import defaultdict-import black-import argparse--REPO_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))--OMIT_FILES = [- os.path.join("pedalboard-stubs", "__init__.pyi"),- os.path.join("pedalboard-stubs", "pedalboard", "__init__.pyi"),- os.path.join("pedalboard_native-stubs", "_internal", "__init__.pyi"),-]--# Any lines containing any of these substrings will be omitted from the pedalboard_native stubs:-OMIT_LINES_CONTAINING = [- "installed_plugins = [",- "typing._GenericAlias",- "typing._VariadicGenericAlias",- "typing._SpecialForm",- "__annotations__: dict",- "_AVAILABLE_PLUGIN_CLASSES: list",-]--REPLACEMENTS = [- # object is a superclass of `str`, which would make these declarations ambiguous:- ("file_like: object", "file_like: typing.BinaryIO"),- # "r" is the default file open/reading mode:- ("mode: str = 'r'", r'mode: Literal["r"] = "r"'),- # ... but when using "w", "w" needs to be specified explicitly (no default):- ("mode: str = 'w'", r'mode: Literal["w"]'),- # ndarrays need to be corrected as well:- (r"numpy\.ndarray\[(.*?)\]", r"numpy.ndarray[typing.Any, numpy.dtype[\1]]"),- # None of our enums are properly detected by pybind11-stubgen:- (r"= Quality\.", "= pedalboard_native.Resample.Quality."),- (r"pedalboard_native.Resample", "pedalboard.Resample", "pedalboard.io"),- (r": pedalboard_native\.LadderFilter\.Mode", ": Mode"),- (r"import pedalboard_native(\.?.*)$", r"import pedalboard_native\1 # type: ignore"),- (- r"import pedalboard_native(\.?.*)$",- "\n".join(- [- r"import pedalboard_native\1 # type: ignore",- r"import pedalboard # type: ignore",- ]- ),- ),- (- # For Python 3.6 compatibility:- r"import typing",- "\n".join(- ["import typing", "from typing_extensions import Literal", "from enum import Enum"]- ),- ),- # Remove type hints in docstrings, added unnecessarily by pybind11-stubgen- (r".*?:type:.*$", ""),- # MyPy chokes on classes that contain both __new__ and __init__.- # Remove all bare, arg-free inits:- (r"def __init__\(self\) -> None: ...", ""),-]--REMOVE_INDENTED_BLOCKS_STARTING_WITH = [- # TODO(psobot): Add a conditional to _AudioUnitPlugin- # to ensure type stubs only show up on macOS:- "class _AudioUnitPlugin(Plugin):"-]--# .pyi files usually don't care about dependent types being present in order in the file;-# but if we want to use Sphinx, our Python files need to be both lexically and semantically-# valid as regular Python files. So...-INDENTED_BLOCKS_TO_MOVE_TO_END = ["class GSMFullRateCompressor"]--LINES_TO_IGNORE_FOR_MATCH = {"from __future__ import annotations"}---def stub_files_match(a: str, b: str) -> bool:- a = "".join(- [x for x in a.split("\n") if x.strip() and x.strip() not in LINES_TO_IGNORE_FOR_MATCH]- )- b = "".join(- [x for x in b.split("\n") if x.strip() and x.strip() not in LINES_TO_IGNORE_FOR_MATCH]- )- return a == b---def main(args=None):- parser = argparse.ArgumentParser(- description="Post-process type hint files produced by pybind11-stubgen for Pedalboard."- )- parser.add_argument(- "source_directory",- default=os.path.join(REPO_ROOT, "pybind11-stubgen-output"),- )- parser.add_argument(- "target_directory",- default=os.path.join(REPO_ROOT, "pedalboard"),- )- parser.add_argument(- "--check",- action="store_true",- help=(- "Return a non-zero exit code if files on disk don't match what this script would"- " generate."- ),- )- args = parser.parse_args(args)-- output_file_to_source_files = defaultdict(list)- for source_path in Path(args.source_directory).rglob("*.pyi"):- source_path = str(source_path)- if any(x in source_path for x in OMIT_FILES):- print(f"Skipping possible source file '{source_path}'...")- continue- output_module_path = os.path.join(- *(- ["pedalboard"]- + source_path.replace(args.source_directory, "").split(os.path.sep)[2:-1]- )- )- if not source_path.endswith("__init__.pyi"):- raise NotImplementedError("Not sure how to create stubs not at the module level.")- output_file_name = os.path.join(output_module_path, "__init__.pyi")- output_file_to_source_files[output_file_name].append(source_path)-- for output_file_name, source_files in output_file_to_source_files.items():- os.makedirs(os.path.dirname(output_file_name), exist_ok=True)-- print(f"Writing stub file {output_file_name}...")-- file_contents = io.StringIO()- end_of_file_contents = io.StringIO()- for source_file in source_files:- module_name = output_file_name.replace("__init__.pyi", "").replace("/", ".").rstrip(".")- with open(source_file) as f:- in_excluded_indented_block = False- in_moved_indented_block = False- for line in f:- if all(x not in line for x in OMIT_LINES_CONTAINING):- if any(line.startswith(x) for x in REMOVE_INDENTED_BLOCKS_STARTING_WITH):- in_excluded_indented_block = True- continue- elif any(line.startswith(x) for x in INDENTED_BLOCKS_TO_MOVE_TO_END):- in_moved_indented_block = True- elif line.strip() and not line.startswith(" "):- in_excluded_indented_block = False- in_moved_indented_block = False-- if in_excluded_indented_block:- continue-- for _tuple in REPLACEMENTS:- if len(_tuple) == 2:- find, replace = _tuple- only_in_module = None- else:- find, replace, only_in_module = _tuple- if only_in_module and only_in_module != module_name:- continue- results = re.findall(find, line)- if results:- line = re.sub(find, replace, line)-- if in_moved_indented_block:- end_of_file_contents.write(line)- else:- file_contents.write(line)- print(f"\tRead {f.tell():,} bytes of stubs from {source_file}.")-- # Append end-of-file contents at the end:- file_contents.write("\n")- file_contents.write(end_of_file_contents.getvalue())-- # Run black:- try:- output = black.format_file_contents(- file_contents.getvalue(),- fast=False,- mode=black.FileMode(is_pyi=True, line_length=100),- )- except black.report.NothingChanged:- output = file_contents.getvalue()-- if args.check:- with open(output_file_name, "r") as f:- existing = f.read()- if not stub_files_match(existing, output):- error = f"File that would be generated ({output_file_name}) "- error += "does not match existing file!\n"- error += f"Existing file had {len(existing):,} bytes, "- error += f"expected {len(output):,} bytes.\nDiff was:\n"- diff = difflib.context_diff(existing.split("\n"), output.split("\n"))- error += "\n".join([x.strip() for x in diff])- raise ValueError(error)- else:- with open(output_file_name, "w") as o:- o.write(output)- print(f"\tWrote {o.tell():,} bytes of stubs to {output_file_name}.")-- print("Done!")---if __name__ == "__main__":- main()diff --git a/stubtest.allowlist b/stubtest.allowlistindex ac8b746..c457627 100644--- a/stubtest.allowlist+++ b/stubtest.allowlist@@ -1,14 +1,17 @@pedalboard.Plugin.__call__pedalboard.__all__pedalboard.io.__all__-pedalboard.pedalboard.Dict-pedalboard.pedalboard.Iterable-pedalboard.pedalboard.List-pedalboard.pedalboard.Plugin.__call__-pedalboard.pedalboard.WeakTypeWrapper@\d+-pedalboard.pedalboard._AudioProcessorParameter.__init__+pedalboard._pedalboard.Dict+pedalboard._pedalboard.Iterable+pedalboard._pedalboard.List+pedalboard._pedalboard.Plugin.__call__+pedalboard._pedalboard.WeakTypeWrapper@\d++pedalboard._pedalboard._AudioProcessorParameter.__init__+pedalboard._pedalboard.Pedalboard+pedalboard._pedalboard.VST3Pluginpedalboard.utils.Chainpedalboard.utils.Mixpedalboard.utils.__all__pedalboard.version.__all__-.*?AudioUnitPlugin.*\ No newline at end of file+.*?AudioUnitPlugin.*+.*?metaclass.*\ No newline at end of file