Optimizing chord variation generator. Calculating scales outside the loop and doing it iteractively instead of using zip. Tested with console.time