hey - thanks for taking a look at my problem.
ok: this should be easy. i have a value that i'm controlling via a Parallax PING sonar sensor. i have it configured just the way i want it, with a value of 0-127. you guessed it - i'm using it as a midi controller, with the value of 0-127 determining the note output.
now, my problem is this: 0-127 is a chromatic scale. it contains every possible midi note. instead of a chromatic scale, i want this controller to default to a C major scale*. to do that, i must remove certain values from the 0-127 range. my data must jump smoothly from value to value, as follows:
0 C-1 2 D-1 4 E-1 5 F-1 7 G-1 9 A-1 11 B-1 12 C-0 14 D-0 16 E-0 17 F-0 19 G-0 21 A-0 23 B-0 24 C 1 ... 127 G 9
and so on. so, how does one change a linear value of 0-127 to something that occasionally skips a number?
thanks for your time and ideas.
- reason for wanting to have this controller default to C major: i use a VST plugin to transpose notes from C major to force the scale into ANY scale, major or minor.