没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
Generate Piano Instrumental Music
by Using DeepLearning
Generate Piano Music “
♪♪♪
” step by step by
experimenting Tensorflow v2.0Alpha
Haryo Akbarianto Wibowo
F
o
ll
ow
Mar 26
·
13 min read
ello everyone! Finally, I can write again on my Medium and
have free time to do some experiments on Artificial Intelligence
(AI). This time, I am going to write and share about how to generate
music notes by using Deep Learning. Unlike my previous article
about generating lyrics, this time we will generate the notes of the
musics and also generate the file (in MIDI format).
H
Photo by Marius Masalar onUnsplash
The theme of the music is Piano. This article will generate piano
notes by using a variant of Recurrent Neural Network (RNN), Gated
Recurrent Unit (GRU) with the help of Self Attention. Not only this
article will tell how to generate the notes, this article will also tell how
to generate it into a proper MIDI files and can also be played in the
computer.
This article is targeted for the one who is interested in AI, especially
who want to practice on using Deep Learning. I hope that my writing
skill will increase by publishing this article and the content benefits
you
.
There is a Github link at the end of this article if you want to know
about the complete source code. For now, I will give the python
notebook and the Colaboratory link in the repository,.
Hereistheopeningmusic
Photo by Malte Wingen onUnsplash
This embedded content is from a site that
does not comply with the Do Not Track
(DNT) setting now enabled on your browser.
Please note if you click through and view it
Sound 1: Opening Piano
(Thatmusicisgeneratedbythemodelthatwewillcreatein
thisarticle)
Outline
Introduction
Technology and Data
Pipeline
Preprocessing MIDI files
Train Model
Inference and Generate MIDI Files
Results
Conclusion
Afterwords
Introduction
One of the current hot topic in the Artificial Intelligence is how to
generate something by only using the data (unsupervised). In
Computer Vision domain, there are many researchers out there
researching some advanced techniques on generating images using
Generative Advesarial Network (GAN). For example NVIDIA create
realistic face generator by using GAN. There are also some research
on generating music by using GAN.
1.
2.
3.
4.
5.
6.
7.
8.
9.
If we talk about the valueof the music generator, it can be used to
help the musician on creating their music. It can enhance the
creativity of people. I think in the future, if there are a lot of high
attention on this field, most of musicians will create its music assisted
by AI.
This article will be focused on how to generate music by generating
sequential of notes in a music. We will know how to preprocess the
data and transform them to be input of neural network to generate
the music.
Photo by Akshar Dave onUnsplash
The experiment will also use Tensorflowv2.0(still on alpha phase)
as the Deep Learning Framework. What I want to show is to test and
use Tensorflow v2.0 by following some of their best practice. One of
the feature that I like in Tensorflow v2.0 is that it really accelerates
the training of the model by using their AutoGraph. It can be used by
defining our function using @tf.function . Moreover, there are no
“tf.session” anymore and no global initialization. These efeatures are
one of the reason that I moved from Tensorflow to PyTorch.
Tensorflow usability was not good for me. Nevertheless, In my
opinion Tensorflow v2.0 change it all and increase their usability to
make it comfortable to do some experiment.
This experiment also use selfattentionlayer. The self-attention
layer will tell us, given a sequential instance (for example in the music
note “ C D E F G”), each token will learn how much the influence on
other token to that token. Here’s some example (for an NLP task):
剩余36页未读,继续阅读
资源评论
tox33
- 粉丝: 64
- 资源: 304
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 三次样条插值的介绍-什么是三次样条插值原理
- http的一些相关介绍-对于我们来说什么是http
- 全卷积网络基于voc2012数据集简单pytorch实现
- pycharm的一些介绍-用于更好的学习python
- 基于C++的程序设计大赛天梯赛L2答案(天梯赛)
- 基于python实现的三次样条插值和均值插值法实现
- Python语言教程2-python批量图片大小处理-多文件夹
- Python语言教程1-python批量图片重命名,将后缀某几个不想要的字去除
- Space Combat Kit 太空战斗套件Unity游戏开发插件资源unitypackage C#
- Universal Device Preview 通用设备预览Unity游戏开发插件资源unitypackage
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功