refactor: extract queue function into module
refactor: extract midi functions into module
refactor: extract bjorklund function into module
refactor: functions to generate midi message