The only difference between this circuit and the "analog version
" of Fairly Simple Simon is a potentiometer for tuning the speed of the patterns (it doesn't affect sequence timing, though. When there's a tempo change, best thing is to record a new sequence anyway).
The code (ledseq.pde
) is attached.