DIYLAB
29.12.2020, 00:49
(29.12.2020, 01:07)spocintosh schrieb: [ -> ]Also zunächst mal könntest du das [A] oben links in der Ecke ausschalten, das ist nämlich recht offensichtlich 'ne zugeschaltete A-Bewertung* - die hat bei dem, was wir wollen, aber ganz dringend nix zu suchen.
(29.12.2020, 01:07)spocintosh schrieb: [ -> ]Nimm einfach das MacBook zum Abspielen, haste doch, soweit ich mich erinnere...das arbeitet auf jeden Fall richtig, selbst mit den internen Wandlern.
(29.12.2020, 05:26)spocintosh schrieb: [ -> ]Vielleicht sollte man nicht unbedingt Klark oder RTW als Referenz heranziehen, vielleicht reicht in diesem Falle ja auch angemessene Lichtorgelqualität, so wie bei allen normalen HiFi-EQs mit Analyzer.
(29.12.2020, 16:18)DIYLAB schrieb: [ -> ]Ich weiß nur noch nicht, wie ich euch das mit dem einen Taster bereitstellen soll.
void setup() {
float e, n;
int b, bands, bins, count = 0, d;
while (!Serial && (millis() <= 10000)); // Wait for Serial interface
bands = 25; // Frequency bands; (Adjust to desired value)
bins = 512; // FFT bins; (Adjust to desired value)
e = FindE(bands, bins); // Find calculated E value
if (e) { // If a value was returned continue
Serial.printf("E = %4.4f\n", e); // Print calculated E value
for (b = 0; b < bands; b++) { // Test and print the bins from the calculated E
n = pow(e, b);
d = int(n + 0.5);
Serial.printf("%4d ", count); // Print low bin
count += d - 1;
Serial.printf("%4d\n", count); // Print high bin
++count;
}
}
else {
Serial.println("Error\n"); // Error, something happened
}
}
void loop() {
}
float FindE(int bands, int bins) {
float increment = 0.1, eTest, n;
int b, count, d;
for (eTest = 1; eTest < bins; eTest += increment) { // Find E through brute force calculations
count = 0;
for (b = 0; b < bands; b++) { // Calculate full log values
n = pow(eTest, b);
d = int(n + 0.5);
count += d;
}
if (count > bins) { // We calculated over our last bin
eTest -= increment; // Revert back to previous calculation increment
increment /= 10.0; // Get a finer detailed calculation & increment a decimal point lower
}
else {
if (count == bins) // We found the correct E
return eTest; // Return calculated E
if (increment < 0.0000001) // Ran out of calculations. Return previous E. Last bin will be lower than (bins-1)
return (eTest - increment);
}
}
return 0; // Return error 0
}
Opening port
Port open
E = 1.2051
0 0
1 1
2 2
3 4
5 6
7 9
10 12
13 16
17 20
21 25
26 31
32 39
40 48
49 59
60 73
74 89
90 109
110 133
134 162
163 197
198 239
240 289
290 350
351 423
424 511
Opening port
Port open
E = 1.3936
0 0
1 1
2 3
4 6
7 10
11 15
16 22
23 32
33 46
47 66
67 94
95 133
134 187
188 262
263 366
367 511
(30.12.2020, 14:23)DIYLAB schrieb: [ -> ]...
Hat denn zufällig schon Jemand den IR-Empfänger und ne Fernbedienung besorgt?
...
(30.12.2020, 16:56)havox schrieb: [ -> ]Hoffentlich das richtige Teil ...
(30.12.2020, 18:34)hyberman schrieb: [ -> ]Einen zweiten Taster kann man nicht so ohne weiteres implantieren?