如何在PyGame中更改频道量后节省声音
在此之后,我想“保存”音乐。 我的代码就是这样:
from pygame import mixer
import time
mixer.init()
sound0 = mixer.Sound('Prison.mp3')
channel0 = mixer.Channel(0)
channel0.play(sound0)
channel0.set_volume(1.0, 0.0)
time.sleep(sound0.get_length())
在此之后,音乐只是在左频道中播放,在右频道中播放什么都没有播放。 现在我想保存这种音乐。谢谢
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在这种情况下,我认为您应该使用另一个软件来减少音频文件以在左通道中播放,只能
在通过遵循以下步骤:
In this case I think you should use another software to minipulate your audio file to play in left channel only
you can easily do that in audacity by following these steps: