keyboard_gui.py 文件源码

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

项目:synthesizer 作者: irmen 项目源码 文件源码
def do_plot(self, osc):
        o = self.create_osc(osc, all_oscillators=self.oscillators)
        frames = list(itertools.islice(o, self.synth.samplerate))
        if not plot:
            self.statusbar["text"] = "Cannot plot! To plot things, you need to have matplotlib installed!"
            return
        plot.figure(figsize=(16, 4))
        plot.title("Waveform")
        plot.plot(frames)
        plot.show()
        # @todo properly integrate matplotlib in the tkinter gui because the above causes gui freeze problems
        # see http://matplotlib.org/examples/user_interfaces/embedding_in_tk2.html
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号