Re: [Tutor] Python + Sound

2011-02-11 Thread Corey Richardson
On 02/12/2011 02:27 AM, Steven D'Aprano wrote: > Corey Richardson wrote: >> Hello Tutors, >> >> I'm working on a small script that compresses a file, sends it through >> the telephone, and then receives and decompresses the file on the other >> end. The compression is the easy part. The transmissio

Re: [Tutor] Python + Sound

2011-02-11 Thread David Hutto
> Pardon me while I chortle :) > > Like I said, start here: http://www.google.com/search?client=ubuntu&channel=fs&q=the+modern+telephone&ie=utf-8&oe=utf-8 Steven forgot a little in his elaboration,that he isn't an expert in this: -- According to theoretical physics, the division of spatial int

Re: [Tutor] Python + Sound

2011-02-11 Thread Steven D'Aprano
Corey Richardson wrote: Hello Tutors, I'm working on a small script that compresses a file, sends it through the telephone, and then receives and decompresses the file on the other end. The compression is the easy part. The transmission is the hard part. If anyone has worked with sound before, w

Re: [Tutor] Python + Sound

2011-02-11 Thread David Hutto
There doesn't even have to be a source file, or .o and.h and.c, it just executes the command lines in it. So just a makefile in a directory and typing make at the command line executes those commands. So you can do a whole reorientation of a system with just command line s in a makefile.

Re: [Tutor] Python + Sound

2011-02-11 Thread David Hutto
and a simple makefile, as I've recently understood, or a file that executes command lines, can do that. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Python + Sound

2011-02-11 Thread David Hutto
This is how i zip the file: david@david-HP-Pavilion-dv9700-Notebook-PC:~$ sudo gzip /usr/lib/openoffice/basis-link/share/gallery/sounds/apert.wav > /home/david/examp.gz[sudo] password for david: david@david-HP-Pavilion-dv9700-Notebook-PC:~$ Then they: david@david-HP-Pavilion-dv9700-Notebook-PC:

Re: [Tutor] Python + Sound

2011-02-11 Thread David Hutto
>> I have any file, gzip it, turn it to a sound file, you have a sound file, then gzip it. and then gunzip it on >> the other end. which requires an unzip utility on the other end, and then an app to play the sound files format. Using tones to specify bit patterns, I'll work that out >> after

Re: [Tutor] Python + Sound

2011-02-11 Thread Corey Richardson
On 02/12/2011 01:26 AM, David Hutto wrote: > On Sat, Feb 12, 2011 at 1:24 AM, David Hutto wrote: >>> The point is to specifically transmit the data as sound, and then turn >>> the sound back into the gzipped file. If I were doing this for anything >>> other than my own entertainment and education,

Re: [Tutor] Python + Sound

2011-02-11 Thread David Hutto
On Sat, Feb 12, 2011 at 1:32 AM, Corey Richardson wrote: > On 02/12/2011 01:26 AM, David Hutto wrote: >> On Sat, Feb 12, 2011 at 1:24 AM, David Hutto wrote: The point is to specifically transmit the data as sound, and then turn the sound back into the gzipped file. If I were doing this

Re: [Tutor] Python + Sound

2011-02-11 Thread David Hutto
On Sat, Feb 12, 2011 at 1:24 AM, David Hutto wrote: >> The point is to specifically transmit the data as sound, and then turn >> the sound back into the gzipped file. If I were doing this for anything >> other than my own entertainment and education, I'd do it some way that >> made sense :-) >> >

Re: [Tutor] Python + Sound

2011-02-11 Thread David Hutto
> The point is to specifically transmit the data as sound, and then turn > the sound back into the gzipped file. If I were doing this for anything > other than my own entertainment and education, I'd do it some way that > made sense :-) > Do you mean just a wav file, and then send it to someone? _

Re: [Tutor] Python + Sound

2011-02-11 Thread David Hutto
On Sat, Feb 12, 2011 at 1:20 AM, Corey Richardson wrote: > On 02/12/2011 01:10 AM, David Hutto wrote: >> for some reason, if you're on linux, I wanna say use python's >> subprocess, and man pppd. also look into proc and a thread in the >> archives I did a while back. > > The point is to specifical

Re: [Tutor] Python + Sound

2011-02-11 Thread Corey Richardson
On 02/12/2011 01:10 AM, David Hutto wrote: > for some reason, if you're on linux, I wanna say use python's > subprocess, and man pppd. also look into proc and a thread in the > archives I did a while back. The point is to specifically transmit the data as sound, and then turn the sound back into t

Re: [Tutor] Python + Sound

2011-02-11 Thread David Hutto
for some reason, if you're on linux, I wanna say use python's subprocess, and man pppd. also look into proc and a thread in the archives I did a while back. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail

[Tutor] Python + Sound

2011-02-11 Thread Corey Richardson
Hello Tutors, I'm working on a small script that compresses a file, sends it through the telephone, and then receives and decompresses the file on the other end. The compression is the easy part. The transmission is the hard part. If anyone has worked with sound before, what do you recommend? I've

Re: [Tutor] process and modify a list of strings, in place

2011-02-11 Thread Mark Tolonen
"John Martinetti" wrote in message news:AANLkTi=8kvksqzpujsqwffj8yarjcwhuhawtzkzfv...@mail.gmail.com... Hello - I'm a novice programmer, not even amateur level and I need some help with developing an algorithm to process a list of strings. I hope this list is tolerant of n00bs, if not, please

Re: [Tutor] process and modify a list of strings, in place

2011-02-11 Thread John Martinetti
Steve - Dave pointed out earlier in the thread the primary mistake I made...which was that when I assembled the record to be store in the list "openPOs", I did so and made it a tuple, instead of a list. That was a mistake, I meant to make that a list and after reviewing my code, over and over aga

Re: [Tutor] process and modify a list of strings, in place

2011-02-11 Thread John Martinetti
Dave - Thanks so much for your feedback. You pointed out the biggest error that I made, I was unable to see the mistake myself, but yes...I stored the "record" in the list "openPOs" as a tuple. Doh! That's not what I meant to do. I most certainly meant to make that a list, because one of the de