Musical Domino Battle 🁠 🁠 🁠 🎵

1,329,439
0
Published 2022-03-16
I built a simulation in Unity to spawn dominoes that can play any MIDI file. White dominoes are solely used as connecting lines, while colored dominoes emit a sound when they are first collided with. To spice things up, I turned the whole project into a game for the patrons to try and collect as many dominoes as they can in their own individual buckets. Session and lifetime leaderboards are at the end of the video :)

If you would like your name included in the next leaderboard, here is my Patreon page: www.patreon.com/doodlechaos
Discord: discord.com/invite/7FCrWAzDY7 (I spoil what the next video will be pretty often here)
Twitter: twitter.com/doodlechaos
Official tiktok: www.tiktok.com/@doodlechaos
Shorts Channel:    / @doodlechaosshorts2905  
Instagram Shorts: www.instagram.com/doodlechaos_shorts/
Email: [email protected]

Music: Debussy - Clair de Lune

Challenges I ran into with this project:
1. When a domino line splits, it slows down since it has to spread it's force across 2 dominos instead of 1. This causes problems for music synchronization, because I had different notes playing at incorrect times. To solve this, I have a target z coordinate that moves along with the backwall. When a domino toppling surpasses this target z, I increase the drag of its rigidbody to slow it down in scale with the distance ahead it has progressed. Similarly, when a domino falls behind, I apply a rotational force of magnitude equal to the distance it has fallen behind to speed it up.
2. Sound. My intent was to create a satisfying ASMR like sound for the dominoes toppling. Turns out this is much more difficult than I anticipated. Unity couldn't handle the number of overlapping audio clips I was looking for well, so exported the collision data to a file so I knew what time every collision happened and what type the domino that collided was. Then, I used python to convert this data into audio samples of my choosing. After a bit more processing in FL studio it turned out decent, but definitely not ASMR level. I did learn a lot about audio synthesis from this. Making realistic sound for my physics simulations has always been a constraint for my videos, and I think this was a step in the right direction!

Fun fact:
This channel started with chain reaction and domino art. There's a show called Domino Masters that I worked on last year behind the scenes for about 3 months (My name is in the credits!). The first episode just came out so I made this video to celebrate the occasion.

All Comments (21)
  • @DoodleChaos
    Session and lifetime leaderboards are at the end of the video! :)
  • @enigmatic2878
    This is such a dumb yet fun way to have the hundreds of people who support you, fight. Neat.
  • @Cyber_N-7660
    Line riders, minecraft, trackmania, portal, 2d/3d visuals, photorealistic ai, and now dominoes. Cool. I wonder what's next
  • @One_Odd_Ood
    It was very tense watching the mountain of fallen dominos keep getting close to the unfallen ones and worry they were going to interfere and mess up the run.
  • @inconcision
    Wow, probably the only podium finish I'll get in life.
  • @iztaex2488
    Great Job Mark! Keep up all of your hard work! I have been here since 100k, and it has been amazing to see your channel grow!
  • @Mnnvint
    At first, you wonder who will win. Eventually, you're just worried that the giant pile of dominoes will catch up with the falling ones and ruin the music.
  • @LegoEngineer003
    Anyone who was lucky enough to have their bucket line up with the barrier heading in the same direction got a ton of points
  • @_xxmidnight5351
    The physics just make this almost impossible to get even a single domino lmao
  • Combining dominoes and MIDI files is such an unexpected but great idea! And the sound from the dominoes being a bit broken up instead of one smooth note really fits.
  • @jordkris
    I THINK THIS IS THE NEXT LEVEL OF SYNTHESIA
  • @benjones7848
    The white dominoes almost give it a vinyl feel. Very soothing
  • Sounds like multiple ring tones from multiple phones all ringing at the same time to form a song!
  • @cclarky194
    I've always wanted to know what Clair de Lune sounded like played on a bunch of office telephones
  • @trishalynn5964
    Wow, I got 8th in session and and 32nd lifetime and I just joined the Patreon this month. That's some real beginner's luck! But seriously, I really do dig the work that went into not just creating but also troubleshooting what went wrong during creation. Now off I go to search for the Domino Masters vid to see more fruits of your labor.
  • @RiftBrawl
    As a self-proclaimed classical enthusiast, i liked the Fur Elise in this one