Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ import gradio as gr
|
|
6 |
|
7 |
def write_song():
|
8 |
|
9 |
-
current_daw = daw()
|
10 |
#current_daw.load(0, 'EMU II ACOUSTIC GUITAR.sf2')
|
11 |
#current_daw.load(1, 'Arachno.sf2')
|
12 |
|
@@ -46,8 +46,25 @@ def write_song():
|
|
46 |
start_times=[0, 0, 4, 8],
|
47 |
bpm=165)
|
48 |
#current_daw.play(result)
|
49 |
-
|
50 |
# a wav file named "my first song.wav"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
return 'song.wav'
|
52 |
|
53 |
|
|
|
6 |
|
7 |
def write_song():
|
8 |
|
9 |
+
#current_daw = daw(3)
|
10 |
#current_daw.load(0, 'EMU II ACOUSTIC GUITAR.sf2')
|
11 |
#current_daw.load(1, 'Arachno.sf2')
|
12 |
|
|
|
46 |
start_times=[0, 0, 4, 8],
|
47 |
bpm=165)
|
48 |
#current_daw.play(result)
|
49 |
+
export(result, filename='song.wav') # export the piece type current_song to
|
50 |
# a wav file named "my first song.wav"
|
51 |
+
|
52 |
+
|
53 |
+
|
54 |
+
export(obj,
|
55 |
+
mode='wav',
|
56 |
+
action='export',
|
57 |
+
filename='song.wav',
|
58 |
+
channel_num=0,
|
59 |
+
bpm=None,
|
60 |
+
length=None,
|
61 |
+
extra_length=None,
|
62 |
+
track_lengths=None,
|
63 |
+
track_extra_lengths=None,
|
64 |
+
export_args={},
|
65 |
+
show_msg=False,
|
66 |
+
soundfont_args=None)
|
67 |
+
|
68 |
return 'song.wav'
|
69 |
|
70 |
|