Inspiration
We took the hackathons theme 'composition' and decided to base our project around music composition. In order to differentiate our project from pre-existing products, we decided to not use the usual linear time format - instead allowing users to compose in a 2d space. For the UI element looks, we took inspiration from 'Mini Metro' and the circuit designing software 'Sebastian Lague' uses in his videos.
What it does
Users are able to place nodes on a infinitely scrolling 2d plane, where the Y value of the node dictates the pitch, and the user can draw edges between nodes in any order - regardless of horizontal or vertical position - in order to connect them together and form a melody. When placing a node, the user is able to choose the type of instrument (including a silent beat) that they're placing, this node can then be repositioned infinitely. Furthermore, the user can place large, shaded shapes which act as a filter for all the nodes inside and are able to overlap to overlay multiple filters at once. Users are also able to customise the BPM of the playback of the composed music, save and load from a json file and create multiple "universes" which act as pages for easier organisation
How we built it
We began our project by using Claude's design studio to develop a high-fidelity prototype which allowed us to discuss what we felt worked, and what we feel needed tweaking in an extremely time efficient manner, as we didn't have to spend time giving full functionality to features that didn't fit into the final product. We used Claude as an assistant throughout development to allow us to output high quality code in a time efficient manner, and used it to review pull requests to ensure that no major errors made it into the main branch. Once we had a functional product we tested it and added any polishing touches that were needed.
Challenges we ran into
Once we have the first iteration of the main project coded up, we were having audio issues on a couple of team members computers, this was resolved by some simple optimisation of both the notes and filters, reducing the computational power needed massively, and resolving these audio issues.
Accomplishments that we're proud of
We believe this is a great example of a simple DAW, which can be used to teach people how to make music, and let people with no musical experience create their own sounds and music with ease.
With the small "Advanced" feature, it lets people learn at their own pace, and move further in their creativity when they're ready, rather than having every feature thrown at them all at once, like most other DAW's.
What we learned
Making a Digital Audio Workstation from scratch is difficult, even with the support of agentic programming tools, traditional DAWs have loads of built in synths, features, effects, and plugins that take expertise greater than what we have, despite this we were still able to make
We also learned that HTML isn't the best tool for creating interactive elements such as graphs with infinite scrolling, and drag and drop elements, while possible something like a canvas is better suited for having fine grain control with how UI elements are rendered.
What's next for Musical Composition using Shapes
With this tool being web-based, we have designed it to be updatable over time, allowing more features and sounds to be brought in for people to play with.
With a lot of refinement and fixes, this website could be used as a real DAW in the future, which it is close to now with the inclusion of Sylenth and Serum preset compatibility, as well as sample uploading.
Built With
- javascript
- kotlin