英文:
AttributeError: module 'pysynth' has no attribute 'make_wav'
问题
AttributeError: 模块 'pysynth' 没有 'make_wav' 属性
import pysynth as ps
test = (('c', 4), ('e', 4), ('g', 4), ('c5', -2), ('e6', 8), ('d#6', 2))
ps.make_wav(test, fn = "test.wav")
英文:
AttributeError: module 'pysynth' has no attribute 'make_wav'
import pysynth as ps
test = (('c', 4), ('e', 4), ('g', 4), ('c5', -2), ('e6', 8), ('d#6', 2))
ps.make_wav(test, fn = "test.wav")
答案1
得分: 1
pip版本的pysynth已过时。如果您通过pip安装了pysynth,请卸载它,然后从GitHub存储库安装。
pip uninstall pysynth
git clone https://github.com/mdoege/PySynth.git
cd PySynth
python3 setup.py install
英文:
pip version pysynth of pysynth is outdated. If you installed pysynth through pip, uninstall it, and install from github repository.
pip uninstall pysynth
git clone https://github.com/mdoege/PySynth.git
cd PySynth
python3 setup.py install
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论