Welcome to EP!
What is the purpose of the latch?
When you say 'change the pitch', do you mean the repetition frequency of the clicks, or the tone of each click?
Over what sort of distance does the metronome need to be heard?
What will be used as the audio transducer? Loudspeaker? Earbud? ....?