Will program continue when tone(duration) is set?

Sorry if this is answered somewhere else, can't seem to find out.

If i use the tone() command and specify a duration, ie

tone(8,50,5000)

will that also 'delay' the program for the 5 seconds?
i guess, is that the same as

tone(8,50)
delay(5000)
notone(8)

I would like a tone to start, and then have an LED start to flash but have them independent and not have to calculate the delay times i'm using for the LED so that i can stop the tone...if that makes sense?

tone is not blocking, delay is blocking, look at blink without delay examples.

pantonious:
Sorry if this is answered somewhere else, can't seem to find out.

If i use the tone() command and specify a duration, ie

tone(8,50,5000)

will that also 'delay' the program for the 5 seconds?
i guess, is that the same as

tone(8,50)
delay(5000)
notone(8)

I would like a tone to start, and then have an LED start to flash but have them independent and not have to calculate the delay times i'm using for the LED so that i can stop the tone...if that makes sense?

What have you tried? Instead of just asking us, why not experiment and see what you actually get? Learning is fun - being spoon fed the answers is lazy.

LarryD:
tone is not blocking, delay is blocking, look at blink without delay examples.

Thanks for the reply, that's exactly what i was wanting. and good suggestion about the blink without delay, inside a loop i think it will work well for me.

majenko:
What have you tried? Instead of just asking us, why not experiment and see what you actually get? Learning is fun - being spoon fed the answers is lazy.

at the moment i've tried nothing, my arduino is in the mail. trying to get some basic programming done before it arrives (hopefully any day now)