Skip to content

Commit

Permalink
Made bass boost variable more explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
rnnh committed Mar 15, 2022
1 parent ec49a71 commit 843fb77
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ $ python vaporiser.py --help

```
usage: vaporiser.py [-h] [-o OUTPUT_NAME] -a AUDIO_INPUT [-s SPEED_RATIO]
[-p PITCH_SHIFT] [-l LOWPASS_CUTOFF] [-b BASS]
[-p PITCH_SHIFT] [-l LOWPASS_CUTOFF] [-b BASS_BOOST]
[-ga GAIN_DB] [-tr] [-ph] [-co] [-g GIF_FILE] [-sb]
Creates a vaporwave (slowed, with reverb) remix of a given MP3 file, with the
Expand Down Expand Up @@ -125,7 +125,8 @@ audio arguments:
extra audio arguments:
these arguments control extra, optional audio effects
-b BASS, --bass BASS Add a bass boost effect (e.g. --bass 3). (default:
-b BASS_BOOST, --bass BASS_BOOST
Add a bass boost effect (e.g. --bass 3). (default:
None)
-ga GAIN_DB, --gain GAIN_DB
Applies gain (dB). (default: None)
Expand Down
6 changes: 3 additions & 3 deletions vaporiser.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def main():
audio_arguments_optional.add_argument(
"-b",
"--bass",
dest="bass",
dest="bass_boost",
help="Add a bass boost effect (e.g. --bass 3).",
type=int,
default=None,
Expand Down Expand Up @@ -164,9 +164,9 @@ def main():
sys.exit()

# Creating an audio effects chain, beginning with...
if args.bass:
if args.bass_boost:
# ...bass boost effect
bass_boost = f'{"bass "}{args.bass}'
bass_boost = f'{"bass "}{args.bass_boost}'
fx = AudioEffectsChain().custom(bass_boost)
fx = fx.pitch(args.pitch_shift)
else:
Expand Down

0 comments on commit 843fb77

Please sign in to comment.