Re: creating status sounds in python

Numpy is very fast, very compact, and very capable if you know a bit of math.  The main point of it with sound code, however, is memory consumption.  Especially for larger buffers, the fact that Python has to use what is called boxxed types hurts you: an integer is the integer itself, plus some data saying that it's an integer.  In addition, python lists are actually arrays of pointers to the objects in the list, rather than the objects themselves--so you've got some extra data for that, too (it's possible python optimizes this case, but I don't believe so).
Numpy does a few things, most majorly storing ints as an unboxxed type.  It's also got convenient syntaxes and functions for a bunch of math operations: everything from basic stuff like find the min or max in an array through convolution, the FFT, trigonometry, and a bunch of matrix operations.  The list is so extensive that I can't recall them all without looking at the docs, but anything mathematical in python typically brings Numpy in (I use it, for example, to make .hrtf files from the MIT kemar Hrtf dataset for Libaudioverse).  The problem in terms of this discussion is that we're discussing something primarily mathematical as an abstract and qualitative thing, but the examples of how to   do this assume that you're capable and willing to use things like Numpy (and tbh Numpy will let you do stuff like trivially apply and design filters, though I haven't done that there myself).  It is worth noting that Numpy docs tend to be accessible, at least if you know LaTeX a bit.

_______________________________________________
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
  • ... AudioGames . net Forum — Development room : camlorn via Audiogames-reflector
  • ... AudioGames . net Forum — Development room : frastlin via Audiogames-reflector
  • ... AudioGames . net Forum — Development room : CAE_Jones via Audiogames-reflector
  • ... AudioGames . net Forum — Development room : camlorn via Audiogames-reflector
  • ... AudioGames . net Forum — Development room : camlorn via Audiogames-reflector
  • ... AudioGames . net Forum — Development room : camlorn via Audiogames-reflector
  • ... AudioGames . net Forum — Development room : SoundMUD via Audiogames-reflector
  • ... AudioGames . net Forum — Development room : frastlin via Audiogames-reflector
  • ... AudioGames . net Forum — Development room : SoundMUD via Audiogames-reflector
  • ... AudioGames . net Forum — Development room : frastlin via Audiogames-reflector
  • ... AudioGames . net Forum — Development room : camlorn via Audiogames-reflector
  • ... AudioGames . net Forum — Development room : frastlin via Audiogames-reflector
  • ... AudioGames . net Forum — Development room : CAE_Jones via Audiogames-reflector
  • ... AudioGames . net Forum — Development room : CAE_Jones via Audiogames-reflector
  • ... AudioGames . net Forum — Development room : CAE_Jones via Audiogames-reflector
  • ... AudioGames . net Forum — Development room : camlorn via Audiogames-reflector
  • ... AudioGames . net Forum — Development room : SoundMUD via Audiogames-reflector
  • ... AudioGames . net Forum — Development room : frastlin via Audiogames-reflector
  • ... AudioGames . net Forum — Development room : SoundMUD via Audiogames-reflector
  • ... AudioGames . net Forum — Development room : camlorn via Audiogames-reflector
  • ... AudioGames . net Forum — Development room : frastlin via Audiogames-reflector

Reply via email to