The Beep attribute of winsound module is useful. But the volume is feeble.<div>Is there anyway to control the loudness.<br><br><div class="gmail_quote">-- <br>regards,<div>Sarma.</div></div><div class="gmail_quote">On Thu, Sep 13, 2012 at 4:45 AM, Alan Gauld <span dir="ltr"><<a href="mailto:alan.gauld@btinternet.com" target="_blank">alan.gauld@btinternet.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 12/09/12 14:53, D.V.N.Sarma డి.వి.ఎన్.శర్మ wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
My OS is Windows XP. I have Python 2.7.3(32 bit). My question is<br>
are there any commands in Python which directly allow me to produce a<br>
pure note<br>
</blockquote>
<br></div>
Have a look at the audioop, wave and winsound modules.<br>
<br>
Also PyGame has some tools that try to do platform independent audio...<br>
<br>
Access to the sound card is another matter since that is non standard and determined by the sound drivers exposed by the manufacturer. The drivers may well vary in capability depending ion the OS in use etc.<br>
<br>
You can also use ctypes for direct access to the Windows audio libraries but that's a whole lot more complicated!<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Alan G<br>
Author of the Learn to Program web site<br>
<a href="http://www.alan-g.me.uk/" target="_blank">http://www.alan-g.me.uk/</a></font></span><div class="HOEnZb"><div class="h5"><br>
<br>
______________________________<u></u>_________________<br>
Tutor maillist  -  <a href="mailto:Tutor@python.org" target="_blank">Tutor@python.org</a><br>
To unsubscribe or change subscription options:<br>
<a href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/<u></u>mailman/listinfo/tutor</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div><br><br>
</div>