Skip to content

Commit

Permalink
Explicitly ignore "dB" when used as a value suffix. (#167)
Browse files Browse the repository at this point in the history
* Explicitly ignore "dB" when used as a value suffix.

* Update pedalboard.py

* Bump version.

* Update pedalboard.py
  • Loading branch information
psobot authored Nov 28, 2022
1 parent e1a6ddd commit 0e8b6ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion pedalboard/pedalboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ def __repr__(self) -> str:
)


FLOAT_SUFFIXES_TO_IGNORE = set(["x", "%", "*", ",", ".", "hz", "ms", "sec", "seconds"])
FLOAT_SUFFIXES_TO_IGNORE = set(
["x", "%", "*", ",", ".", "hz", "ms", "sec", "seconds", "dB", "dBTP"]
)


def strip_common_float_suffixes(s: Union[float, str]) -> Union[float, str]:
Expand Down
2 changes: 1 addition & 1 deletion pedalboard/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@

MAJOR = 0
MINOR = 6
PATCH = 4
PATCH = 5

__version__ = "%d.%d.%d" % (MAJOR, MINOR, PATCH)

0 comments on commit 0e8b6ac

Please sign in to comment.