bartman081523 commited on
Commit
5c3bbd4
1 Parent(s): 11d3126

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -70,11 +70,11 @@ def play_and_download_sound(noise_ratio, lowcut, highcut, duration, pop_rate):
70
  iface = gr.Interface(
71
  fn=play_and_download_sound,
72
  inputs=[
73
- gr.inputs.Slider(minimum=0, maximum=1, default=0.001, step=0.001, label="Noise Ratio"),
74
  gr.inputs.Slider(minimum=20, maximum=20000, default=300, step=10, label="Lowcut Frequency (Hz)"),
75
  gr.inputs.Slider(minimum=20, maximum=20000, default=5000, step=10, label="Highcut Frequency (Hz)"),
76
- gr.inputs.Slider(minimum=1, maximum=60, default=10, step=1, label="Duration (seconds)"),
77
- gr.inputs.Slider(minimum=1, maximum=100, default=10, step=1, label="Pop Rate (pops per second)")
78
  ],
79
  outputs=[
80
  gr.outputs.Audio(type="numpy", label="Vinyl Sound"),
@@ -88,9 +88,9 @@ iface = gr.Interface(
88
  title="Vinyl Sound Generator",
89
  description="Generate a synthetic vinyl sound using pink noise, rumble, hiss, and pops. Adjust the noise ratio, bandpass frequencies, duration, and pop rate to modify the sound.",
90
  examples=[
91
- [0.001, 300, 5000, 10, 10],
92
- [0.002, 500, 4000, 15, 20],
93
- [0.005, 200, 6000, 20, 30]
94
  ]
95
  )
96
 
 
70
  iface = gr.Interface(
71
  fn=play_and_download_sound,
72
  inputs=[
73
+ gr.inputs.Slider(minimum=0, maximum=0.005, default=0.0005, step=0.0001, label="Noise Ratio"),
74
  gr.inputs.Slider(minimum=20, maximum=20000, default=300, step=10, label="Lowcut Frequency (Hz)"),
75
  gr.inputs.Slider(minimum=20, maximum=20000, default=5000, step=10, label="Highcut Frequency (Hz)"),
76
+ gr.inputs.Slider(minimum=1, maximum=600, default=30, step=1, label="Duration (seconds)"),
77
+ gr.inputs.Slider(minimum=1, maximum=180, default=30, step=1, label="Pop Rate (pops per second)")
78
  ],
79
  outputs=[
80
  gr.outputs.Audio(type="numpy", label="Vinyl Sound"),
 
88
  title="Vinyl Sound Generator",
89
  description="Generate a synthetic vinyl sound using pink noise, rumble, hiss, and pops. Adjust the noise ratio, bandpass frequencies, duration, and pop rate to modify the sound.",
90
  examples=[
91
+ [0.0005, 300, 5000, 30, 30],
92
+ [0.001, 500, 4000, 30, 50],
93
+ [0.002, 200, 6000, 30, 100]
94
  ]
95
  )
96