From 8d50cb9c280db2ab1bab2b6477a3c791d6a1d417 Mon Sep 17 00:00:00 2001 From: Crussader <75786691+Crussader@users.noreply.github.com> Date: Thu, 28 Oct 2021 18:44:05 +0400 Subject: [PATCH] code cleanup --- pomice/filters.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pomice/filters.py b/pomice/filters.py index e167129..902cc0d 100644 --- a/pomice/filters.py +++ b/pomice/filters.py @@ -1,8 +1,12 @@ import collections from .exceptions import FilterInvalidArgument + + class Filter: def __init__(self): self.payload = None + + class Equalizer: """ Filter which represents a 15 band equalizer. @@ -28,6 +32,8 @@ class Equalizer: return _dict def __repr__(self) -> str: return f"" + + class Timescale(Filter): """Filter which changes the speed and pitch of a track. Do be warned that this filter is bugged as of the lastest Lavalink dev version @@ -51,6 +57,8 @@ class Timescale(Filter): "rate": self.rate}} def __repr__(self): return f"" + + class Karaoke(Filter): """Filter which filters the vocal track from any song and leaves the instrumental. Best for karaoke as the filter implies. @@ -77,6 +85,8 @@ class Karaoke(Filter): f"" ) + + class Tremolo(Filter): """Filter which produces a wavering tone in the music, causing it to sound like the music is changing in volume rapidly. @@ -95,6 +105,8 @@ class Tremolo(Filter): "depth": self.depth}} def __repr__(self): return f"" + + class Vibrato(Filter): """Filter which produces a wavering tone in the music, similar to the Tremolo filter, but changes in pitch rather than volume.