Can someone edit the attached script so as to make it real simple, it works nicely as is but I have another use for GPIO bit 21, I want to play a cw T as soon as bit 21 goes low, one time play and no wait, play everytime bit 21 goes low. Reset to high within a second or two when low is released from bit 21 so a retrigger will be heard. I know how to play the cw T but I don't know how to make the script simpler.