[Tutor] Musical note on python

D.V.N.Sarma డి.వి.ఎన్.శర్మ dvnsarma at gmail.com
Thu Sep 13 01:57:53 CEST 2012

The Beep attribute of winsound module is useful. But the volume is feeble.
Is there anyway to control the loudness.

On Thu, Sep 13, 2012 at 4:45 AM, Alan Gauld <alan.gauld at btinternet.com>wrote:

> On 12/09/12 14:53, D.V.N.Sarma డి.వి.ఎన్.శర్మ wrote:
>> My OS is Windows XP. I have Python 2.7.3(32 bit). My question is
>> are there any commands in Python which directly allow me to produce a
>> pure note
> Have a look at the audioop, wave and winsound modules.
> Also PyGame has some tools that try to do platform independent audio...
> 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.
> You can also use ctypes for direct access to the Windows audio libraries
> but that's a whole lot more complicated!
> --
> Alan G
> Author of the Learn to Program web site
> http://www.alan-g.me.uk/
> ______________________________**_________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/**mailman/listinfo/tutor<http://mail.python.org/mailman/listinfo/tutor>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20120913/1e6bf16e/attachment.html>

More information about the Tutor mailing list