Inspiration
Fans of music and coding, we thought making your code sing would be cool! Your code works, but how well can it sing?
What it does
Using our Source Code Sonificator, you will create a unique piece of music out of any source code written in java/c/c++/python! We have included three synthesizers so far: pretty bells, guitars and pianos.
How we built it
First we just simple I/O to extract all the keywords within your program. Then based on the language the code is written in, we assign an unique drum beat to it. Using a library that allows us to synthesise sounds and assign notes to them, we are able to associate different keywords with the different music components. Then we assemble them, and put them into a piece of absolute masterpiece.
Challenges we ran into
When directly mapping code keywords to different notes and tones, the raw result sounded awful due to the lack of consistent pattern in the code. Moreover, when dealing with different coding languages, the intermediate results generated by brute force is sometimes extremely chaotic and that is when the art needs to come in.
Accomplishments that we're proud of
We successfully made a functional prototype within one day! And it's cute! :D
What we learned
We learned good practices of parallel development, many cool techniques to code in Python, learned a lot about choruses, and had a lot of fun!
What's next for BlueOrange Source Code Sonificator
We will include more synthesizers, become able to identify variable names in the code and assign notes to them as well. That will make the music more diverse and more fun!
Log in or sign up for Devpost to join the conversation.