Siraj Raval
This video will get you up and running with your first AI composer in just 10 lines of Python. The app can compose british folk songs after training on an existing folk dataset.
The code for this video is here:
https://github.com/llSourcell/AI_Composer
I created a Slack channel for us, sign up here:
https://wizards.herokuapp.com/
This is ‘a’ way to generate music, it’s not necessarily the absolute best way. Another attempt I really like is this one since it can generate not just monophonic music, but polyphonic music as well:
http://www.hexahedria.com/2015/08/03/composing-music-with-recurrent-neural-networks/
Tensorflow install instructions here:
https://www.tensorflow.org/versions/r0.8/get_started/os_setup.html#pip-installation
In a future video, I’ll discuss how to easily use cloud GPU computing. Likely using www.fomoro.com
I recently created a Patreon page. If you like my videos, feel free to help support my effort here!:
https://www.patreon.com/user?ty=h&u=3191693
Much more to come so please subscribe, like, and comment.
Follow me:
Twitter: https://twitter.com/sirajraval
Facebook: https://www.facebook.com/sirajology Instagram: https://www.instagram.com/sirajraval/ Instagram: https://www.instagram.com/sirajraval/
Signup for my newsletter for exciting updates in the field of AI:
https://goo.gl/FZzJ5w
Hit the Join button above to sign up to become a member of my channel for access to exclusive content!
Source
Oh Mannn – Who are you – Awesome videos 🙂
Nice one, 2-3-4……………. never finish it!
The output of this code is really nice! i have no idea if its over fitting or not …but its enjoyable music ….can i input my own midis? i tried and it didn't work so i wonder.
man u r awsm!! wht do u do fr a living??
Wow, the shortest, and yet most informative, music theory class ever!
hyper reductionist
Thank you so much for your work, this is such a big help!
@siraj How can we choose the Model over the input data ?
im very new to ML…can anyone tell me how do i make a dataset…that is….if i want to feed my program the music i made , how do i do that?
Very interesting video
Deep nueral net that reads in an image of sheet music and translate that into a data file of the music, into pdf or auto player.
I have a mistake , like this:
Traceback (most recent call last):
File "C:UsersWINDesktopMachineLearning.py", line 3, in <module>
import nottingham_util
ModuleNotFoundError: No module named 'nottingham_util'
Where can I download this?
Thank for all!
THANK YOU, SIR, FOR YOUR FREE COURSES…
Once the learning process is started, how do I stop it? Do I just need to force kill it each time?
how would I point to a local folder instead of an url, so that I can build my own music folder instead of using British songs?
>>> urllib.urlretrieve(url, "dataset.zip")
Traceback (most recent call last):
File "<pyshell#8>", line 1, in <module>
urllib.urlretrieve(url, "dataset.zip")
AttributeError: module 'urllib' has no attribute 'urlretrieve'
awesome video, thanks!
Great.
But it lacks of the configuration file in the Git repo, where is the file new_config_file.config ?
Thanks
Adding real value to YouTube!
at first these videos got me so hyped to learn it….but now I'm so disappointed by these videos because it seems to all be taken from someone else's idea/project and not even changed. If you try to customize it at all things fall apart. 🙁
I'm half convinced there's so many holes in the videos as traps to challenge you to find the answer. I really wish these tutorials weren't put together so……..sloppily. If the code is perfect at the time of release at least mention how you think it could change or whatever. My brain needs to learn.
Love your videos, your energy & your way of teaching. But the music that was made isn´t making the billboards tomorrow I am afraid. Which tells me, there is more to music then just math, all though I agree we can model it etc…
sax and violins !
lol
in python3 urllib has been deprecated to several smaller packages. for the context of the above exercise use ` import urrlib.request ' and `http://www-etud.iro.umontreal.ca/~boulanni/Nottingham.zip` as the url
Traceback (most recent call last):
File "C:/Users/User/Desktop/Pyhton/AIMusic Composer.py", line 3, in <module>
import nottingham_util
ModuleNotFoundError: No module named 'nottingham_util'……………………showing me this error…how can i solve it
If you do this now change models.py import to 'from tensorflow.python.ops import rnn, rnn_cell' . The old rnn_cell is deprecated.
www-etud.iro.umontreal.ca/¬boulanni/Nottingham.zip” This is not there at all. http://www-etud.iro.umontreal.ca/%C2%ACboulanni/Nottingham.zip
Not Found
The requested URL /¬boulanni/Nottingham.zip was not found on this server.
Apache/2.2.15 (Oracle) Server at www-etud.iro.umontreal.ca Port 80
Would you mind giving us the correct syntax and address for the nottingham.zip. Your instructs don't seem to work.
why dont u get flagged for using bittersweet symphony in the back?
Sax and Violins. That pun!
Best DT roast ever
New innovations are making it so much less demanding to make music. Nowadays, music scoring software like Dorico (https://www.dorico.com/) have even started integrating AI to make it easier and more intuitive to create music.
Dude your are one of the great tutors on youtube.
Thank you for sharing this informative video! ???
How can i create my owm datadet
For the noobs: I have been trying to run the code for 4 days. There are some things that the noobs should know before starting to code this. These are the significant problems I had:
1. You should install the required tensorflow version. Otherwise the code does not work. (The official site does not have the required version so you have to install from github.)
2. Know your directories
3. Use the required python and update your operating system. I have been trying to make this work using python 3. but turns out it is written in python 2. I have wasted a lot of time trying to figure out what was wrong. Also most of the installing did not work because my operating system was not up to date
Thanks for this great video..!! But can you make an in detail video for the same so as it helps for beginners like me 🙂
Can you speak slowly…
Its my request!!
Holy balls you have just gave me an epic quest. Quest accepted.