efren.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:challenges 作者: py-study-group 项目源码 文件源码
def play(self, channels=1):
        '''Plays notes'''
        for note in self.notes:
            stream = self.audio_adapter.open(
                format=pyaudio.paFloat32,
                channels=channels,
                rate=note.rate,
                output=True
            )
            stream.write(self.volume*note.sample)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号