Stereo Image To Sound Python Examples

2015-10-05 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector


  


Stereo Image To Sound Python Examples

Hey everyone, i've finished porting some of the Stereo HiFi examples of Meijers code to python and thought i'd share it for anyone interested. Unfortunately the "Hifi" portions of the code isn't implemented, I ran into some problems as it turns out Python has some issues with unsigned ints. Regardless, all the other settings and stereo still works. The original source is licensed under a Creative Commons Attribution 4.0 International License, free to share and adapt for any purpose or use commercially provided that in all places where you describe or use the functionality you give credit to the original author and a link to his site: Copyright © Peter B.L. Meijer - http://www.seeingwithsound.com/im2sound.htm.You can download the example scripts here.The first example is a straight port of the original HiFi script and produces a wav file. The second example converts an image into a wav file, you can substitute it with what ever image you wish. The third example pipes an image file out through OpenAL using Pyglet, though the example also works with PyAL you'll still need Pyglet to load the image. The 4th example is just like the third, but is optimized with Numpy for a performance boost, it takes a bit to load because it pre-calculates all the HRTF tables when initializing, this is to cut down on the calculations needed for conversion when in regular use.

URL: http://forum.audiogames.net/viewtopic.php?pid=233839#p233839




___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Re: Image to Sound Python Examples

2015-09-30 Thread AudioGames . net Forum — Developers room : SoundMUD via Audiogames-reflector


  


Re: Image to Sound Python Examples

Interesting, thank you. I quickly tested your scripts. v1 and v2 are working. v3 couldn't because I didn't install openal yet. v4 couldn't work either because I didn't install numpy yet.

URL: http://forum.audiogames.net/viewtopic.php?pid=233356#p233356




___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Image to Sound Python Examples

2015-09-25 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector


  


Image to Sound Python Examples

Hey everyone, as some of you may or may not know, i've been porting Peter Meijers Sonifying code to Python and playing around with it. I thought i'd take a moment to share some source and examples for anyone else that wants to mess with it. The original source is licensed under a Creative Commons Attribution 4.0 International License, free to share and adapt for any purpose or use commercially provided that in all places where you describe or use the functionality you give credit to the original author and a link to his site: Copyright © Peter B.L. Meijer - http://www.seeingwithsound.com/im2sound.htm.You can download the example scripts here.The first example is a straight port of Meijers C code into python and doesn't depend on any 3rd party API's. The second example uses Pyglet to convert an external image into sound, which you can substitute for whatever you like. The third example converts an external image and pipes it directly out the sound card using OpenAL. The OpenAL segment of code works with either Pyglet or PyAL, but you'll still need pyglet to load and convert the image data.

URL: http://forum.audiogames.net/viewtopic.php?pid=232907#p232907




___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Image to Sound Python Examples

2015-09-25 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector


  


Image to Sound Python Examples

Hey everyone, as some of you may or may not know, i've been porting Peter Meijers Sonifying code to Python and playing around with it. I thought i'd take a moment to share some source and examples for anyone else that wants to mess with it. The original source is licensed under a Creative Commons Attribution 4.0 International License, free to share and adapt for any purpose or use commercially provided that in all places where you describe or use the functionality you give credit to the original author and a link to his site: Copyright © Peter B.L. Meijer - http://www.seeingwithsound.com/im2sound.htm.You can download the example scripts here.The first example is a straight port of Meijers C code into python and doesn't depend on any 3rd party API's. The second example uses Pyglet to convert an external image into sound, which you can substitute for whatever you like. The third example converts an external image and pipes it directly out the sound card using OpenAL. The OpenAL segment of code works with either Pyglet or PyAL, but you'll still need pyglet to load and convert the image data.Edit: Fixed a small bug in the 3rd example and added a 4th example script. The 4th script is the same as the 3rd, but optimized with Numpy arrays for a performance boost, you'll need Numpy 1.9.2 along with Pyglet and/or PyAL to run it.

URL: http://forum.audiogames.net/viewtopic.php?pid=232907#p232907




___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector