The thing is, TPT doesn't support creating sound **yet**
So this would be kinda hard to script; you probably couldn't do it in lua.
EDIT: As far as I know, TPT doesn't support it. But it's like Rule 34: If it exists, mniip has an unfinished writeup of it. :P
CALLED IT!
Yeah, I'm not saying it's not possible, I'm saying the TPT API and lua both (as far as I know) don't support sound creation.
So it would be impossible/near impossible to script in lua.
I just don't see why this is nessecary... seems like much annoying, little gain