To The Cow God (and anyone else interested)
Making a microcontroller do beats is an awful thing.
Code needs to be in 2 parts;
- The "Hit"
- The "Sequence / note-part"
In 2) There is all the logic that makes up a song, consisting of lines of code divided into segments of 16
In 2) bits are set, such as BD = 1 (Play BassDrum), and also head, speaker-click etc. Once for every 16'th note
Every other "line" in 2) should also have an extra pause, how long it is makes the beat more or less shuffle.