This probably has nothing to do with my Photon, but every time this function is called over a webhook, the tone plays, finishes, and then SOS led, reset, then breathing led (and I can play it again). I’m guessing it’s my C++ noobishness.
This line is the problem; that sizeof function will return 60 (15 numbers x 4 bytes per number), so you're going out of bounds on your array. That line should be,
Also, Particle.function should return relatively quickly, so you might want to put the code you have in there in loop, and just set a flag in the Particle.function that you test for in loop.
Man thank you guys both so so much! My kid and I are having a blast with our Photons and one Electron. This was his desire I see my PHP/Ruby/JS background getting in the way of how I approach C++. But MAN is the Particle Ecosystem a blast to work with!