Fix integer overflow in buzz

Frequency would overflow >255Hz. Period would overflow <30Hz.