removed count while looping over notes arr in generate.bars