okay, but the problem is that the delays between playing different tones are necessary so that all the notes don' play at once.
The blink without delay example shows how to do something some amount of time after something else, without using delay. You need to google finite state machines and eschew delay() and for and while loops.