Datehoer的博客
我本将心向明月,奈何明月照沟渠
Datehoer的博客

当前位置:主页 > 技术分享 > 如何用python写一首歌?

如何用python写一首歌?

浏览: 作者:Datehoer 发布日期:2021-01-24 23:05:33 来源: 原创
又是普普通通的一天,没什么好写的。只好分享一下遇到的好的代码。
用python写歌,当然其实就是简单的纯音乐。
主要是要用到python中的wava,math,struct这三个库。
代码储存在我的GitHub库中。
https://github.com/datehoer/dayday/tree/main/xg

主要还是要靠其中的数组来进行运算。
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写一首歌?

版权:本文由Datehoer原创,著作权归作者所有。商业转载请联系作者获得授权,非商业转载请保留以上作者信息和原文链接本文链接:https://zjzdmc.top/jsfx/133.html。

文章推荐

热门标签

返回顶部
下面为相关推荐
说点什么吧
  • 全部评论(0
    还没有评论,快来抢沙发吧!