Using my iPhone, I would like to measure human flatulence in order to measure, quantify, and provide a statistical report based on various properties of the overall event quality. Outrageous, maybe. Fun, definitely. If I'm going to "release" an iPhone app, I want to do it in style. That's right, I want to measure farts/stinkers/toots.
So that bring's me to my question,
In order to provide an extremely accurate analysis, at a very minimum, I would need to be able to measure a propagating wave packet, specifically one that would measure the envelope of a burst, distance between adjacent peaks, momentum, and velocity.
A propagating Wave Packet
As I am no sound expert of sound analysis, I was wondering if there are development libraries available for sound analysis that would provide a robust set of tools with the qualifications as I mentioned above?
For those scope-creepers out there, your ideas are welcome, however, leave ideas only as comments, as I am seriously looking for an answer to my issue.
Note I am aware of other flatulence measuring applications, which measure purely on the volume and length of the event, but none that would provide the level of quality I am looking for in this ground/wind-breaking application.
Note 2 I'm absolutely, 100%, serious.
Take a look into FMOD and OpenAL
en.wikipedia.org/wiki/FMOD
connect.creativelabs.com/openal/default.aspx
Being written in c/c++, both of these libraries can easily be linked against standard iPhone code to be compiled against the ARM architecture of the iPhone.
They are both capable of extracting the information you require from the audio stream of the iPhone's microphone via the APIs provided by Apple.
I think there is some merit in this idea. There are already apps that measure wind speed using the iPhone microphone, and they are apparently quite accurate.
You could also incorporate face-recognition and human expression-analysis capabilities into this program in order to incorporate an environmental-impact assessment into you over all metric.
In a future release, you could measure the speed and acceleration with which other iPhone users are departing from the event instance, in order to determine an effective blast radius and strength.
Edit:
Since this is a project I think many people could get behind, I did a little more digging around. There is source code available for an iPhone application called aurioTouch, that seems to have most of what you want.
> The code uses: the AU Remote IO audio
> unit to get the audio input and copy
> it to the output the UI presents:
> - Oscilloscope view of the audio
> - time domain
> - frequency domain
> - Scrolling sonogram of the audio
There is some additional info on StackOverflow related to getting this working here:
aurioTouch sample app's audio playback/thru not working? AurioTouch & FFT for an instrument tuner
Good luck, and may the wind be at your back!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With