Save and restore beat patterns