Hi Jessica,
On 17/06/13 20:00, jessica peters wrote:
[snip a bunch of stuff]
Traceback (most recent call last):
File "Horsemen_soundtest.py", line 5, in (module)
snd = pygame.mixer.Sound("bach-cello-suite-1.wav")
pygame.error: Unknown WAVE data format: 0x4x
C:\Documents and settings\j
know what the numbers are for.
>
>
>
>my website: http://jahowe.com
>
>
>
>
> From: Francois Dion
>To: jessica peters
>Sent: Friday, June 14, 2013 7:31 AM
>
>Subject: Re: [Tutor] sound implementation problems
>
>
>
On Fri, Jun 14, 2013 at 12:05 PM, Jim Mooney wrote:
> On 14 June 2013 08:49, eryksun wrote:
>>
>> C:\>doskey calc=c:\python33\python -c "from cmath import *;print($*)"
>>
>> C:\>calc e**(1j*pi/3)
>> (0.5001+0.8660254037844386j)
>>
>> Cool. I totally forgot about doskey mac
On Fri, Jun 14, 2013 at 6:35 PM, Jim Mooney wrote:
> On 14 June 2013 08:49, eryksun wrote:
>>
>> C:\>python -i -c "import os; os.chdir('C:/Python33')"
>
> Well, that didn't work anyway. Got me the right directory and the
> interpeter, but I couldn't run a py file from command. Batch file didn
On 14 June 2013 08:49, eryksun wrote:
> On Thu, Jun 13, 2013 at 11:55 PM, Jim Mooney
> wrote:
>
> C:\>python -i -c "import os; os.chdir('C:/Python33')"
>
Well, that didn't work anyway. Got me the right directory and the
interpeter, but I couldn't run a py file from command. Batch file didn'
On 14 June 2013 13:35, Dave Angel wrote:
>
>> MS batch file py27.bat
>>
>> python2.7 -i -c "import os;os.chdir('c:/python27/**jimprogs');del(os)
>>
>>
> That seems rather silly. Why not
>
> --py27.bat---
> c:
> cd \python27\jimprogs
> python2.7 %$
> -
>
That's certai
On 06/14/2013 11:43 AM, Jim Mooney wrote:
On 13 June 2013 21:53, Dave Angel wrote:
On 06/13/2013 11:55 PM, Jim Mooney wrote:
Alan Gauld
This is for my own convenience on my own machine. As a former webmaster I'm
of course used to idiot-proofing anything released into the wild so it is
u
On 14 June 2013 08:49, eryksun wrote:
> C:\>doskey calc=c:\python33\python -c "from cmath import *;print($*)"
>
> C:\>calc e**(1j*pi/3)
> (0.5001+0.8660254037844386j)
>
> Cool. I totally forgot about doskey macros. Still could be useful, and it
> looks like they're still i
On Thu, Jun 13, 2013 at 11:55 PM, Jim Mooney wrote:
>
> My IDE startup script has been changed to also go to the proper working
> directory.
> BUT - Py 3.3 at the command prompt uses my 3.3 working directory, and Py 2.7
> ALSO uses the 3.3 working directory, which is not what I want, obviously.
>
On 13 June 2013 21:53, Dave Angel wrote:
> On 06/13/2013 11:55 PM, Jim Mooney wrote:
>
>> Alan Gauld
>>
>
This is for my own convenience on my own machine. As a former webmaster I'm
of course used to idiot-proofing anything released into the wild so it is
usable by everyone on every machine ;')
On 06/13/2013 11:55 PM, Jim Mooney wrote:
Alan Gauld
That's a dodgy way to solve the problem since if you change IDE or run the
program outside the IDE that startup script will likely get forgotten and
not be used. Remember you are not expected to use
an IDE for anything other than developing
Alan Gauld
That's a dodgy way to solve the problem since if you change IDE or run the
> program outside the IDE that startup script will likely get forgotten and
> not be used. Remember you are not expected to use
> an IDE for anything other than developing the code, its not
> intended to be a ru
On 13/06/13 18:56, Jim Mooney wrote:
tripped me up. If you're using an IDE or editor, mine has the
unfortunate habit of loading in its own directory, and having no option
to automatically access files from my program directory. It saves a
program into the last used directory,
This is a functi
I'd start with something simple first, to make sure you have sound output
etc. Run python interactively in the directory you have your wav file. At a
minimum, you need to import pygame, init the mixer (args are not really
needed, but I'll use what you had), set up the sound file and finally, play
i
I'll assume you're using Windows. If not, ignore this ;')
winsound on windows is Python native, much simpler, and always works. After
importing it you can type help(winsound) to see its controls. But here is
the usage for a wav file (it doesn't play mp3s) There is no rule you have
to use the pyga
On 06/13/2013 01:21 PM, jessica peters wrote:
Hi
I'm about 2 yrs into studying Python - started with "Hello World", and I'm
working with v 2.5.1 right now. The past year I've begun trying to write my own
interactive fiction. That works pretty well, but now I'm attempting to put some music
i
Hi
I'm about 2 yrs into studying Python - started with "Hello World", and I'm
working with v 2.5.1 right now. The past year I've begun trying to write my
own interactive fiction. That works pretty well, but now I'm attempting to put
some music into programs (I thought background music would b
17 matches
Mail list logo