an example of pulling values from an array to generate a musical scale