Skip to content

Commit 83cb3dd

Browse files
authored
Fix typos discovered by codespell (#434)
* Fix typos discovered by codespell * ExternalPlugin.h: Fix clang-format issue
1 parent be9adf4 commit 83cb3dd

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

pedalboard/ExternalPlugin.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -900,8 +900,8 @@ class ExternalPlugin : public AbstractExternalPlugin {
900900
* loading assets from disk, etc). These background tasks may depend on the
901901
* event loop, which Pedalboard does not pump by default.
902902
*
903-
* Returns true if the plugin rendered audio within the alloted timeout; false
904-
* if no audio was received before the timeout expired.
903+
* Returns true if the plugin rendered audio within the allotted timeout;
904+
* false if no audio was received before the timeout expired.
905905
*/
906906
bool attemptToWarmUp() {
907907
if (!pluginInstance || initializationTimeout <= 0)
@@ -919,7 +919,7 @@ class ExternalPlugin : public AbstractExternalPlugin {
919919
return false;
920920
}
921921

922-
// Set input and output busses/channels appropriately:
922+
// Set input and output buses/channels appropriately:
923923
int numOutputChannels =
924924
std::max(pluginInstance->getMainBusNumInputChannels(),
925925
pluginInstance->getMainBusNumOutputChannels());
@@ -1019,7 +1019,7 @@ class ExternalPlugin : public AbstractExternalPlugin {
10191019
return ExternalPluginReloadType::Unknown;
10201020
}
10211021

1022-
// Set input and output busses/channels appropriately:
1022+
// Set input and output buses/channels appropriately:
10231023
setNumChannels(numInputChannels);
10241024
pluginInstance->setNonRealtime(true);
10251025
pluginInstance->prepareToPlay(sampleRate, bufferSize);

pedalboard/io/AudioFileInit.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ namespace py = pybind11;
3434
namespace Pedalboard {
3535

3636
// For pybind11-stubgen to properly parse the docstrings,
37-
// we have to delcare all of the AudioFile subclasses first before using
37+
// we have to declare all of the AudioFile subclasses first before using
3838
// their types (i.e.: as return types from `__new__`).
3939
// See:
4040
// https://pybind11.readthedocs.io/en/latest/advanced/misc.html#avoiding-cpp-types-in-docstrings

pedalboard/plugins/Chorus.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ inline void init_chorus(py::module &m) {
5555
"control, a feedback control, and the centre delay of the modulation. "
5656
"\n\n"
5757
"Note: To get classic chorus sounds try to use a centre delay time "
58-
"around 7-8 ms with a low feeback volume and a low depth. This effect "
58+
"around 7-8 ms with a low feedback volume and a low depth. This effect "
5959
"can also be used as a flanger with a lower centre delay time and a "
6060
"lot of feedback, and as a vibrato effect if the mix value is 1.")
6161
.def(py::init([](float rateHz, float depth, float centreDelayMs,

pedalboard_native/__init__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ class Chorus(Plugin):
184184
185185
This audio effect can be controlled via the speed and depth of the LFO controlling the frequency response, a mix control, a feedback control, and the centre delay of the modulation.
186186
187-
Note: To get classic chorus sounds try to use a centre delay time around 7-8 ms with a low feeback volume and a low depth. This effect can also be used as a flanger with a lower centre delay time and a lot of feedback, and as a vibrato effect if the mix value is 1.
187+
Note: To get classic chorus sounds try to use a centre delay time around 7-8 ms with a low feedback volume and a low depth. This effect can also be used as a flanger with a lower centre delay time and a lot of feedback, and as a vibrato effect if the mix value is 1.
188188
"""
189189

190190
def __init__(

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ def new_compile(obj, src, ext, cc_args, extra_postargs, *args, **kwargs):
404404
# Remove the Python header from most files; we only need it when compiling
405405
# This speeds up compile times on CI as most of the objects don't need Python
406406
# headers at all, and including -I/include/python3.x/Python.h prevents us from
407-
# re-using the same object file for different Python versions.
407+
# reusing the same object file for different Python versions.
408408
if any("include/python3" in arg for arg in _cc_args) and should_omit_python_header:
409409
_cc_args = [arg for arg in _cc_args if "include/python3" not in arg]
410410

tests/test_python_interface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def test_fail_on_invalid_plugin():
4242

4343
def test_fail_on_invalid_sample_rate():
4444
with pytest.raises(TypeError):
45-
Pedalboard([]).process([], "fourty four one hundred") # type: ignore
45+
Pedalboard([]).process([], "forty four one hundred") # type: ignore
4646

4747

4848
def test_fail_on_invalid_buffer_size():

0 commit comments

Comments
 (0)