visakh7843 commited on
Commit
b4654f2
1 Parent(s): d2f5bd5

modified app.py

Browse files
__pycache__/music.cpython-39.pyc CHANGED
Binary files a/__pycache__/music.cpython-39.pyc and b/__pycache__/music.cpython-39.pyc differ
 
app.py CHANGED
@@ -1,9 +1,12 @@
1
  from music import music_gen
2
  import gradio as gr
 
3
 
4
  keysignature = ["C","G","D","No selection"]
5
  difficulty = ["beginner","intermediate","expert"]
6
  timesignature = ['3/4','4/4','1/8','C|']
 
 
7
 
8
  interface = gr.Interface(fn = music_gen,
9
  inputs=[gr.Radio(difficulty,label="Difficulty"),
 
1
  from music import music_gen
2
  import gradio as gr
3
+ import os
4
 
5
  keysignature = ["C","G","D","No selection"]
6
  difficulty = ["beginner","intermediate","expert"]
7
  timesignature = ['3/4','4/4','1/8','C|']
8
+ os.system("apt-get install lilypond")
9
+ os.system("apt-get install fluidsynth")
10
 
11
  interface = gr.Interface(fn = music_gen,
12
  inputs=[gr.Radio(difficulty,label="Difficulty"),
gen_songs_abc/song_170836/gen_song_170836.abc ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ X:1
2
+ T:Markov Song 170836
3
+ R:song
4
+ C:Visakh Ajith
5
+ Z:id:hn-song-111
6
+ M:3/4
7
+ L:1/8
8
+ Q:1/4=120
9
+ K:G
10
+ B2 A2 B2 | B2 A2 B2 | c3B cd
11
+ B2 A2 B2 | c3B cd | c3B cd
12
+ c3B cd | c3B cd | 1 e2 d2 G2
13
+ c3B cd | 1 e2 d2 G2 | 1 e2 d2 G2
14
+ 1 e2 d2 G2 | 1 e2 d2 G2 | B3A Bc:
15
+ 1 e2 d2 G2 | B3A Bc: | B3A Bc:
16
+ B3A Bc: | B3A Bc: | 2 e2 d2 F2
17
+ B3A Bc: | 2 e2 d2 F2 | 2 e2 d2 F2
18
+ 2 e2 d2 F2 | 2 e2 d2 F2 | G4
19
+ 2 e2 d2 F2 | G4 | G4
20
+ G4 | G4 | G4
21
+ G4 | G4 | G4
22
+ G4 | G4 | G4
23
+ G4 | G4 | G4
24
+ G4 | G4 | G4
25
+ G4 | G4 | G4
26
+ G4 | G4 | G4
27
+ G4 | G4 | G4
28
+ G4 | G4 | G4
29
+ G4 | G4 | G4
30
+ G4 | G4 | G4
31
+ G4 | G4 | G4
32
+ G4 | G4 | G4
33
+ G4 | G4 | G4
34
+ G4 | G4 | G4
35
+ G4 | G4 | G4
36
+ G4 | G4 | G4
37
+ G4 | G4 | G4
38
+ G4 | G4 | G4
39
+ G4 | G4 | G4
40
+ G4 | G4 | G4
41
+ G4 | G4 | G4
42
+ G4 | G4
gen_songs_abc/song_170836/gen_song_170836.ly ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ \version "2.7.40"
2
+ \header {
3
+ composer = "Visakh Ajith"
4
+ crossRefNumber = "1"
5
+ footnotes = ""
6
+ meter = "song"
7
+ tagline = "Lily was here 2.20.0 -- automatically converted from ABC"
8
+ title = "Markov Song 170836"
9
+ transcription = "id:hn-song-111"
10
+ }
11
+ voicedefault = {
12
+ \set Score.defaultBarType = ""
13
+
14
+ \time 3/4 \tempo 4=120
15
+ \key g \major b'4 a'4 b'4 \bar "|" b'4 a'4 b'4 \bar "|"
16
+ c''4. b'8 c''8 d''8 b'4 a'4 b'4 \bar "|" c''4. b'8
17
+ c''8 d''8 \bar "|" c''4. b'8 c''8 d''8 c''4. b'8
18
+ c''8 d''8 \bar "|" c''4. b'8 c''8 d''8 \bar "|" c''4.
19
+ b'8 c''8 d''8 \bar "|" b'4. a'8 b'8 c''8 b'4.
20
+ a'8 b'8 c''8 g'2 \bar "|" g'2 \bar "|" g'2 g'2
21
+ \bar "|" g'2 \bar "|" g'2 g'2 \bar "|" g'2 \bar "|" g'2
22
+ g'2 \bar "|" g'2 \bar "|" g'2 g'2 \bar "|" g'2
23
+ \bar "|" g'2 g'2 \bar "|" g'2 \bar "|" g'2 g'2
24
+ \bar "|" g'2 \bar "|" g'2 g'2 \bar "|" g'2 \bar "|" g'2
25
+ g'2 \bar "|" g'2 \bar "|" g'2 g'2 \bar "|" g'2
26
+ \bar "|" g'2 g'2 \bar "|" g'2 \bar "|" g'2 g'2
27
+ \bar "|" g'2 \bar "|" g'2 g'2 \bar "|" g'2 \bar "|" g'2
28
+ g'2 \bar "|" g'2 \bar "|" g'2 g'2 \bar "|" g'2
29
+ \bar "|" g'2 g'2 \bar "|" g'2 \bar "|" g'2 g'2
30
+ \bar "|" g'2 \bar "|" g'2 g'2 \bar "|" g'2 \bar "|" g'2
31
+ g'2 \bar "|" g'2 \bar "|" g'2 g'2 \bar "|" g'2
32
+ \bar "|" g'2 g'2 \bar "|" g'2 \bar "|" g'2 g'2
33
+ \bar "|" g'2 \bar "|" g'2 g'2 \bar "|" g'2
34
+ }
35
+
36
+ \score{
37
+ <<
38
+
39
+ \context Staff="default"
40
+ {
41
+ \voicedefault
42
+ }
43
+
44
+ >>
45
+ \layout {
46
+ }
47
+ \midi {}
48
+ }
gen_songs_abc/song_170836/gen_song_170836.png ADDED
gen_songs_abc/song_170836/gen_song_170836.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c2275a71567362a444a0715d246f1e2da2b61c93cb34121080fabc64d03d766e
3
+ size 1123
packages.txt DELETED
@@ -1,2 +0,0 @@
1
- lilypond
2
- fluidsynth