Set a tempo once. Then count the same bar as three beats, then as two, without letting your hands change anything.
The metronome needs JavaScript to make sound.