VRvaldi

A VR Composition Tool for All Musical Levels

Inspiration

Music composition has traditionally been a two-dimensional experience, requiring musicians to write notes onto sheet music or navigate complex digital software. We wanted to reimagine this process, making music creation more intuitive, interactive and immersive.

As a team that includes three musicians, we have experienced how frustrating and overwhelming traditional composition software can be. We wanted to bring the joy back to creating original music by making composition more accessible, engaging and rewarding for people of all skill levels. At the same time, as AI generated music becomes increasingly accessible, we wanted to encourage people to explore their own creativity rather than rely on technology to create for them. Instead of replacing the creative process, we believe technology should enhance it.

Having a team member with limited musical experience also provided valuable insight into the challenges beginners face when approaching musical notation. Beyond simplifying composition, we wanted to encourage the development of musical literacy. And therefore, inspired by the creative possibilities of virtual reality, we asked ourselves: What if you could reach out, pick up a musical note and place it directly onto a stave? And, this was the foundation of our project.

What VRValdi it Do?

Our project is a virtual reality music composition platform that transforms writing music into an immersive, three-dimensional experience. Rather than navigating traditional notation software, users can physically reach out, pick up musical notes and place them directly onto a stave to create their own compositions. They can then play back what they've written, allowing them to instantly hear how different notes and melodies sound together.

There’s also a wristwheel which you can angle to select notes, as an improvement to the original drag and drop, to improve flow of production and make it easier to add individual notes, influenced by feedback from a guy from MLH.

Users can choose from a range of instruments, allowing them to compose for different sounds and experiment with how instruments work together. By layering multiple instruments, users can build more complex compositions, combining different melodies and harmonies to create a complete piece of music. They can also select different time signatures and musical keys, giving them greater freedom to explore different styles and structures. To make the platform accessible to musicians of all abilities, we have included both beginner and expert modes. Beginner mode focuses on composing on a single stave- with suggested musical motifs that users can pick up and add to their compositions. This gives beginners a starting point to experiment with musical ideas while gradually developing their understanding of notation and composition. Expert mode offers greater creative freedom, allowing more experienced musicians to work with multiple instruments and staves, experiment with different keys and time signatures, and develop more complex arrangements.

ElevenLabs has also been incorporated into the project, so users can sing a melody- which will then appear on the stave. Users can also talk to the platform and ask it to add accompaniment to the melody- which is generated using eleven labs. This feature is helpful for beginners, or musicians and vocalists trying to quickly record a melody as it comes to their head. Users can also edit their compositions by moving or deleting individual notes and sections of music, making it easy to experiment with different ideas.

One of the most exciting features of our platform is the ability to compose and experience music within different immersive environments. Users can choose from settings such as a jazz club, or a concert hall with a full orchestra, allowing them to explore different musical styles in surroundings that reflect their compositions. Once they've finished writing, they can experience their music being performed by virtual musicians, watching and listening from the perspective of a conductor. This allows users to see their compositions come to life, transforming the experience from simply writing music into watching their own musical performance.

By combining hands-on interaction with immediate auditory feedback, we hope to make composing music feel more natural, engaging and rewarding. For beginners, being able to see, move and hear notes in real time offers an interactive way to develop musical literacy, while experienced musicians can explore a different approach to writing and arranging music.

How we built it

We approached the project by combining user experience design, 3D modelling, and virtual reality development. Before diving into the tech, we started by creating wireframes to map out the user journey in Figma, focusing on how users would select notes, position them on a stave, and edit their compositions.

At a high level, our tech stack consisted of: Figma: Designing the interface, user interactions and composition workflows. Claude: For helping write code Eleven labs: for developing auditory instructions and feedback Unity: Developing the VR environment and bringing together the interactive components of the platform.

The Setup

Specifically, we built the project using C# in Unity 6.6 for the Meta Quest 2 using URP, OpenXR, Meta OpenXR, XR Interaction Toolkit, and Unity’s Input System. Using the VR template at first helped us get the Meta Quest up and running for an initial test. Our Unity project uses a musical score canvas, where we stored music quantised as semiquaver to keep the notation, editing, and the audio playback in sync. Leland SMuFL glyphs were used for the musical symbols: notes, rests, accidentals, dynamics and more. To generate the audio, we do this locally using MeltySynth with a general MIDI sound font. Each instrument the user adds has its own MIDI channel.

The Controls

For the controls, the drag and drop placement of notes was built using a One Euro pointer filter, and to make the placement easier to control, we used snapping and a preview ghost note showing where the note would be placed. We also implemented a wrist wheel to allow quicker note selection with haptic feedback. This came from feedback we received that the point and drag control could feel a bit tedious, having to always stretch out your arm.

Musical Suggestions

To assist users who may not be familiar with writing music notation, we added a recommendation feature to suggest where to place a note next, or which chord or motif block may sound good given the context of what has been placed so far. To do this, we used hardcoded musical rules such as chord compatibility, the ranges of various instruments, and voice leading rules. For the chord recommendations, we looked at common chord progressions and considered the melody present in each bar.

Voice Control and Transcription

To allow the user to sing a melody to input it onto the stave, we used a custom YIN pitch tracker, note segmentation, and quantisation of rhythms to make the output musically and visually reasonable. Our voice command system streams audio to ElevenLabs conversational AI over WebSocket. With these commands, the voice agent can write music, add and remove instruments, change the tempo, play and stop the audio, and undo changes.

Models and Animation

Each instrumental part creates a 3D musician model in the scene, animated based on actual audio playback. For our Beethoven 5 preset/example, the string players actually move their bows in response to the different rhythms when each section plays. The animations work for all kinds of instruments based on how they are played in real life: string players move their bows, guitarists strum, and singers move their mouths. Finally, each scene changes the staging, lighting, and reverb to feel immersive.

Challenges We ran into

Musical notation requires precise positioning, so we had to consider how users could accurately place notes onto a stave whilst keeping that experience easy to use. This also presented challenges with VR positioning and calibration. We faced technical difficulties setting up and running Unity as an unfamiliar platform, alongside the challenge of designing an interface that balanced functionality with simplicity. We were having so much fun adding more ideas that it was a challenge to stop and polish, we had to decide what was most important vs what was a ‘nice to have’ as we were quickly running out of time.

Accomplishments we are proud of

Our biggest accomplishment was seeing our idea finally come to life in VR. After hours of technical difficulties, lagging and moments where we weren't sure it would work, getting everything running was incredibly rewarding. We were really proud of how the virtual environment looked, and it was exciting to see everyone enjoying trying it out for themselves. Seeing something we'd worked on together become an interactive experience made all the challenges worthwhile.

What We Learned

During this Hackathon we have all learnt to use new tools. Three of us learnt to develop for a VR headset for the first time, use Unity for the first time, become more familiar using Github and develop our technical skills further. One of us learnt what musical notation was and how traditional musical notation software works and what the key problems are. We learned about designing intuitive interfaces for VR, integrating 2D musical notation and 3D assets into virtual environments. We learnt the importance not only of having an idea that solves a problem but translating that into something that is user friendly. We also gained experience in prototyping, dividing responsibilities and collaborating as a team under time pressure. Most importantly we learnt we could work well on little sleep!

What's Next?

We hope to continue this project beyond this hackathon. What you see today is our first prototype of hopefully a platform that we can make more professional. Including better visuals on the different background settings, playing alongside real life musicians through VR from the BBC symphony orchestra, Operas etc. We wish to collaborate with platforms such as https://bonzamusic.com/ to make the surround audio more immersive. We want to add collaborative composition and the option for users to export their audio and composition files.

Built With

Share this project:

Updates

Submission history