Re: How to import Wave files into python?

2013-12-21 Thread diesch111
On Wednesday, December 18, 2013 8:45:08 AM UTC-8, twilk...@gmail.com wrote: > How exactly do I import a .wav file and run it? > > also is it possible to run it inside a while loop if so or it just start > playing when its run? - Tom 14 Using Pyside/PyQt you can play wave fi

Re: How to import Wave files into python?

2013-12-20 Thread diesch111
On Wednesday, December 18, 2013 8:45:08 AM UTC-8, twilk...@gmail.com wrote: > How exactly do I import a .wav file and run it? > > also is it possible to run it inside a while loop if so or it just start > playing when its run? - Tom 14 QSound.play(wave_file) -- https://mail.python.org/mailman/l

Re: How to import Wave files into python?

2013-12-18 Thread Jean-Michel Pichavant
- Original Message - > How exactly do I import a .wav file and run it? > also is it possible to run it inside a while loop if so or it just > start playing when its run? - Tom 14 > -- > https://mail.python.org/mailman/listinfo/python-list I think the pygame module should be able to do so.

Re: How to import Wave files into python?

2013-12-18 Thread ishish
How exactly do I import a .wav file and run it? also is it possible to run it inside a while loop if so or it just start playing when its run? - Tom 14 -- For the GUI (Tkinter) there is tkSnack. If you want to run it from the command line you could use sox. -- https://mail.python.org/mailman/lis

How to import Wave files into python?

2013-12-18 Thread twilkins50
How exactly do I import a .wav file and run it? also is it possible to run it inside a while loop if so or it just start playing when its run? - Tom 14 -- https://mail.python.org/mailman/listinfo/python-list

Re: How to import Wave files into python?

2013-12-18 Thread Joel Goldstick
tly have you tried to import a wave file? If you have a short example of code, (python 2x or 3x) and what OS you will get probably get some help Have you googled this: "python play wav file" Looks like there is something there that might help you get started -- Joel Goldstick http:/

Re: Sine wave?

2013-11-25 Thread zaindar4
On Thursday, December 26, 2002 9:50:14 AM UTC-5, Bengt Richter wrote: > On Thu, 26 Dec 2002 12:38:56 -, cla...@lairds.com (Cameron Laird) wrote: > > >In article , Bengt Richter wrote: > > . > > . > > . > >>doing too many things. One

Re: Plot square wave

2012-01-18 Thread Peter Otten
Yigit Turgut wrote: > Problem is I get a sawtooth instead of a square wave. I know that I > need to define points between 0,1,2 time integer values to achieve > this. But I hope there is a python trick that will yield this > time,data plot to a square wave? There is no "Python

Plot square wave

2012-01-18 Thread Yigit Turgut
not white pygame.display.update() pygame.quit() if __name__ == "__main__": _func1() time,data = numpy.loadtxt('test.txt', unpack=True) print k print t print i pylab.plot(time,data) pylab.show() Problem is I get a sawtooth instead of a square wave. I know

WAVE file writing, confused about setsampwidth(n)

2011-11-24 Thread Alex van der Spek
I am confused about the Wave_write object setsampwidth(n). Is the sample width n the total sample width, i.e. for a stereo sample consisting of short (2 byte) integers; n=4 or is the sample width the number of bytes in either the left or the right channel? Regards, Alex van der Spek -- htt

Re: wave robot notes

2009-12-24 Thread Duncan Booth
Aaron Watters wrote: > I implemented a Google Wave Robot which annotates > BNF syntax rules using railroad diagram images. > I put notes about the implementation process > here for the benefit of posterity. > > http://listtree.appspot.com/firstWaveRobot > > The ro

wave robot notes

2009-12-23 Thread Aaron Watters
I implemented a Google Wave Robot which annotates BNF syntax rules using railroad diagram images. I put notes about the implementation process here for the benefit of posterity. http://listtree.appspot.com/firstWaveRobot The robot Id is whiff-gae-tutor...@appspot.com -- if you are

Re: Sine Wave Curve Fit Question

2008-01-31 Thread Paul Rubin
Helmut Jarausch <[EMAIL PROTECTED]> writes: > You're right: standard Python's math library missing the function arctan2. It's math.atan2 . -- http://mail.python.org/mailman/listinfo/python-list

Re: Sine Wave Curve Fit Question

