Generates a major or minor scale, depending on user input.