Beat content extraction function implementation. Solve part of #99