在pygame上创建简单的声音

时间:2013-01-19 02:04:51

标签: python audio pygame midi

我一直试图在pygame上发出简单的哔声,但却找不到确切的方法。我知道我需要创建一个声音数组对象并将其提供给pygame.sndarray.make_sound(array)但是如何准确地制作这个数组以及如何播放它?

1 个答案:

答案 0 :(得分:0)

我没有亲自在PyGame中使用过SoundArray,但是我找到了一些能让你入门的教程。

http://lists.canonical.org/pipermail/kragen-hacks/2007-November/000465.html http://web.media.mit.edu/~nvawter/otherProduct/explanation%20Part%20I.html