Fabrice-TIERCELIN commited on
Commit
3c56658
·
verified ·
1 Parent(s): 2b4ee56
Files changed (1) hide show
  1. demos/musicgen_app.py +24 -2
demos/musicgen_app.py CHANGED
@@ -247,13 +247,13 @@ def ui_full(launch_kwargs):
247
  # Text-to-Music / Music-to-Music
248
  Derived from [MusicGen](https://github.com/facebookresearch/audiocraft),
249
  presented at: ["Simple and Controllable Music Generation"](https://huggingface.co/papers/2306.05284).
250
- Modified for experiments in the re-scoring of *Metropolis* and *Wings*.
251
  """
252
  )
253
  with gr.Row():
254
  with gr.Column():
255
  with gr.Row():
256
- text = gr.Text(label="Input Text", interactive=True)
257
  with gr.Column():
258
  radio = gr.Radio(["file", "mic"], value="file",
259
  label="Condition on a melody (optional) File or Microphone")
@@ -314,6 +314,28 @@ def ui_full(launch_kwargs):
314
  )
315
  gr.Markdown(
316
  """
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
317
  ### More details
318
 
319
  The model can generate up to 30 seconds of audio in one pass.
 
247
  # Text-to-Music / Music-to-Music
248
  Derived from [MusicGen](https://github.com/facebookresearch/audiocraft),
249
  presented at: ["Simple and Controllable Music Generation"](https://huggingface.co/papers/2306.05284).
250
+ MusicGen gets better results than other AIs like WaveFormer.
251
  """
252
  )
253
  with gr.Row():
254
  with gr.Column():
255
  with gr.Row():
256
+ text = gr.Text(label="Input Text", placeholder="Describe your music here", interactive=True)
257
  with gr.Column():
258
  radio = gr.Radio(["file", "mic"], value="file",
259
  label="Condition on a melody (optional) File or Microphone")
 
314
  )
315
  gr.Markdown(
316
  """
317
+ ### How to prompt your music
318
+
319
+ You can use round brackets to increase the importance of a part:
320
+ ```
321
+ Classical music, violin, harp, (piano)
322
+ ```
323
+
324
+ You can use several levels of round brackets to even more increase the importance of a part:
325
+ ```
326
+ Classical music, violin, (harp), ((piano))
327
+ ```
328
+
329
+ You can use number instead of several round brackets:
330
+ ```
331
+ Classical music, (violin), (harp:1.5), ((piano))
332
+ ```
333
+
334
+ You can do the same thing with square brackets to decrease the importance of a part:
335
+ ```
336
+ Classical music, strings, [violin], [[harp]], [piano:10]
337
+ ```
338
+
339
  ### More details
340
 
341
  The model can generate up to 30 seconds of audio in one pass.