Inspiration

Our inspiration for this project was to create something that encompasses the theme of "Composition" and allows us to make something that we can have fun using and understanding without in depth knowledge of music theory or owning specialised hardware. All you need for this is a web cam and your hands! We were able to incorporate our passion for tech with something musical and artistic, in a whimsical "new worlds" sort of way.

What it does

While traditional music production requires a person to be knowledgeable in specialised hardware and resources to create music, our project allows you to simply do it using what you already have! This is simply done using the following workflow:

  • Running the program opens a web cam which takes in the camera input frames
  • A pre-trained AI model which recognises 21 hand points is then used to mathematically calculate the hand positioning.
  • This data is then sent to a tracker that creates a data contract, updating the state of the hands
  • This is then mapped to the music functions, so that each hand movement changes the severity of the features and effects. Which are as follows:

Left Hand:

  • Raising each finger determines the which notes of the chord are playing
  • Hand rotation determines chord type
  • Left/ right determines music scale

Right Hand:

  • Up/ Down determines pitch
  • Left/ right determines brightness
  • Forward/ backwards determines reverb
  • Hand rotation determines Vibrato
  • Pinching determines delay

  • From there it passes to our own synth, using sine waves and the sounddevice library to output the sound.

  • The hand model from tracker is then passed to the visual output section which takes the skeleton and creates an orb showing the positioning of the hands.

  • The UI also displays current note, chord type and the scale from the music files.

  • It also keeps track of all you hand positioning and creates an abstract visualisation based on it.

  • There is also a dev menu, for debugging purposes.

How we built it

Once we were set on the idea, we divided ourselves into 2 teams. 2 people worked on the visual side (visual import and the UI display) and 2 people worked on the sound side (sound creation and output). From there we created all the files we believed we would require and established a workflow. Making use of a variety of python libraries our project was able to come together.

Challenges we ran into

Below are the challenges we ran into:

  • Many bizarre issues surrounding the downloading and python and its libraries (people using different systems or outdated versions.
  • Due to the way we divided the work, many sections were dependant on other people to finish their part so that our progress may have been quite staggered at points. Despite the challenges we ran into, we were able to create a working program that allows for playing around with music and create something that we are proud of.

Accomplishments that we're proud of

Some of the accomplishments that we are proud of are:

  • Getting the visuals to work as intended, with a lot of whimsy.
  • Writing our own synth, which was a lot of work but at the end of the day it paid off.
  • Expandability of our program (simply requires to add a library and a few lines of code to add, for example, a whole scale)

How we fulfilled sponsor challenges

Accenture: we realised that most software for creating music has a learning curve that for beginners can be frustratingly steep, but this learning curve is accepted as "just the way things work". We created software that allows anyone to create music intuitively with just a webcam and their phone by using MediaPipe's pretrained AI model HandLandmarker to identify 21 hand points, then processing this raw data into hand shape, which then creates music.

Marshall Wace: we wanted to allow people with no experience to explore the new world of creating music.

Waterstons: while music is usually created with instruments or with software like Garageband, we wanted to connect music to something that it isn't usually connected to: hand gestures.

Dev writing challenge: this devpost!

What we learned

Due to most of our team members having limited knowledge of music theory, we were able to, for the first time, explore in depth what each component and effect does to change a note. We all also learned how to incorporate this into an easily accessible visual medium, that makes playing around with it a lot of fun.

What's next for The Harmonic Orb

Next we would hope to be able to create music with our whole bodies, where different parts control different aspects of it. Furthermore, we would like to make our project accessible to those with different physical abilities so that everyone could enjoy a little bit of music in their life, no matter skill or hardware access.

Built With

Share this project:

Updates

Submission history