feat: pass through filters

This commit is contained in:
NiceAesth 2024-02-23 14:06:57 +02:00
parent 05200a9659
commit 9e9ab07ab5
1 changed files with 8 additions and 6 deletions

View File

@ -1,3 +1,5 @@
from __future__ import annotations
import collections import collections
from typing import Any from typing import Any
from typing import Dict from typing import Dict
@ -84,7 +86,7 @@ class Equalizer(Filter):
return self.raw == __value.raw return self.raw == __value.raw
@classmethod @classmethod
def flat(cls) -> "Equalizer": def flat(cls) -> Equalizer:
"""Equalizer preset which represents a flat EQ board, """Equalizer preset which represents a flat EQ board,
with all levels set to their default values. with all levels set to their default values.
""" """
@ -109,7 +111,7 @@ class Equalizer(Filter):
return cls(tag="flat", levels=levels) return cls(tag="flat", levels=levels)
@classmethod @classmethod
def boost(cls) -> "Equalizer": def boost(cls) -> Equalizer:
"""Equalizer preset which boosts the sound of a track, """Equalizer preset which boosts the sound of a track,
making it sound fun and energetic by increasing the bass making it sound fun and energetic by increasing the bass
and the highs. and the highs.
@ -135,7 +137,7 @@ class Equalizer(Filter):
return cls(tag="boost", levels=levels) return cls(tag="boost", levels=levels)
@classmethod @classmethod
def metal(cls) -> "Equalizer": def metal(cls) -> Equalizer:
"""Equalizer preset which increases the mids of a track, """Equalizer preset which increases the mids of a track,
preferably one of the metal genre, to make it sound preferably one of the metal genre, to make it sound
more full and concert-like. more full and concert-like.
@ -162,7 +164,7 @@ class Equalizer(Filter):
return cls(tag="metal", levels=levels) return cls(tag="metal", levels=levels)
@classmethod @classmethod
def piano(cls) -> "Equalizer": def piano(cls) -> Equalizer:
"""Equalizer preset which increases the mids and highs """Equalizer preset which increases the mids and highs
of a track, preferably a piano based one, to make it of a track, preferably a piano based one, to make it
stand out. stand out.
@ -215,7 +217,7 @@ class Timescale(Filter):
} }
@classmethod @classmethod
def vaporwave(cls) -> "Timescale": def vaporwave(cls) -> Timescale:
"""Timescale preset which slows down the currently playing track, """Timescale preset which slows down the currently playing track,
giving it the effect of a half-speed record/casette playing. giving it the effect of a half-speed record/casette playing.
@ -225,7 +227,7 @@ class Timescale(Filter):
return cls(tag="vaporwave", speed=0.8, pitch=0.8) return cls(tag="vaporwave", speed=0.8, pitch=0.8)
@classmethod @classmethod
def nightcore(cls) -> "Timescale": def nightcore(cls) -> Timescale:
"""Timescale preset which speeds up the currently playing track, """Timescale preset which speeds up the currently playing track,
which matches up to nightcore, a genre of sped-up music which matches up to nightcore, a genre of sped-up music