isolated writeMidiFile to a utils module
isolated writeMidiFile to a utils module
started work on simple bar generator