Hello Python Gurus,
I picked up a book the other day on Python programming. Python rocks!
I'm learning Python as I want to call upon it to handle some intensive
tasks from PHP/web server.
The top goal right now is automating audio editing using Python. Is it
possible? I was able to do this directl
Ah! I found this on the official website:
http://www.python.org/doc/1.5.2p2/lib/module-audioop.html
That should keep me occupied. If you think of anything interesting
however, I would be happy to know. :)
--
http://mail.python.org/mailman/listinfo/python-list
Aaron,
Thanks for sharing this!
> I think you'll find that you have to put a lot of pieces together
> to manipulate audio -- it's all there, but it's not straightforward.
The challenge of building something unique makes it more worth while.
> I did it in my "skimpygimpy" audio components, which
Thanks to Aaron, I was able to read and write audio data using
Python's wave module. Trying to better understand the data I'm looking
at, what does each element of the frame represent, and how do I
convert a sample ranging from -32,768 to 32,768 back to a frame set
like below?
When using a 16 bit
Hello all,
I don't need specific examples, but I'm trying to wrap my head around
parsing xml within xml and even further, not limiting how far someone
will nest xml. I'm already making great use of BeautifulSoup's
BeautifulStoneSoup to parse xml, but what do I do if I come across
something like thi
> You'd probably write a function that called itself to parse something
> like this. Unfortunately, I am not a recursion expert. You can read up
> on it though:
>
> http://www.freenetpages.co.uk/hp/alan.gauld/tutrecur.htmhttp://pythonjournal.cognizor.com/pyj2.2/RecursionByAJChung.html
Ah! That's t
Hello,
I'm attempting to generate a random story using xml as the document,
and lxml as the parser. I want the document to be simplified before
processing it further, and am very close to accomplishing my goal.
Below is what I have so far. Any ideas on how to move forward?
The goal:
read and edit
Stefan,
I'm honored by your response.
You are correct about the bad xml. I attempted to shorten the xml for
this example as there are other tags unrelated to this issue in the
mix. Based on your feedback, I was able to make following fully
functional code using some different techniques:
from lxm
Ah! I figured it out. I forgot that the tree is treated like a list.
The solution was to replace the element with the first
child, then use Python's insert(i,x) function to insert elements after
the first one.
lxml rocks!
--
http://mail.python.org/mailman/listinfo/python-list