The notes are arranged linearly, so that there are equal amounts of units of hertz between each note frequency based on the frequencies of notes on the piano (after all the math is done, the note chosen is the closest note to the frequency).
I picked a range of numbers. For the first one that range was zero to 1000. Then I divided 1 thousand up evenly into ten notes. 1000 divided by 10 is 100, so that makes the math easy. I used the chart on Wikipedia to find every note starting with C2 and going up 100 hertz every time. Note that music is not linear, but rather logarithmic. So as the frequencies increase linearly, the note pitches increase logarithmically, which is why the notes appear to curve and get closer and closer to each other as they increase in frequency.
The same calculations were done for the second grouping, but instead of going from 0 to 1000 hertz I went from 65.4Hz (C2) to 3951Hz (B7) and I divided by 9 notes I guess.
3951 minus 65.4 = 3885.6
3885.6 divided by 9 = 431.7
So each note in the second grouping is about 431.7Hz away from each other, not completely 100% accurate but each value is rounded to the approximate closest note.