Computer evolves to generate baroque music!


I put the word “evolve” in there because you guys like “evolution” videos, but this computer is actually learning with gradient descent!

All music in this video is either by Bach, Mozart, or Computery.

GizmoDude8128 wins a prize for figuring out that 100101 in base 2 is 37 in base 10 the fastest! (Question inspired by fixylol)

Andrej Karpathy’s blog post on RNNs:

Read more all post Computer Technology :
  1. Yaj Rovielle Reyes says

    0:28 busted

  2. Catherine matimu. says

    y a e h

  3. raymnod says

    Around 7:00 I start hearing the song

  4. Niek Lucassen says

    Impressive! Would it have picked up on harmony and chord progressions faster if all the music it learned from was transposed to the same key?

  5. thisisemchii says

    i just can't take my attention away from the latvian banner in the background 0:49 . what?

  6. Tristan Samuel says
  7. I X says

    LSTM. Long Short Term Memory. Great Project. Just a CPU and a few hours.

  8. Anar Purevsuren says

    lol sick beatz

  9. mattjfox says

    The beginning of that was rough lol got a headache. Really improved. The last Bach before you loaded before you transposed the piece to all keys and added Mozart was the best. I wish you had done the 12 transpositions and left Mozart out of it. Mozart and Bach are entirely different animals. I wish we could hear it with the 12 transpositions and just more Bach. I bet that would have been awesome.

  10. BFA Official says

    I searched up "no"

    and this was the third result, like how

  11. domino1 says


  12. Benton's Budget Animation says

    This is actually pretty surprising. At some points, it almost sounded pretty good.

  13. CollectiWise says

    Just use cloud services instead of training on your laptop. Cool work!

  14. Alex Calzino says

    I didn't notice that I could see your underwear until you pointed it out

    10IQ playz

  15. TheBoredChicken says

    Oh yaeh yaeh

    Ik this meme is dead
    Do I care?

  16. Chad Broski says

    Computer making music at 0 min: I LOVE COCAINE

  17. Gilbert TheRegular says

    Don't you dare try to rick-roll him…

  18. Sean Ordonez says


  19. George Scott says

    amazing. The tempo and note length are off slightly but all the chordage and note selection is congruent with Baroque music. Lots of Bach influence, 10:59. At 11:51 it was amazing. It sounded 100% like classical music, just with the timing off. Also that arpeggio at 12:40 was amazing.

  20. Noahmoahreal says

    It's creating it's own form of music

  21. Anony Mouse says

    “No no i’m a special snowflake”
    That has to be a meme

  22. DaniLikesMilk says

    Can you make it open source?

  23. Т1000 Youtube says

    6:35 its jevil

  24. Midi Music Forever says

    Soon I will be redundant.

  25. Algodude87 says

    1:14 congrats you made contemporary classical music

  26. Ron Whitehouse says

    Surely you must teach it musical theory.

  27. Sukhbir Sekhon says

    Still sounds better than trout mask replica which some people consider the greatest album of all time. This is from 3 years ago and auto tune has become accepted by music listeners.

  28. Barend Scholtus says

    You can start a royalty free radio channel with this 😉 solves the no-ending problem too 😉

  29. stelun56 says

    If monekeys manage to climb to the top of the highest tree in the vacinity they're still way beyond reach of the stars.:-) A turing machine can generate everything that everyone has ever uttered but it also generates a great deal more chuckle chuckle! A digital machine that generates Bach. You sound like Dr. Knowlittle taling to idiots.

  30. The boring programmer says

    At 4:03 the computer's pretty good but it ain't bad but this isn't AT ALL like Bach's music!

  31. Hao Liu says

    Somebody died in American Gods for this!

  32. corthew says

    This just does not sound like the computer learned anything.

  33. Terence Kearns says

    Next up, computer generated pr0n!

  34. Terence Kearns says

    You should outsource "taste" using a human survey and feed that back into the neural net.
    Make a binary survey for people to like or dislike pieces that the machine produces and then it uses the info to "improve" to taste.

  35. TheSpikeDevice says

    1:23 ._.

  36. Felipe Opazo says

    4:07 Was that… t h e l i c k ?

  37. NRgumeno says

    sounds much better than Yoko Ono

  38. Greg Hampikian says


  39. Siferon says

    this is just sped up music

  40. Ian Junqueira Ayres Barbosa says

    As long as there are no parallel fifths/octaves it's fine.

  41. HermanLoud says

    Sad computer noises *

  42. Jacopo Mazzei says

    Can anybody explain what "loss" is in this context?

  43. pitagorico says

    It seems to be that computer got natural tendencies to free jazz in trying to process tons of classical pieces XD but due saturation it was pushed to recognize patterns and do something about it XD

  44. RD says

    0:09 foreshadowing?

  45. Sara_DJ B says

    [more Hertz]
    [even more Hertz]

  46. I like how you fit 1:40
    "This website is so old, Some of the links are older than me"
    into a tune

  47. ar5000 says

    Part of the issue here is that the MIDI files don't communicate the relationship that each of notes have to each other. The original music was written based on the confines of a key and a time signature, but your model has no idea what an octave is. One way to improve this may be to create a training data set where each note is identified by its location on a scale. It would be "key-less" at that point, but you could adjust for whatever key you want the output to be. It might be possible to do something similar with the time signature as well.

  48. Screen2Music says

    Why didn't I discover this video when I was writing my essay for my master's degree? Part of it was arguing about how early music students should collaborate with other fields students to work on these kinds of work. That would have been such a nice way to illustrate what can be done with music and computer science! (I was completing an incomplete work by not so famous baroque composer Caldara and I would love to try and train an AI to help humans do that kind of work).
    So, thank you for sharing, I had a good time following Computery's progress 😀
    By the way, why mix Bach (late Baroque) with Mozart (Classicism) together? They have quite different styles. Wouldn't mixing with Telemann or Weiss instead provide a more homogenous data set for Computery to learn from? Or is it too difficult to find enough midi files of their music?

Leave A Reply

Your email address will not be published.