RTTTL  on a piezo speaker without delay.

Hey,

sorry if this in the wrong section!

I am using the Tone.h library and the RTTTL example here: http://code.google.com/p/arduino-tone/source/browse/trunk/examples/RTTTL/RTTTL.pde?r=4

although its amazing the one problem I have is i cant use it how it is because of the use of Delay()... it kinda makes everything else very sluggish :P

so how would I go about changing this to not use delay? because I have tried thinking of using millis() and finding the time difference and carrying on the sequence after the right duration of time and then taking it out of the while loop. but I've failed, there's just too much I don't really understand in the code =(

Can anyone help me? is there already an example out there? (I have tried searching), or can someone at least point me in the right direction?

thanks

Mog13