如何用python寫一首歌?

又是普普統統的一天,沒什麼好寫的。只好分享一下遇到的好的代碼。
用python寫歌,固然其實就是簡單的純音樂。
主要是要用到python中的wava,math,struct這三個庫。
代碼儲存在個人GitHub庫中。
https://github.com/datehoer/d...html

主要仍是要靠其中的數組來進行運算。python

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寫一首歌git

相關文章
相關標籤/搜索