I Have created an app that records and plays sound and I am looking for a way of showing a simple wave representation of the recorded sound, no animation is necessary, just a simple graph.
It would also be nice it is was possible to select a subset of the wave and ofcourrse even more nice playing that section aswell.
To sum up, what I'm looking for:
And to clarify a bit further of what I'm looking for:
I already did this in another application and have been struggling with it for a while ...
You would divide the number of samples the audio file has by the number of pixels you have to display the graph. This gives you a chunksize. For all the "buckets" you calculate the min and max value and display them in relation to the sample resolution used.
Can provide further examples if needed.
Regarding the graphics stuff: (I am not an iOS developer but Mac programming isn't that much different I think.) Just create a subclass of NSView ( should be UIView in iOS ) and override the drawRect method. Then just create a function which you pass an array of values for your file and draw a bunch of lines to the screen. It's no black magic here!!
This is really nothing you would need a library for! And, as another positive aspect : if you keep it generic enough you can always reuse it.
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