One can ofcourse increase the volume by adjusting master volume. But one needs ability to program volume level in order to produce sounds of different volume levels in a piece of music.
-- regards, Sarma. On Thu, Sep 13, 2012 at 5:27 AM, D.V.N.Sarma డి.వి.ఎన్.శర్మ < dvnsa...@gmail.com> wrote: > The Beep attribute of winsound module is useful. But the volume is feeble. > Is there anyway to control the loudness. > > -- > regards, > Sarma. > On Thu, Sep 13, 2012 at 4:45 AM, Alan Gauld <alan.ga...@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@python.org >> To unsubscribe or change subscription options: >> http://mail.python.org/**mailman/listinfo/tutor<http://mail.python.org/mailman/listinfo/tutor> >> > > > > > >
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor