Skip to content

Commit

Permalink
Merge pull request #1 from nateraw/nateraw-patch-1
Browse files Browse the repository at this point in the history
Update pitch_correction_utils.py
  • Loading branch information
nateraw authored Apr 19, 2024
2 parents 3624bde + 1839c09 commit 2fc0351
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,15 +321,16 @@ def main(model_id="nateraw/musicgen-songstarter-v0.2", max_batch_size=4, share=F
],
outputs=[gr.Audio(label=("Input " if i == 0 else "") + f"Audio {i}") for i in range(pipeline.max_batch_size + 1)],
title="🎶 Generate song ideas with musicgen-songstarter-v0.2 🎶",
description="Check out the repo [here](https://huggingface.co/nateraw/musicgen-songstarter-v0.2)",
description="Check out the model [here](https://huggingface.co/nateraw/musicgen-songstarter-v0.2) and the source code [here](https://github.com/nateraw/singing-songstarter).",
examples=[
["hip hop, soul, piano, chords, jazz, neo jazz, G# minor, 140 bpm", None, "closest", False, 1, 8, True, 1.0, 250, 0.0, 3.0, "./samples", "loudness", -1],
["acoustic, guitar, melody, rnb, trap, E minor, 85 bpm", None, "closest", False, 1, 8, True, 1.0, 250, 0.0, 3.0, "./samples", "loudness", -1],
["synth, dark, hip hop, melody, trap, Gb minor, 140 bpm", "./nate_is_singing_Gb_minor.wav", "Gb:min", False, 1, 7, True, 1.0, 250, 0.0, 3.0, "./samples", "loudness", -1],
["drill, layered, melody, songstarters, trap, C# minor, 130 bpm", None, "closest", False, 1, 8, True, 1.0, 250, 0.0, 3.0, "./samples", "loudness", -1],
["hip hop, soul, rnb, neo soul, songstarters, B minor, 140 bpm", None, "closest", False, 1, 8, True, 1.0, 250, 0.0, 3.0, "./samples", "loudness", -1],
["music, mallets, bells, melody, dancehall, african, afropop & afrobeats", "./nate_is_singing_Gb_minor.wav", "Gb:min", False, 1, 7, True, 1.0, 250, 0.0, 4.5, "./samples", "loudness", -1],
]
],
cache_examples=False
)
interface.launch(share=share, debug=debug)

Expand Down Expand Up @@ -359,4 +360,4 @@ def main(model_id="nateraw/musicgen-songstarter-v0.2", max_batch_size=4, share=F
# 0,
# None
# )
# out = pipe(*example_input)
# out = pipe(*example_input)
3 changes: 3 additions & 0 deletions pitch_correction_utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Taken from this AMAZING blogpost by https://github.com/JanWilczek:
# https://thewolfsound.com/how-to-auto-tune-your-voice-with-python/

from functools import partial
from pathlib import Path
import argparse
Expand Down

0 comments on commit 2fc0351

Please sign in to comment.