diff --git a/README.org b/README.org index 777881f..6bf4cc6 100644 --- a/README.org +++ b/README.org @@ -44,18 +44,43 @@ Functional groups * Misc -** Eurorack Panel Calculator +** Eurorack Panel Sizes -#+name: Eurorack Panel Calculator -#+begin_src python :results output :var hp=4 -width = (hp * 5.08) - 0.3 -u = 3 -height = (u * 44.45) - 4.8 -hole_distance = (u * 44.45) - 10.85 -print("A %dU %dhp panel is %1.2fmm x %1.2fmm" % (u, hp, height, width)) -print("The Holes are %1.2fmm appart" % hole_distance) +- 3U height = 128.55 +0/-0.15 mm +- Widths have a tolerance of +0/-0.2 mm +- Mounting holes have a vertical distance between them of 122.50 ±0.2 mm +- Widths are calculated as follows: + +#+name: Eurorack Panel Width +#+begin_src python :results value +sizes = [x for x in range(2,37) if x % 2 == 0] + +table = [] +table.append(("HP", "Width (mm)")) +for hp in sizes: + width = (hp * 5.08) - 0.3 + table.append((hp, round(width, 2))) + +return table #+end_src -#+RESULTS: Eurorack Panel Calculator -: A 3U 4hp panel is 128.55mm x 20.02mm -: The Holes are 122.50mm appart +#+RESULTS: Eurorack Panel Width +| HP | Width (mm) | +| 2 | 9.86 | +| 4 | 20.02 | +| 6 | 30.18 | +| 8 | 40.34 | +| 10 | 50.5 | +| 12 | 60.66 | +| 14 | 70.82 | +| 16 | 80.98 | +| 18 | 91.14 | +| 20 | 101.3 | +| 22 | 111.46 | +| 24 | 121.62 | +| 26 | 131.78 | +| 28 | 141.94 | +| 30 | 152.1 | +| 32 | 162.26 | +| 34 | 172.42 | +| 36 | 182.58 |