INTERACT FORUM
Windows => Plug-in Development => Topic started by: PaulSinnema on April 30, 2007, 04:08:03 pm
-
Hi,
I'm trying to implement the EQ presets from Registry. I've tried to interpret the values in the Registry. I've already found some links in the Forum about this but maybe someone can shed some light on the things I found.
When I select 'Flat' from the presets I find 'OOOOOOOOOOO' (11 O's (not 0 (zero)). I deduct from this that 'O' stands for value 0. When I set a slider to the Top I get a '0' (this time it is the zero). When I set a slider to bottom I get a 'n'. Since the EQBand asks for values from 100 to -100 I deduct that '0' = 100 'O' = 0 and 'n' = -100. So far so good. Writing down the values for the letters tells me there is no escaping rounding for the values. The Table below should reflect what I'm saying does everyone agree? If this is what it is supposed to be than I realy don't understand the implementation. In any case it's not a KISS approach but maybe there is a good explanation for this
Paul.
Ascii | Char | Dev | Preset | Rounded |
48 | 0 | 31 | 100 | 100 |
49 | 1 | 30 | 96.77419355 | 97 |
50 | 2 | 29 | 93.5483871 | 94 |
51 | 3 | 28 | 90.32258065 | 90 |
52 | 4 | 27 | 87.09677419 | 87 |
53 | 5 | 26 | 83.87096774 | 84 |
54 | 6 | 25 | 80.64516129 | 81 |
55 | 7 | 24 | 77.41935484 | 77 |
56 | 8 | 23 | 74.19354839 | 74 |
57 | 9 | 22 | 70.96774194 | 71 |
58 | : | 21 | 67.74193548 | 68 |
59 | " | 20 | 64.51612903 | 65 |
60 | < | 19 | 61.29032258 | 61 |
61 | = | 18 | 58.06451613 | 58 |
62 | > | 17 | 54.83870968 | 55 |
63 | ? | 16 | 51.61290323 | 52 |
64 | @ | 15 | 48.38709677 | 48 |
65 | A | 14 | 45.16129032 | 45 |
66 | B | 13 | 41.93548387 | 42 |
67 | C | 12 | 38.70967742 | 39 |
68 | D | 11 | 35.48387097 | 35 |
69 | E | 10 | 32.25806452 | 32 |
70 | F | 9 | 29.03225806 | 29 |
71 | G | 8 | 25.80645161 | 26 |
72 | H | 7 | 22.58064516 | 23 |
73 | I | 6 | 19.35483871 | 19 |
74 | J | 5 | 16.12903226 | 16 |
75 | K | 4 | 12.90322581 | 13 |
76 | L | 3 | 9.677419355 | 10 |
77 | M | 2 | 6.451612903 | 6 |
78 | N | 1 | 3.225806452 | 3 |
79 | O | 0 | 0 | 0 |
80 | P | -1 | -3.225806452 | -3 |
81 | Q | -2 | -6.451612903 | -6 |
82 | R | -3 | -9.677419355 | -10 |
83 | S | -4 | -12.90322581 | -13 |
84 | T | -5 | -16.12903226 | -16 |
85 | U | -6 | -19.35483871 | -19 |
86 | V | -7 | -22.58064516 | -23 |
87 | W | -8 | -25.80645161 | -26 |
88 | X | -9 | -29.03225806 | -29 |
89 | Y | -10 | -32.25806452 | -32 |
90 | Z | -11 | -35.48387097 | -35 |
91 | [ | -12 | -38.70967742 | -39 |
92 | \ | -13 | -41.93548387 | -42 |
93 | ] | -14 | -45.16129032 | -45 |
94 | ^ | -15 | -48.38709677 | -48 |
95 | _ | -16 | -51.61290323 | -52 |
96 | ` | -17 | -54.83870968 | -55 |
97 | a | -18 | -58.06451613 | -58 |
98 | b | -19 | -61.29032258 | -61 |
99 | c | -20 | -64.51612903 | -65 |
100 | d | -21 | -67.74193548 | -68 |
101 | e | -22 | -70.96774194 | -71 |
102 | f | -23 | -74.19354839 | -74 |
103 | g | -24 | -77.41935484 | -77 |
104 | h | -25 | -80.64516129 | -81 |
105 | i | -26 | -83.87096774 | -84 |
106 | j | -27 | -87.09677419 | -87 |
107 | k | -28 | -90.32258065 | -90 |
108 | l | -29 | -93.5483871 | -94 |
109 | m | -30 | -96.77419355 | -97 |
110 | n | -31 | -100 | -100 |
-
That's exactly correct.
-
Hi Scot,
Yep, feared as much. Why didn't they just have the EQBand functions accept the values 31 to -31 (or even better have the Presets at 100 to -100). That would have uncomplicated things a lot. Ok, I know what to now.
Paul.