Fix beaming issues for time signatures like 5/16.

Previously, the beaming pattern always used 8th notes, instead of the
beat value from the time signature.

Bug: #53