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