tags:

views:

188

answers:

2

Hi all,

i am building an music application in iphone which i have made using AVAudioPlayer,and it is playing music successfully.

But now my requirement is to generate a wave(sine/square/digital/analog) on screen as the music begins to play and stop the wave after music file ends.

How can i do this ?

+2  A: 

Perhaps you can use the core-plot project to draw your curves.

Alex Reynolds
A: 

This is a very good blog post that shows how to draw waveforms: Drawing Waveforms
It also contains hints on how to deals with data reduction for large buffers.

EDIT:
The article is written for Mac OS X but as it uses Quartz to display the waveform, it should work fine on the iPhone.

weichsel