如何用python写一首歌?
Posted Datehoer
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了如何用python写一首歌?相关的知识,希望对你有一定的参考价值。
又是普普通通的一天,没什么好写的。只好分享一下遇到的好的代码。
用python写歌,当然其实就是简单的纯音乐。
主要是要用到python中的wava,math,struct这三个库。
代码储存在我的GitHub库中。
https://github.com/datehoer/d...
主要还是要靠其中的数组来进行运算。
n=["4","5","3","6","2","5","1","1",
"3","4","5","3","6","2","5","1",
"5","6","5","4","5","3","6-","2","1","4","5","3",
"6","6-","2","2","5","6-","1","0"]
如何用python写一首歌
以上是关于如何用python写一首歌?的主要内容,如果未能解决你的问题,请参考以下文章