wrap top-level definitions in `begin'
Revert "Fix rhythm"

This reverts commit 0e81843162aaddbf8f3637e9d69831e7966d298f, reversing
changes made to 00cfcb368816ee15d544452316cdc6ef0d28a64e.