What are you pulling those from?
...probably just to give a bit of delay between notes. I might take it out and see what difference it makes!
Try 10, 20, 50, 100.
Thanks Jack! I don't hear the difference with delay(0) and as I increase the delay the sound gets more scattered. The projects book says 'call a delay() for 10 milliseconds to give the sound some time to play', but your explanation seems to be the correct one. Given my findings and given that the delay between pulses is already defined by the frequency of the tone(), could I conclude that delay is unnecessary in this case?
probably just to give a bit of delay between notes
Quote from: Jack Christensen on Jun 15, 2014, 03:17 amprobably just to give a bit of delay between notesSo delay between the start of the tone() functions rather than between notes?
What is the disadvantage of the new note (or tone) immediately replacing the old?
Also, increasing the tone() milliseconds does not seem to make the notes change more slowly, which makes sense if the duration of the notes is limited by the time to execute the rest of the code in loop, no?
QuoteWhat is the disadvantage of the new note (or tone) immediately replacing the old?The old note would not be heard then.