[Numpy-discussion] appending extra items to arrays
René Bastian
rbastian at free.fr
Wed Oct 17 09:56:51 EDT 2007
Hello,
I work with numarray.zeros(n, numarray.Float64) as sound mixers ;
there are huge number of datas : 44 000 .. 192 000 /second
Operations : add, append, add & append (if the mixing begins
on the existing part of the array + append if the array has to
be prolonged)
I do never use list-appending but I concatenate a zero-array
with a fixed length (which can be given e.g. sr/10 )
This way is much more faster then appending with lists
if there are huge number of datas (for small arrays,
lists are faster, but I have never a sound of 10 samples :-)
--
René Bastian
http://www.musiques-rb.org
http://pythoneon.musiques-rb.org
More information about the NumPy-Discussion
mailing list