johann22 commited on
Commit
54b0803
1 Parent(s): 8d02425

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py CHANGED
@@ -4,7 +4,20 @@ from musicpy.daw import *
4
 
5
  import gradio as gr
6
 
 
7
  def write_song():
 
 
 
 
 
 
 
 
 
 
 
 
8
 
9
  #current_daw = daw(3)
10
  #current_daw.load(0, 'EMU II ACOUSTIC GUITAR.sf2')
 
4
 
5
  import gradio as gr
6
 
7
+
8
  def write_song():
9
+ guitar = (C('CM7', 3, 1/4, 1/8)^2 |
10
+ C('G7sus', 2, 1/4, 1/8)^2 |
11
+ C('A7sus', 2, 1/4, 1/8)^2 |
12
+ C('Em7', 2, 1/4, 1/8)^2 |
13
+ C('FM7', 2, 1/4, 1/8)^2 |
14
+ C('CM7', 3, 1/4, 1/8)@1 |
15
+ C('AbM7', 2, 1/4, 1/8)^2 |
16
+ C('G7sus', 2, 1/4, 1/8)^2) * 2
17
+
18
+ export(guitar, filename="tmp.wav", bpm=100, instrument=25)
19
+ return "tmp.wav"
20
+ def write_song2():
21
 
22
  #current_daw = daw(3)
23
  #current_daw.load(0, 'EMU II ACOUSTIC GUITAR.sf2')