Fixed note generation, now generating (mostly) properly sequentially instead of outright badly.