Spaces:
Running
Running
visakh7843
commited on
Commit
β’
824146a
1
Parent(s):
16807c4
modified UI output to Gallery
Browse filesThis view is limited to 50 files because it contains too many changes. Β
See raw diff
- README.md +6 -0
- __pycache__/markov.cpython-39.pyc +0 -0
- __pycache__/music.cpython-39.pyc +0 -0
- app.py +6 -4
- data/{expert β beginner}/40.abc +0 -0
- data/{expert β beginner}/45.abc +0 -0
- data/{converted β expert}/BR_IM6.abc +0 -0
- data/{converted β expert}/DEB_CLAI.abc +0 -0
- data/{converted β expert}/DEB_PASS.abc +0 -0
- data/{converted β expert}/alb_esp1.abc +0 -0
- data/{converted β expert}/alb_esp2.abc +0 -0
- data/{converted β expert}/alb_esp3.abc +0 -0
- data/{converted β expert}/alb_esp4.abc +0 -0
- data/{converted β expert}/alb_esp5.abc +0 -0
- data/{converted β expert}/alb_esp6.abc +0 -0
- data/{converted β expert}/alb_se1.abc +0 -0
- data/{converted β expert}/alb_se2.abc +0 -0
- data/{converted β expert}/alb_se3.abc +0 -0
- data/{converted β expert}/alb_se4.abc +0 -0
- data/{converted β expert}/alb_se5.abc +0 -0
- data/{converted β expert}/alb_se6.abc +0 -0
- data/{converted β expert}/alb_se7.abc +0 -0
- data/{converted β expert}/alb_se8.abc +0 -0
- data/{converted β expert}/appass_1.abc +0 -0
- data/{converted β expert}/appass_2.abc +0 -0
- data/{converted β expert}/appass_3.abc +0 -0
- data/{converted β expert}/bach_846.abc +0 -0
- data/{converted β expert}/bach_847.abc +0 -0
- data/{converted β expert}/bach_850.abc +0 -0
- data/{converted β expert}/beethoven_hammerklavier_1.abc +0 -0
- data/{converted β expert}/beethoven_hammerklavier_2.abc +0 -0
- data/{converted β expert}/beethoven_hammerklavier_3.abc +0 -0
- data/{converted β expert}/beethoven_hammerklavier_4.abc +0 -0
- data/{converted β expert}/beethoven_les_adieux_1.abc +0 -0
- data/{converted β expert}/beethoven_les_adieux_2.abc +0 -0
- data/{converted β expert}/beethoven_les_adieux_3.abc +0 -0
- data/{converted β expert}/beethoven_opus10_1.abc +0 -0
- data/{converted β expert}/beethoven_opus10_2.abc +0 -0
- data/{converted β expert}/beethoven_opus10_3.abc +0 -0
- data/{converted β expert}/beethoven_opus22_1.abc +0 -0
- data/{converted β expert}/beethoven_opus22_2.abc +0 -0
- data/{converted β expert}/beethoven_opus22_3.abc +0 -0
- data/{converted β expert}/beethoven_opus22_4.abc +0 -0
- data/{converted β expert}/beethoven_opus90_1.abc +0 -0
- data/{converted β expert}/beethoven_opus90_2.abc +0 -0
- data/{converted β expert}/bor_ps1.abc +0 -0
- data/{converted β expert}/bor_ps2.abc +0 -0
- data/{converted β expert}/bor_ps3.abc +0 -0
- data/{converted β expert}/bor_ps4.abc +0 -0
- data/{converted β expert}/bor_ps5.abc +0 -0
README.md
CHANGED
@@ -13,3 +13,9 @@ pinned: false
|
|
13 |
Sheet Music generation for easier sight reading practice for musicians.
|
14 |
Musicians often struggle at finding new sheet music to practice sight reading. Finding new sheet music to practice is particularly important as musicians playing same melodies over and over unknowingly memorize it, which would defeat the purpose of practising to sight-reading. Hence to practice sight-reading for musician, it is crucial to get new and unseen sheet music every now and then which is difficult.
|
15 |
This project aims at developing a probabilistic algorithm (Markov Model) for generating music of appropriate complexity, in a range of appropriate keys and tempos. Markov models were chosen over deep learning models due to their overhead of required resources which didnβt give a considerable advantage over Markov Models. As a secondary objective we will also explore the possibility of generating music specific to different instruments taking into account the limitation of specific instruments.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
Sheet Music generation for easier sight reading practice for musicians.
|
14 |
Musicians often struggle at finding new sheet music to practice sight reading. Finding new sheet music to practice is particularly important as musicians playing same melodies over and over unknowingly memorize it, which would defeat the purpose of practising to sight-reading. Hence to practice sight-reading for musician, it is crucial to get new and unseen sheet music every now and then which is difficult.
|
15 |
This project aims at developing a probabilistic algorithm (Markov Model) for generating music of appropriate complexity, in a range of appropriate keys and tempos. Markov models were chosen over deep learning models due to their overhead of required resources which didnβt give a considerable advantage over Markov Models. As a secondary objective we will also explore the possibility of generating music specific to different instruments taking into account the limitation of specific instruments.
|
16 |
+
|
17 |
+
|
18 |
+
How to run the project:
|
19 |
+
```sh
|
20 |
+
python app.py
|
21 |
+
```
|
__pycache__/markov.cpython-39.pyc
CHANGED
Binary files a/__pycache__/markov.cpython-39.pyc and b/__pycache__/markov.cpython-39.pyc differ
|
|
__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,16 +1,18 @@
|
|
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'
|
|
|
|
|
8 |
|
9 |
interface = gr.Interface(fn = music_gen,
|
10 |
inputs=[gr.Radio(difficulty,label="Difficulty"),
|
11 |
gr.Radio(timesignature,label="Time Signature"),
|
12 |
gr.Dropdown(keysignature,label="Key Signature")],
|
13 |
-
outputs = ["
|
14 |
title="Sheet Music Generation for Sight-Reading",
|
15 |
description="TO be added")
|
16 |
-
interface.launch(inline=False)
|
|
|
1 |
from music import music_gen
|
2 |
import gradio as gr
|
3 |
import os
|
4 |
+
from music import GlobalUIGallery
|
5 |
keysignature = ["C","G","D","No selection"]
|
6 |
difficulty = ["beginner","intermediate","expert"]
|
7 |
+
timesignature = ['3/4','4/4','1/8']
|
8 |
+
|
9 |
+
output = gr.Gallery() if GlobalUIGallery else "image"
|
10 |
|
11 |
interface = gr.Interface(fn = music_gen,
|
12 |
inputs=[gr.Radio(difficulty,label="Difficulty"),
|
13 |
gr.Radio(timesignature,label="Time Signature"),
|
14 |
gr.Dropdown(keysignature,label="Key Signature")],
|
15 |
+
outputs = [gr.Gallery(label="Sheet Music"),gr.Audio(label="Audio")],
|
16 |
title="Sheet Music Generation for Sight-Reading",
|
17 |
description="TO be added")
|
18 |
+
interface.launch(inline=False)
|
data/{expert β beginner}/40.abc
RENAMED
File without changes
|
data/{expert β beginner}/45.abc
RENAMED
File without changes
|
data/{converted β expert}/BR_IM6.abc
RENAMED
File without changes
|
data/{converted β expert}/DEB_CLAI.abc
RENAMED
File without changes
|
data/{converted β expert}/DEB_PASS.abc
RENAMED
File without changes
|
data/{converted β expert}/alb_esp1.abc
RENAMED
File without changes
|
data/{converted β expert}/alb_esp2.abc
RENAMED
File without changes
|
data/{converted β expert}/alb_esp3.abc
RENAMED
File without changes
|
data/{converted β expert}/alb_esp4.abc
RENAMED
File without changes
|
data/{converted β expert}/alb_esp5.abc
RENAMED
File without changes
|
data/{converted β expert}/alb_esp6.abc
RENAMED
File without changes
|
data/{converted β expert}/alb_se1.abc
RENAMED
File without changes
|
data/{converted β expert}/alb_se2.abc
RENAMED
File without changes
|
data/{converted β expert}/alb_se3.abc
RENAMED
File without changes
|
data/{converted β expert}/alb_se4.abc
RENAMED
File without changes
|
data/{converted β expert}/alb_se5.abc
RENAMED
File without changes
|
data/{converted β expert}/alb_se6.abc
RENAMED
File without changes
|
data/{converted β expert}/alb_se7.abc
RENAMED
File without changes
|
data/{converted β expert}/alb_se8.abc
RENAMED
File without changes
|
data/{converted β expert}/appass_1.abc
RENAMED
File without changes
|
data/{converted β expert}/appass_2.abc
RENAMED
File without changes
|
data/{converted β expert}/appass_3.abc
RENAMED
File without changes
|
data/{converted β expert}/bach_846.abc
RENAMED
File without changes
|
data/{converted β expert}/bach_847.abc
RENAMED
File without changes
|
data/{converted β expert}/bach_850.abc
RENAMED
File without changes
|
data/{converted β expert}/beethoven_hammerklavier_1.abc
RENAMED
File without changes
|
data/{converted β expert}/beethoven_hammerklavier_2.abc
RENAMED
File without changes
|
data/{converted β expert}/beethoven_hammerklavier_3.abc
RENAMED
File without changes
|
data/{converted β expert}/beethoven_hammerklavier_4.abc
RENAMED
File without changes
|
data/{converted β expert}/beethoven_les_adieux_1.abc
RENAMED
File without changes
|
data/{converted β expert}/beethoven_les_adieux_2.abc
RENAMED
File without changes
|
data/{converted β expert}/beethoven_les_adieux_3.abc
RENAMED
File without changes
|
data/{converted β expert}/beethoven_opus10_1.abc
RENAMED
File without changes
|
data/{converted β expert}/beethoven_opus10_2.abc
RENAMED
File without changes
|
data/{converted β expert}/beethoven_opus10_3.abc
RENAMED
File without changes
|
data/{converted β expert}/beethoven_opus22_1.abc
RENAMED
File without changes
|
data/{converted β expert}/beethoven_opus22_2.abc
RENAMED
File without changes
|
data/{converted β expert}/beethoven_opus22_3.abc
RENAMED
File without changes
|
data/{converted β expert}/beethoven_opus22_4.abc
RENAMED
File without changes
|
data/{converted β expert}/beethoven_opus90_1.abc
RENAMED
File without changes
|
data/{converted β expert}/beethoven_opus90_2.abc
RENAMED
File without changes
|
data/{converted β expert}/bor_ps1.abc
RENAMED
File without changes
|
data/{converted β expert}/bor_ps2.abc
RENAMED
File without changes
|
data/{converted β expert}/bor_ps3.abc
RENAMED
File without changes
|
data/{converted β expert}/bor_ps4.abc
RENAMED
File without changes
|
data/{converted β expert}/bor_ps5.abc
RENAMED
File without changes
|