2008-01-31 Thread Helmut Jarausch
Mikael Olofsson wrote: > Helmut Jarausch wrote: >> Your model is A*sin(omega*t+alpha) where A and alpha are sought. >> Let T=(t_1,...,t_N)' and Y=(y_1,..,y_N)' your measurements (t_i,y_i) >> ( ' denotes transposition ) >> >> First, A*sin(omega*t+alpha) = >> A*cos(alpha)*sin(omega*t) + A*sin(

Re: Sine Wave Curve Fit Question

2008-01-31 Thread Mikael Olofsson
Helmut Jarausch wrote: > Your model is A*sin(omega*t+alpha) where A and alpha are sought. > Let T=(t_1,...,t_N)' and Y=(y_1,..,y_N)' your measurements (t_i,y_i) > ( ' denotes transposition ) > > First, A*sin(omega*t+alpha) = > A*cos(alpha)*sin(omega*t) + A*sin(alpha)*cos(omega*t) = > B*si

Re: Sine Wave Curve Fit Question

2008-01-30 Thread Iain Mackay
Thanks folks - I'll have a think about both of these options. -- http://mail.python.org/mailman/listinfo/python-list

Re: Sine Wave Curve Fit Question

2008-01-30 Thread Helmut Jarausch
Iain Mackay wrote: > Python Folks > > I'm a newbie to Python and am looking for a library / function that can help > me fit a 1D data vector to a sine wave. I know the frequency of the wave, > so its really only phase and amplitude information I need. > > I can&#

Re: Sine Wave Curve Fit Question

2008-01-30 Thread marek . rocki
Iain Mackay napisal(a): > Python Folks > > I'm a newbie to Python and am looking for a library / function that can help > me fit a 1D data vector to a sine wave. I know the frequency of the wave, > so its really only phase and amplitude information I need. > > I can&#

Sine Wave Curve Fit Question

2008-01-30 Thread Iain Mackay
Python Folks I'm a newbie to Python and am looking for a library / function that can help me fit a 1D data vector to a sine wave. I know the frequency of the wave, so its really only phase and amplitude information I need. I can't find anything in the most widely known libraries

How do i record and invert a sound wave in real time using Tkinter, tkSnack and wave modules?

2007-09-04 Thread Karthik
Hi, I want to record a sound wave from a mic and at the same time invert it and play the inverted wave.My code goes as follows, however nothing is written into the E:\inverted.wav file.Thanks in advance for any help. from Tkinter import * root = Tk() import tkSnack tkSnack.initializeSnack(root) t

Re: wave

2007-02-05 Thread Gabriel Genellina
En Sat, 03 Feb 2007 17:00:39 -0300, Silver Rock <[EMAIL PROTECTED]> escribió: > supose i´ve opened a sound with the wave module: > >>>> import wave >>>> sound=wave.open(filename,'rb') > > now this is strange: > >>>> sound.getnf

wave

2007-02-03 Thread Silver Rock
hallo, supose i´ve opened a sound with the wave module: import wave sound=wave.open(filename,'rb') now this is strange: sound.getnframes() != len(sound.readframes(sound.getnframes()) True Why so? thanks in advance, Claire -- http://mail.python.org/mailman/listinfo/python-list

ANN: Skimpy CAPTCHA adds WAVE audio, and a problem

2006-12-27 Thread aaronwmail-usenet
SKIMPY CAPTCHA ADDS AUDIO, AND A PROBLEM [or what I did over xmas weekend at the inlaws -- python/web/audio experts skip to the bottom and solve my problem please.] Skimpy Gimpy CAPTCHA now supports WAVE audio output to help people with visual impairments answer Skimpy challenges. Read more

Re: Reading portions of a wave file

2005-08-16 Thread Bengt Richter
On Tue, 16 Aug 2005 02:33:36 GMT, Nadie <[EMAIL PROTECTED]> wrote: >Greeting list readers, > >I noticed that the wave read object has an *implementation dependent* >setpos(pos) method. When reading audio files, it is useful to be able >to set the position to a specific

Reading portions of a wave file

2005-08-15 Thread Nadie
Greeting list readers, I noticed that the wave read object has an *implementation dependent* setpos(pos) method. When reading audio files, it is useful to be able to set the position to a specific sample. While setpos(pos) may do this on certain implementations (haven't tried it), it

Question about 'wave' module

2005-06-03 Thread [EMAIL PROTECTED]
Hello Python World! I've been playing with the 'wave' and 'audioop' modules in the library, and I have a question. When I tried to read a "wav" file with samples in 32-bit float, I got the following error: Traceback (most recent call last): File "Play.