Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
CoreAudio
-
Hello everyone,
I'd like to write an app to do tone generation in real time and I know the way to do it without glitches would be through CoreAudio. After going trough some of the very old posts discussing it, it is not clear to me wether this could be possible with Pythonista 3.0. Any ideas ?
Thanks in advanceCheers
Andre -
-
I have not yet experimentd with tone generation, though it should be possible using numpy, and the audioengine. The trick would be to keep track of phase, and making sure the sample generation can be completed in the time allotted.
-
Thanks @ccc,
I had seen those examples, but what I need to do is produce sound, I managed some, the problem is as soon as I leave pythonista in the background the sound stops :(
Cheers
Andre -
HI @JonB,
I'll look into the AudioEngine, but for now I am using sound.Player() with some success.. I'm trying to determine what is the smallest wav file I can generate that will loop correctly, it's a lot of trial and error.
Cheers
Andre -
in that case, you may be interested in
https://github.com/jsbain/theraminsimHere I generated files in a round robin fashion to reduce latency. Also reducing sample rate and using numpy help.
I could never get rid of the pulsing, but it was close to real time.