错误:模块 ‘pysynth’ 没有 ‘make_wav’ 属性

huangapple go评论160阅读模式
英文:

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

huangapple
  • 本文由 发表于 2023年2月18日 18:55:40
  • 转载请务必保留本文链接:https://go.coder-hub.com/75492840.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定