Skip to content

Commit

Permalink
added "you what?" sfx
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremynoesen committed Sep 2, 2024
1 parent 9ec4f50 commit 7e0dc0b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ Seaweed. One of these is chosen at random per episode.

### Sound Effects

The available sound effects are steel sting, boowomp, vibe link (b), disgusting fog horn, "My leg!", and "Oh brother
this guy stinks!". One of these is chosen at random to play at a random point per episode. The beginning of every
episode begins with the bubbles transition sound.
The available sound effects are steel sting, boowomp, vibe link (b), disgusting fog horn, "My leg!", "Oh brother this
guy stinks!", and "You what?". One of these is chosen at random to play at a random point per episode. The beginning of
every episode begins with the bubbles transition sound.

### Random Events

Expand Down
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def load_wav(path, end, gain, repeat, fade, delay):
sfx_vibe_link_b = load_wav("sfx/vibe_link_b.wav", None, -25, False, 0, 0)
sfx_this_guy_stinks = load_wav("sfx/this_guy_stinks.wav", -100, -25, False, 0, 0)
sfx_my_leg = load_wav("sfx/my_leg.wav", -2000, -25, False, 0, 0)
sfx_you_what = load_wav("sfx/you_what.wav", None, -25, False, 0, 0)
sfx_transition = load_wav("sfx/transition.wav", None, -25, False, 0, 0)
sfx_gary = AudioSegment.from_wav("sfx/gary.wav")[:6000]
silence_line = AudioSegment.silent(500)
Expand Down Expand Up @@ -141,7 +142,7 @@ async def generate(inter: discord.Interaction, topic: str) -> None:
if random.randrange(20) > 0:
combined = combined.append(silence_line, 0)
await message.edit(embed=discord.Embed(title=f"{int(100 * (progress / remaining))}%", color=0xf5f306).set_footer(text="This may take a while."))
sfx = random.choice([sfx_steel_sting, sfx_boowomp, sfx_disgusting, sfx_vibe_link_b, sfx_this_guy_stinks, sfx_my_leg])
sfx = random.choice([sfx_steel_sting, sfx_boowomp, sfx_disgusting, sfx_vibe_link_b, sfx_this_guy_stinks, sfx_my_leg, sfx_you_what])
final = silence_transition.append(combined.overlay(random.choice([music_closing_theme, music_tip_top_polka, music_rake_hornpipe, music_seaweed])).overlay(sfx, random.randrange(len(combined) - len(sfx)))).overlay(sfx_transition)
with BytesIO() as episode:
final.export(episode, "wav")
Expand Down
Binary file added sfx/you_what.wav
Binary file not shown.

0 comments on commit 7e0dc0b

Please sign in to comment.