Gerard Kelly wrote:<br>&gt; Hi everyone, I&#39;m a python noob but I have an ambitious (for me) goal: I<br>&gt; want to make a simple program that allows you to hear combinations of<br>&gt; notes according to a vector of frequencies.<br>
&gt;<br>&gt; Does anybody know any module that allows you to input a frequency in Hz<br>&gt; and returns a sound with that frequency, and lets you do that with<br>&gt; multiple frequencies, so that you can build chords?<br>
<br><br>The recipe linked below plays sounds composed of a fundamental and a few harmonics. It requires Pygame and NumPy. <br><br><a href="http://osdir.com/ml/culture.people.kragen.hacks/2007-11/msg00000.html">http://osdir.com/ml/culture.people.kragen.hacks/2007-11/msg00000.html</a><br>
<br>It is out of date, though. I had to change &#39;Numeric&#39; to &#39;numpy&#39; and &#39;Int16&#39; to &#39;int16&#39; to get it to work.&nbsp; Moreover NumPy doesn&#39;t seem to work with Python 2.6.<br><br><br>You can also use TkSnack (<a href="http://www.speech.kth.se/snack/">http://www.speech.kth.se/snack/</a>). Check the example named &#39;notescale&#39; that comes with the module: it defines a function that receives a frequency as an input and plays a sound; there is also a graphical interface.<br>
<br><br>Regards,<br>Emmanuel<br><br>