mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-14 13:34:40 +00:00
work ongoing
This commit is contained in:
@@ -67,7 +67,7 @@ s = add([s, b])
|
||||
a = interactive.float("main_volume", min=0., max=20., 0.4)
|
||||
s = compress.multiband.interactive(bands=7, s)
|
||||
|
||||
mic_gain = interactive.float("mic_volume", min=0., max=20., 6.)
|
||||
mic_gain = interactive.float("mic_volume", min=0., max=120., 6.)
|
||||
# Apply audio processing effects
|
||||
tmic = buffer(input.pulseaudio()) # Microphone
|
||||
mic = amplify(mic_gain, tmic)
|
||||
@@ -75,12 +75,11 @@ mic = gate(threshold=-80., range=-120., mic)
|
||||
mic = compress(threshold=0., ratio=2.,mic)
|
||||
mic = blank.strip(max_blank=10., min_noise=.1, threshold=-20., mic)
|
||||
|
||||
s = add([s, mic])
|
||||
# Apply audio processing effects
|
||||
s = nrj(normalize(s))
|
||||
s = amplify(a, s)
|
||||
# Skip blank sections in the stream
|
||||
s = blank.skip(max_blank=10., s)
|
||||
s = blank.skip(max_blank=10., s)192
|
||||
|
||||
#Manual audition override
|
||||
source_control = interactive.bool("Source control", true)
|
||||
|
||||
+13
-3
@@ -604,9 +604,19 @@ class MusicModule(commands.Cog):
|
||||
guild=discord.Object(id=664789470779932693),
|
||||
)
|
||||
async def batch_download(self, ctx):
|
||||
self.logger.info(ctx.message.attachments[0].content_type)
|
||||
file_bytes = ctx.message.attachments[0].read()
|
||||
self.logger.info(file_bytes.decode(encoding="utf-8"))
|
||||
content_type = ctx.message.attachments[0].contluzent_type
|
||||
check = re.search ("text\/plain; *charset=(.*)", content_type, re.IGNORECASE)
|
||||
if check:
|
||||
file_bytes = await ctx.message.attachments[0].read()
|
||||
text = file_bytes.decode(encoding=check.group(1))
|
||||
self.logger.info(text)
|
||||
lines = text.split("\n")
|
||||
for item in lines:
|
||||
self.logger.info(item)
|
||||
|
||||
else:
|
||||
ctx.reply("Spierdalaj")
|
||||
|
||||
|
||||
async def disconnect(self, ctx):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user