This is so cool. Security would be enhanced by having at least one more detector in a different location, so as to divide the door in sections where the sequence would depend not only on rhythm but on which half, third,
fourth, etc. of the door each note was knocked. So you would have to see the door being unlocked in order to steal the sequence, not just hear.