Skip to content

Commit

Permalink
Added karaoke effect
Browse files Browse the repository at this point in the history
  • Loading branch information
rnnh committed Mar 15, 2022
1 parent 843fb77 commit 9968b37
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions vaporiser.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,18 @@ def main():
default=None,
)

audio_arguments_optional.add_argument(
"-op",
"--oops",
dest="oops",
help=(
"Applies Out Of Phase Stereo effect. This is sometimes known as the"
" ‘karaoke’ effect as it often has the effect of removing most or all of"
" the vocals from a recording."
),
action="store_true",
)

audio_arguments_optional.add_argument(
"-tr",
"--tremolo",
Expand Down Expand Up @@ -193,6 +205,10 @@ def main():
# Adding reverb, lowpass filter, speed alteration to audio effects chain
fx = fx.speed(args.speed_ratio).lowpass(args.lowpass_cutoff).reverb()

# Adds OOPS to audio effects chain
if args.oops:
fx = fx.custom("oops")

# Applying audio effects
fx(args.audio_input, audio_output)

Expand Down

0 comments on commit 9968b37

Please sign in to comment.