visakh7843 commited on
Commit
824146a
β€’
1 Parent(s): 16807c4

modified UI output to Gallery

Browse files
This view is limited to 50 files because it contains too many changes. Β  See raw diff
Files changed (50) hide show
  1. README.md +6 -0
  2. __pycache__/markov.cpython-39.pyc +0 -0
  3. __pycache__/music.cpython-39.pyc +0 -0
  4. app.py +6 -4
  5. data/{expert β†’ beginner}/40.abc +0 -0
  6. data/{expert β†’ beginner}/45.abc +0 -0
  7. data/{converted β†’ expert}/BR_IM6.abc +0 -0
  8. data/{converted β†’ expert}/DEB_CLAI.abc +0 -0
  9. data/{converted β†’ expert}/DEB_PASS.abc +0 -0
  10. data/{converted β†’ expert}/alb_esp1.abc +0 -0
  11. data/{converted β†’ expert}/alb_esp2.abc +0 -0
  12. data/{converted β†’ expert}/alb_esp3.abc +0 -0
  13. data/{converted β†’ expert}/alb_esp4.abc +0 -0
  14. data/{converted β†’ expert}/alb_esp5.abc +0 -0
  15. data/{converted β†’ expert}/alb_esp6.abc +0 -0
  16. data/{converted β†’ expert}/alb_se1.abc +0 -0
  17. data/{converted β†’ expert}/alb_se2.abc +0 -0
  18. data/{converted β†’ expert}/alb_se3.abc +0 -0
  19. data/{converted β†’ expert}/alb_se4.abc +0 -0
  20. data/{converted β†’ expert}/alb_se5.abc +0 -0
  21. data/{converted β†’ expert}/alb_se6.abc +0 -0
  22. data/{converted β†’ expert}/alb_se7.abc +0 -0
  23. data/{converted β†’ expert}/alb_se8.abc +0 -0
  24. data/{converted β†’ expert}/appass_1.abc +0 -0
  25. data/{converted β†’ expert}/appass_2.abc +0 -0
  26. data/{converted β†’ expert}/appass_3.abc +0 -0
  27. data/{converted β†’ expert}/bach_846.abc +0 -0
  28. data/{converted β†’ expert}/bach_847.abc +0 -0
  29. data/{converted β†’ expert}/bach_850.abc +0 -0
  30. data/{converted β†’ expert}/beethoven_hammerklavier_1.abc +0 -0
  31. data/{converted β†’ expert}/beethoven_hammerklavier_2.abc +0 -0
  32. data/{converted β†’ expert}/beethoven_hammerklavier_3.abc +0 -0
  33. data/{converted β†’ expert}/beethoven_hammerklavier_4.abc +0 -0
  34. data/{converted β†’ expert}/beethoven_les_adieux_1.abc +0 -0
  35. data/{converted β†’ expert}/beethoven_les_adieux_2.abc +0 -0
  36. data/{converted β†’ expert}/beethoven_les_adieux_3.abc +0 -0
  37. data/{converted β†’ expert}/beethoven_opus10_1.abc +0 -0
  38. data/{converted β†’ expert}/beethoven_opus10_2.abc +0 -0
  39. data/{converted β†’ expert}/beethoven_opus10_3.abc +0 -0
  40. data/{converted β†’ expert}/beethoven_opus22_1.abc +0 -0
  41. data/{converted β†’ expert}/beethoven_opus22_2.abc +0 -0
  42. data/{converted β†’ expert}/beethoven_opus22_3.abc +0 -0
  43. data/{converted β†’ expert}/beethoven_opus22_4.abc +0 -0
  44. data/{converted β†’ expert}/beethoven_opus90_1.abc +0 -0
  45. data/{converted β†’ expert}/beethoven_opus90_2.abc +0 -0
  46. data/{converted β†’ expert}/bor_ps1.abc +0 -0
  47. data/{converted β†’ expert}/bor_ps2.abc +0 -0
  48. data/{converted β†’ expert}/bor_ps3.abc +0 -0
  49. data/{converted β†’ expert}/bor_ps4.abc +0 -0
  50. 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','C|']
 
 
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 = ["image","audio"],
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