ge150-linux 0.3.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. ge150/__init__.py +6 -0
  2. ge150/__main__.py +7 -0
  3. ge150/cli.py +257 -0
  4. ge150/cli_ai.py +71 -0
  5. ge150/cli_edit.py +457 -0
  6. ge150/cli_hw.py +66 -0
  7. ge150/cli_settings.py +120 -0
  8. ge150/cli_t3k.py +104 -0
  9. ge150/data/__init__.py +0 -0
  10. ge150/data/chevron-down.svg +1 -0
  11. ge150/data/effects.json +195 -0
  12. ge150/data/ge150.svg +22 -0
  13. ge150/data/gear.json +147 -0
  14. ge150/formats/__init__.py +1 -0
  15. ge150/formats/amp_nr.py +70 -0
  16. ge150/formats/mbf.py +185 -0
  17. ge150/formats/mo_json.py +157 -0
  18. ge150/formats/wav_ir.py +160 -0
  19. ge150/mcp_server/__init__.py +1 -0
  20. ge150/mcp_server/bridge.py +187 -0
  21. ge150/mcp_server/install.py +40 -0
  22. ge150/mcp_server/server.py +245 -0
  23. ge150/mcp_server/tools.py +494 -0
  24. ge150/model/__init__.py +1 -0
  25. ge150/model/catalog.py +118 -0
  26. ge150/model/device_state.py +214 -0
  27. ge150/model/gear.py +107 -0
  28. ge150/model/preset.py +158 -0
  29. ge150/model/settings.py +145 -0
  30. ge150/protocol/__init__.py +1 -0
  31. ge150/protocol/crc.py +28 -0
  32. ge150/protocol/framing.py +154 -0
  33. ge150/protocol/messages.py +262 -0
  34. ge150/protocol/opcodes.py +121 -0
  35. ge150/protocol/session.py +323 -0
  36. ge150/services/__init__.py +1 -0
  37. ge150/services/ai_permissions.py +76 -0
  38. ge150/services/auto_backup.py +63 -0
  39. ge150/services/backup.py +111 -0
  40. ge150/services/bulk_edit.py +276 -0
  41. ge150/services/chat_history.py +147 -0
  42. ge150/services/editor.py +303 -0
  43. ge150/services/guitars.py +255 -0
  44. ge150/services/hw_check.py +329 -0
  45. ge150/services/reader.py +126 -0
  46. ge150/services/tone3000.py +474 -0
  47. ge150/services/tone_agent.py +246 -0
  48. ge150/services/tone_ai.py +467 -0
  49. ge150/sim/__init__.py +1 -0
  50. ge150/sim/fake_device.py +250 -0
  51. ge150/sim/sim_transport.py +63 -0
  52. ge150/ui/__init__.py +1 -0
  53. ge150/ui/ab_compare.py +105 -0
  54. ge150/ui/about_dialog.py +246 -0
  55. ge150/ui/ai_chat.py +682 -0
  56. ge150/ui/ai_host.py +104 -0
  57. ge150/ui/ai_options.py +136 -0
  58. ge150/ui/ai_panel.py +23 -0
  59. ge150/ui/ai_permissions_dialog.py +161 -0
  60. ge150/ui/amp_art.py +549 -0
  61. ge150/ui/app.py +76 -0
  62. ge150/ui/art_spec.py +298 -0
  63. ge150/ui/assistant_page.py +360 -0
  64. ge150/ui/bridge.py +34 -0
  65. ge150/ui/bulk_form.py +416 -0
  66. ge150/ui/bulk_review.py +352 -0
  67. ge150/ui/chain_view.py +474 -0
  68. ge150/ui/chat_history.py +222 -0
  69. ge150/ui/dialogs.py +221 -0
  70. ge150/ui/gear_art.py +515 -0
  71. ge150/ui/gear_view.py +134 -0
  72. ge150/ui/guitar_dialog.py +397 -0
  73. ge150/ui/icons.py +63 -0
  74. ge150/ui/knob.py +211 -0
  75. ge150/ui/main_window.py +537 -0
  76. ge150/ui/markdown.py +55 -0
  77. ge150/ui/mic_view.py +392 -0
  78. ge150/ui/model_gallery.py +199 -0
  79. ge150/ui/module_editor.py +303 -0
  80. ge150/ui/preset_list.py +133 -0
  81. ge150/ui/settings_dialog.py +149 -0
  82. ge150/ui/theme.py +319 -0
  83. ge150/ui/tone3000_loader.py +102 -0
  84. ge150/ui/tone3000_page.py +325 -0
  85. ge150/ui/tone_detail.py +151 -0
  86. ge150/ui/worker.py +84 -0
  87. ge150/ui/working.py +117 -0
  88. ge150/usb/__init__.py +19 -0
  89. ge150/usb/device_ids.py +28 -0
  90. ge150/usb/hidraw_transport.py +122 -0
  91. ge150/usb/transport.py +33 -0
  92. ge150/usb/usb_transport.py +83 -0
  93. ge150_linux-0.3.0.dist-info/METADATA +252 -0
  94. ge150_linux-0.3.0.dist-info/RECORD +98 -0
  95. ge150_linux-0.3.0.dist-info/WHEEL +5 -0
  96. ge150_linux-0.3.0.dist-info/entry_points.txt +4 -0
  97. ge150_linux-0.3.0.dist-info/licenses/LICENSE +21 -0
  98. ge150_linux-0.3.0.dist-info/top_level.txt +1 -0
ge150/data/ge150.svg ADDED
@@ -0,0 +1,22 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256">
2
+ <defs>
3
+ <linearGradient id="tile" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#2c323b"/><stop offset="1" stop-color="#14171c"/></linearGradient>
4
+ </defs>
5
+ <rect x="8" y="8" width="240" height="240" rx="56" fill="url(#tile)"/>
6
+ <path d="M 76 128 H 180" stroke="#5b636e" stroke-width="8"/>
7
+ <!-- three pedals of the signal chain, the middle one selected -->
8
+ <g>
9
+ <rect x="28" y="92" width="52" height="76" rx="10" fill="#3a404a"/>
10
+ <circle cx="54" cy="112" r="8" fill="#15181d"/><circle cx="54" cy="150" r="9" fill="#9aa1a9"/>
11
+ </g>
12
+ <g>
13
+ <rect x="94" y="72" width="68" height="112" rx="13" fill="#ff8a1f"/>
14
+ <circle cx="114" cy="98" r="9" fill="#15181d"/><circle cx="142" cy="98" r="9" fill="#15181d"/>
15
+ <circle cx="128" cy="122" r="5" fill="#fff4e6"/>
16
+ <circle cx="128" cy="156" r="14" fill="#f4f4f4"/><circle cx="128" cy="156" r="8" fill="#c9ced3"/>
17
+ </g>
18
+ <g>
19
+ <rect x="176" y="92" width="52" height="76" rx="10" fill="#3a404a"/>
20
+ <circle cx="202" cy="112" r="8" fill="#15181d"/><circle cx="202" cy="150" r="9" fill="#9aa1a9"/>
21
+ </g>
22
+ </svg>
ge150/data/gear.json ADDED
@@ -0,0 +1,147 @@
1
+ {
2
+ "source": "tools/build_gear.py (origins from the GE150 manual)",
3
+ "gear": {
4
+ "crybaby": {"name": "Dunlop Cry Baby GCB95", "kind": "wah", "body": "#161616", "text": "#f2f2f2", "knob": "#151515", "query": "Dunlop Cry Baby wah"},
5
+ "crybaby535": {"name": "Dunlop Cry Baby 535Q", "kind": "wah", "body": "#161616", "text": "#f2f2f2", "knob": "#c8102e", "query": "Cry Baby wah pedal"},
6
+ "mooer_wah": {"name": "Mooer @Wah", "kind": "micro", "body": "#6fb6ea", "text": "#1a1a1a", "knob": "#151515", "query": "", "big_knob": "#f2f2f2"},
7
+ "mooer_envelope": {"name": "Mooer Envelope", "kind": "micro", "body": "#e6e4c2", "text": "#1a1a1a", "knob": "#151515", "query": ""},
8
+ "mooer_redkid": {"name": "Mooer Red Kid Talkwah", "kind": "wah", "body": "#c47d62", "text": "#8f4f3b", "knob": "#151515", "query": "Mooer Red Kid Talkwah", "art": {"aspect": 0.6, "radius": 0.1, "parts": [{"rect": [0.0, 0.0, 1.0, 1.0], "fill": "copper", "radius": 0.1, "brushed": true}, {"rect": [0.17, 0.07, 0.66, 0.34], "fill": "#c98a70", "stroke": "#8f4f3b", "width": 0.01, "radius": 0.06, "shade": true}, {"rect": [0.25, 0.115, 0.5, 0.25], "fill": "#161616", "stroke": "#2b2b2b", "width": 0.008, "radius": 0.05}, {"rect": [0.17, 0.59, 0.66, 0.34], "fill": "#c98a70", "stroke": "#8f4f3b", "width": 0.01, "radius": 0.06, "shade": true}, {"rect": [0.25, 0.635, 0.5, 0.25], "fill": "#161616", "stroke": "#2b2b2b", "width": 0.008, "radius": 0.05}, {"polyline": [[0.08, 0.44], [0.08, 0.05], [0.92, 0.05], [0.92, 0.44]], "stroke": "steel", "width": 0.06}, {"polyline": [[0.08, 0.56], [0.08, 0.95], [0.92, 0.95], [0.92, 0.56]], "stroke": "steel", "width": 0.06}], "texts": [{"box": [0.24, 0.455, 0.52, 0.08], "colour": "#8f4f3b"}]}},
9
+ "mooer_touchwah": {"name": "Touch wah", "kind": "micro", "body": "#e0661b", "text": "#f2f2f2", "knob": "#151515", "query": "", "generic": true},
10
+ "mooer_yellowcomp": {"name": "Mooer Yellow Comp", "kind": "micro", "body": "#f2c230", "text": "#1a1a1a", "knob": "#151515", "query": ""},
11
+ "mooer_bluecomp": {"name": "Mooer Blue Comp", "kind": "micro", "body": "#4f9fe0", "text": "#f2f2f2", "knob": "#151515", "query": "", "big_knob": "#f2f2f2"},
12
+ "tubedriver": {"name": "B.K. Butler Tube Driver", "kind": "stomp", "body": "#e4dfcc", "text": "#d9d9d9", "knob": "#d0d0d0", "query": "Tube Driver overdrive", "knob_style": "chrome", "art": {"aspect": 0.72, "radius": 0.05, "parts": [{"rect": [0.0, 0.9, 1.0, 0.1], "fill": "#151515", "radius": 0.03}, {"line": [0.06, 0.15, 0.94, 0.15], "stroke": "#1a1a1a", "width": 0.006}, {"line": [0.06, 0.52, 0.94, 0.52], "stroke": "#1a1a1a", "width": 0.008}, {"line": [0.06, 0.7, 0.94, 0.7], "stroke": "#1a1a1a", "width": 0.008}, {"line": [0.36, 0.475, 0.64, 0.475], "stroke": "#1a1a1a", "width": 0.006}], "knobs": [{"param": "VOLUME", "label": "OUT LEVEL", "at": [0.16, 0.36], "r": 0.065, "style": "yellow", "label_colour": "#1a1a1a"}, {"param": "TREBLE", "label": "HI", "at": [0.39, 0.36], "r": 0.065, "style": "yellow", "label_colour": "#1a1a1a"}, {"param": "TONE", "label": "LO", "at": [0.61, 0.36], "r": 0.065, "style": "yellow", "label_colour": "#1a1a1a"}, {"param": "GAIN", "label": "TUBE DRIVE", "at": [0.84, 0.36], "r": 0.065, "style": "yellow", "label_colour": "#1a1a1a"}], "leds": [{"at": [0.3, 0.24], "r": 0.016, "colour": "green"}, {"at": [0.7, 0.24], "r": 0.016}], "texts": [{"text": "OUT ▲ ▼ IN", "box": [0.2, 0.07, 0.6, 0.05], "colour": "#1a1a1a"}, {"text": "POWER", "box": [0.2, 0.17, 0.2, 0.035], "colour": "#1a1a1a"}, {"text": "DRIVE", "box": [0.6, 0.17, 0.2, 0.035], "colour": "#1a1a1a"}, {"box": [0.12, 0.54, 0.76, 0.14], "colour": "#111111", "stretch": 0.85}, {"text": "REAL TUBE OVERDRIVE", "box": [0.15, 0.72, 0.7, 0.04], "colour": "#1a1a1a"}], "switches": [{"type": "round", "at": [0.5, 0.82], "r": 0.045}]}},
13
+ "ts808": {"name": "Ibanez TS808 Tube Screamer", "kind": "stomp", "body": "#4fb38a", "text": "#f4f1e1", "knob": "#151515", "query": "Ibanez Tube Screamer TS808", "art": {"aspect": 0.6, "jacks": 0.5, "parts": [{"line": [0.04, 0.46, 0.96, 0.46], "stroke": "#2f7a5c", "width": 0.012}, {"rect": [0.06, 0.49, 0.88, 0.48], "fill": "#58bd93", "radius": 0.04, "shade": true, "stroke": "#2f7a5c", "width": 0.01}, {"rect": [0.1, 0.52, 0.8, 0.42], "stroke": "#f1ecd6", "width": 0.008, "radius": 0.02}], "knobs": [{"param": "GAIN", "label": "OVERDRIVE", "at": [0.29, 0.15], "r": 0.115, "label_colour": "#f1ecd6"}, {"param": "VOLUME", "label": "LEVEL", "at": [0.71, 0.15], "r": 0.115, "label_colour": "#f1ecd6"}, {"param": "TONE", "label": "TONE", "at": [0.5, 0.32], "r": 0.1, "label_colour": "#f1ecd6", "label_at": "above"}], "leds": [{"at": [0.5, 0.05], "r": 0.022}], "texts": [{"box": [0.14, 0.55, 0.72, 0.1], "colour": "#f1ecd6", "stretch": 0.72}, {"text": "OVERDRIVE", "box": [0.3, 0.655, 0.4, 0.035], "colour": "#f1ecd6", "style": "light"}], "switches": [{"type": "rect", "at": [0.5, 0.82], "size": [0.32, 0.14]}]}},
14
+ "mooer_pureboost": {"name": "Mooer Pure Boost", "kind": "micro", "body": "#f2e6e0", "text": "#1a1a1a", "knob": "#151515", "query": ""},
15
+ "mooer_flexboost": {"name": "Mooer Flex Boost", "kind": "micro", "body": "#f2df1a", "text": "#1a1a1a", "knob": "#151515", "query": ""},
16
+ "directdrive": {"name": "Barber Direct Drive", "kind": "stomp", "body": "#1d2f5e", "text": "#f2f2f2", "knob": "#151515", "query": "Barber Direct Drive", "accent": "#c0262d", "knob_style": "chrome", "art": {"aspect": 0.6, "jacks": 0.62, "parts": [{"poly": [[0.0, 0.5], [1.0, 0.37], [1.0, 0.62], [0.0, 0.75]], "fill": "#c0262d"}, {"ellipse": [0.5, 0.86, 0.15, 0.15], "stroke": "#8fa6d8", "width": 0.01}], "knobs": [{"param": "VOLUME", "label": "VOLUME", "at": [0.2, 0.13], "r": 0.085, "style": "chrome"}, {"param": "TONE", "label": "TONE", "at": [0.5, 0.13], "r": 0.085, "style": "chrome"}, {"param": "GAIN", "label": "DRIVE", "at": [0.8, 0.13], "r": 0.085, "style": "chrome"}], "leds": [{"at": [0.5, 0.035], "r": 0.02}], "texts": [{"box": [0.08, 0.38, 0.84, 0.24], "colour": "#e9f0fb", "style": "italic", "outline": "#14224a"}], "switches": [{"type": "round", "at": [0.5, 0.86], "r": 0.07}]}},
17
+ "rat": {"name": "ProCo RAT", "kind": "stomp", "body": "#141414", "text": "#f2f2f2", "knob": "#151515", "query": "ProCo RAT pedal", "art": {"aspect": 0.62, "jacks": 0.45, "parts": [{"rect": [0.0, 0.0, 1.0, 0.36], "fill": "#262626", "radius": 0.06}, {"line": [0.02, 0.36, 0.98, 0.36], "stroke": "#0a0a0a", "width": 0.012}, {"rect": [0.12, 0.42, 0.76, 0.15], "stroke": "#f2f2f2", "width": 0.012, "radius": 0.025}], "knobs": [{"param": "GAIN", "label": "DISTORTION", "at": [0.2, 0.2], "r": 0.1, "style": "knurled", "label_at": "above"}, {"param": "TONE", "label": "FILTER", "at": [0.5, 0.2], "r": 0.1, "style": "knurled", "label_at": "above"}, {"param": "VOLUME", "label": "VOLUME", "at": [0.8, 0.2], "r": 0.1, "style": "knurled", "label_at": "above"}], "leds": [{"at": [0.88, 0.64], "r": 0.02}], "texts": [{"box": [0.16, 0.44, 0.68, 0.11], "colour": "#f2f2f2"}], "switches": [{"type": "round", "at": [0.5, 0.82], "r": 0.075}]}},
18
+ "fuzzface": {"name": "Dunlop Fuzz Face", "kind": "round", "body": "#8e959b", "text": "#1a1a1a", "knob": "#151515", "query": "Fuzz Face pedal", "art": {"aspect": 1.0, "shape": "round", "parts": [{"poly": [[0.43, 0.42], [0.57, 0.42], [0.7, 0.78], [0.3, 0.78]], "fill": "#161616"}, {"rect": [0.3, 0.8, 0.4, 0.06], "fill": "#d9d9d9", "stroke": "#151515", "width": 0.006, "radius": 0.01}], "knobs": [{"param": "VOLUME", "label": "VOLUME", "at": [0.22, 0.33], "r": 0.075, "label_colour": "#202020"}, {"param": "GAIN", "label": "FUZZ", "at": [0.78, 0.33], "r": 0.075, "label_colour": "#202020"}], "texts": [{"box": [0.27, 0.17, 0.46, 0.1], "colour": "#3a3d40", "style": "serif"}], "switches": [{"type": "round", "at": [0.5, 0.64], "r": 0.06}]}},
19
+ "bigmuff": {"name": "Electro-Harmonix Big Muff Pi", "kind": "bigbox", "body": "#d5d7d9", "text": "#c41e1e", "knob": "#151515", "query": "Big Muff Pi pedal", "art": {"aspect": 0.8, "parts": [{"rect": [0.04, 0.04, 0.92, 0.92], "stroke": "#151515", "width": 0.012, "radius": 0.02}, {"line": [0.04, 0.3, 0.96, 0.3], "stroke": "#151515", "width": 0.008}], "knobs": [{"param": "VOLUME", "label": "VOLUME", "at": [0.2, 0.16], "r": 0.075, "label_colour": "#151515", "label_at": "above"}, {"param": "TONE", "label": "TONE", "at": [0.5, 0.16], "r": 0.075, "label_colour": "#151515", "label_at": "above"}, {"param": "GAIN", "label": "SUSTAIN", "at": [0.8, 0.16], "r": 0.075, "label_colour": "#151515", "label_at": "above"}], "texts": [{"box": [0.1, 0.33, 0.8, 0.17], "colour": "#c41e1e", "outline": "#151515"}, {"text": "π", "box": [0.4, 0.5, 0.2, 0.16], "colour": "#c41e1e", "outline": "#151515", "upper": false}], "leds": [{"at": [0.76, 0.66], "r": 0.018}], "switches": [{"type": "round", "at": [0.5, 0.81], "r": 0.075}]}},
20
+ "mt2": {"name": "BOSS MT-2 Metal Zone", "kind": "boss", "body": "#2c2c2c", "text": "#ff7a1a", "knob": "#151515", "query": "Boss MT-2 Metal Zone", "art": {"aspect": 0.58, "jacks": 0.42, "radius": 0.05, "parts": [{"rect": [0.04, 0.03, 0.92, 0.31], "fill": "#0e0e0e", "radius": 0.03}, {"rect": [0.06, 0.49, 0.88, 0.48], "fill": "#3a3a3a", "radius": 0.03, "shade": true}, {"line": [0.12, 0.57, 0.88, 0.57], "stroke": "#2a2a2a", "width": 0.006}, {"line": [0.12, 0.62, 0.88, 0.62], "stroke": "#2a2a2a", "width": 0.006}, {"line": [0.12, 0.67, 0.88, 0.67], "stroke": "#2a2a2a", "width": 0.006}, {"rect": [0.3, 0.84, 0.4, 0.07], "fill": "#2e2e2e", "stroke": "#555555", "width": 0.006, "radius": 0.01}], "knobs": [{"param": "VOLUME", "label": "LEVEL", "at": [0.15, 0.17], "r": 0.075, "label_at": "above"}, {"param": "TONE", "label": "HIGH/LOW", "at": [0.38, 0.19], "r": 0.075, "label_at": "above"}, {"param": "MID", "label": "MIDDLE", "at": [0.62, 0.19], "r": 0.075, "label_at": "above"}, {"param": "GAIN", "label": "DIST", "at": [0.85, 0.17], "r": 0.075, "label_at": "above"}], "leds": [{"at": [0.5, 0.06], "r": 0.02}], "texts": [{"text": "◄ OUTPUT", "box": [0.08, 0.36, 0.32, 0.04], "colour": "#ff7a1a"}, {"text": "INPUT ◄", "box": [0.6, 0.36, 0.32, 0.04], "colour": "#ff7a1a"}, {"box": [0.18, 0.415, 0.64, 0.065], "colour": "#ff7a1a", "style": "italic"}]}},
21
+ "metalmaster": {"name": "DigiTech Metal Master", "kind": "stomp", "body": "#1b1b1b", "text": "#e2231a", "knob": "#151515", "query": "DigiTech Metal Master", "art": {"aspect": 0.62, "jacks": 0.33, "parts": [{"rect": [0.04, 0.03, 0.92, 0.28], "fill": "#101010", "radius": 0.04}, {"rect": [0.75, 0.06, 0.18, 0.22], "fill": "#f2f2f2", "radius": 0.02}, {"rect": [0.06, 0.38, 0.88, 0.14], "fill": "#f2f2f2", "stroke": "#111111", "width": 0.008, "radius": 0.015}], "knobs": [{"param": "VOLUME", "label": "LEVEL", "at": [0.15, 0.15], "r": 0.07, "style": "silver"}, {"param": "BASS", "label": "LOW", "at": [0.37, 0.15], "r": 0.07, "style": "silver"}, {"param": "TONE", "label": "HI", "at": [0.59, 0.15], "r": 0.07, "style": "silver"}, {"param": "GAIN", "label": "MORPH", "at": [0.84, 0.15], "r": 0.07, "style": "silver", "label_colour": "#111111"}], "leds": [{"at": [0.5, 0.345], "r": 0.018}], "texts": [{"box": [0.1, 0.39, 0.8, 0.075], "colour": "#111111"}, {"text": "HEAVY METAL DISTORTION", "box": [0.14, 0.47, 0.72, 0.035], "colour": "#111111"}], "switches": [{"type": "treadle", "at": [0.5, 0.77], "size": [0.84, 0.4]}]}},
22
+ "ocd": {"name": "Fulltone OCD", "kind": "stomp", "body": "#efebdf", "text": "#1a1a1a", "knob": "#151515", "query": "OCD overdrive pedal", "art": {"aspect": 0.6, "jacks": 0.6, "knobs": [{"param": "VOLUME", "label": "VOLUME", "at": [0.26, 0.16], "r": 0.11, "style": "cream", "label_colour": "#1a1a1a"}, {"param": "GAIN", "label": "DRIVE", "at": [0.74, 0.16], "r": 0.11, "style": "cream", "label_colour": "#1a1a1a"}, {"param": "TONE", "label": "TONE", "at": [0.5, 0.33], "r": 0.1, "style": "cream", "label_colour": "#1a1a1a"}], "toggles": [{"at": [0.5, 0.08], "r": 0.025}], "texts": [{"box": [0.1, 0.48, 0.8, 0.15], "colour": "#161616", "style": "italic"}], "leds": [{"at": [0.5, 0.7], "r": 0.02}], "switches": [{"type": "round", "at": [0.5, 0.84], "r": 0.075}]}},
23
+ "timmy": {"name": "Paul Cochrane Timmy", "kind": "stomp", "body": "#1e78d0", "text": "#1a1a1a", "knob": "#151515", "query": "Timmy overdrive", "art": {"aspect": 0.55, "jacks": 0.5, "knobs": [{"param": "VOLUME", "label": "VOLUME", "at": [0.26, 0.12], "r": 0.1}, {"param": "GAIN", "label": "GAIN", "at": [0.74, 0.12], "r": 0.1}, {"param": "BASS", "label": "BASS", "at": [0.26, 0.32], "r": 0.08}, {"param": "TONE", "label": "TREBLE", "at": [0.74, 0.32], "r": 0.08}], "toggles": [{"at": [0.5, 0.22], "r": 0.025}], "texts": [{"box": [0.15, 0.48, 0.7, 0.14], "colour": "#f2f2f2", "style": "script", "upper": false}], "leds": [{"at": [0.5, 0.67], "r": 0.02}], "switches": [{"type": "round", "at": [0.5, 0.84], "r": 0.09}]}},
24
+ "fulldrive": {"name": "Fulltone Fulldrive 2", "kind": "stomp", "body": "#1f74d8", "text": "#f2f2f2", "knob": "#151515", "query": "Fulltone Fulldrive", "knob_style": "chrome", "art": {"aspect": 1.05, "jacks": 0.4, "knobs": [{"param": "VOLUME", "label": "VOLUME", "at": [0.14, 0.2], "r": 0.075}, {"param": "TONE", "label": "TONE", "at": [0.37, 0.2], "r": 0.075}, {"param": "GAIN", "label": "OVERDRIVE", "at": [0.63, 0.2], "r": 0.075}, {"param": "BOOST", "label": "BOOST", "at": [0.86, 0.2], "r": 0.075}], "toggles": [{"at": [0.5, 0.12], "r": 0.022}], "texts": [{"box": [0.14, 0.46, 0.72, 0.15], "colour": "#f2f2f2", "style": "italic", "outline": "#0d3f7a"}], "leds": [{"at": [0.2, 0.68], "r": 0.016, "colour": "green"}, {"at": [0.8, 0.68], "r": 0.016}], "switches": [{"type": "round", "at": [0.2, 0.83], "r": 0.06}, {"type": "round", "at": [0.8, 0.83], "r": 0.06}]}},
25
+ "shredmaster": {"name": "Marshall ShredMaster", "kind": "stomp", "body": "#151515", "text": "#d4af37", "knob": "#151515", "query": "Marshall Shred Master", "shape": "slope", "art": {"aspect": 0.86, "jacks": 0.5, "parts": [{"rect": [0.0, 0.0, 1.0, 0.3], "fill": "#262626", "radius": 0.05}, {"line": [0.04, 0.29, 0.25, 0.29], "stroke": "#d4af37", "width": 0.008}, {"line": [0.75, 0.29, 0.96, 0.29], "stroke": "#d4af37", "width": 0.008}], "knobs": [{"param": "GAIN", "label": "GAIN", "at": [0.14, 0.11], "r": 0.06, "style": "knurled"}, {"param": "BASS", "label": "BASS", "at": [0.32, 0.11], "r": 0.06, "style": "knurled"}, {"param": "TONE", "label": "CONTOUR", "at": [0.5, 0.11], "r": 0.06, "style": "knurled"}, {"param": "TREBLE", "label": "TREBLE", "at": [0.68, 0.11], "r": 0.06, "style": "knurled"}, {"param": "VOLUME", "label": "VOLUME", "at": [0.86, 0.11], "r": 0.06, "style": "knurled"}], "texts": [{"box": [0.26, 0.245, 0.48, 0.09], "colour": "#d4af37", "style": "italic", "outline": "#000000"}], "leds": [{"at": [0.5, 0.42], "r": 0.012}], "switches": [{"type": "round", "at": [0.5, 0.55], "r": 0.05}]}},
26
+ "bbpre": {"name": "Xotic BB Preamp", "kind": "stomp", "body": "#b8693a", "text": "#1a1a1a", "knob": "#151515", "query": "Xotic BB Preamp", "art": {"aspect": 0.6, "jacks": 0.55, "radius": 0.05, "parts": [{"rect": [0.05, 0.03, 0.9, 0.94], "stroke": "#f0c9a6", "width": 0.008, "radius": 0.04}], "knobs": [{"param": "VOLUME", "label": "Volume", "at": [0.27, 0.15], "r": 0.105, "label_colour": "#f6e0c8"}, {"param": "GAIN", "label": "Gain", "at": [0.73, 0.15], "r": 0.105, "label_colour": "#f6e0c8"}, {"param": "TREBLE", "label": "Treble", "at": [0.27, 0.36], "r": 0.09, "label_colour": "#f6e0c8"}, {"param": "TONE", "label": "Bass", "at": [0.73, 0.36], "r": 0.09, "label_colour": "#f6e0c8"}], "texts": [{"box": [0.18, 0.52, 0.64, 0.11], "colour": "#f6e0c8", "style": "italic", "outline": "#5a2a10"}], "leds": [{"at": [0.5, 0.68], "r": 0.02}], "switches": [{"type": "round", "at": [0.5, 0.83], "r": 0.075}]}},
27
+ "bbplus": {"name": "Xotic BB Plus", "kind": "stomp", "body": "#a8742a", "text": "#1a1a1a", "knob": "#151515", "query": "Xotic BB", "art": {"aspect": 1.0, "jacks": 0.45, "knobs": [{"param": "VOLUME", "label": "VOL", "at": [0.15, 0.14], "r": 0.065, "label_colour": "#2b1b08"}, {"param": "GAIN", "label": "GAIN", "at": [0.35, 0.14], "r": 0.065, "label_colour": "#2b1b08"}, {"param": "TONE", "label": "TONE", "at": [0.25, 0.33], "r": 0.055, "label_colour": "#2b1b08"}, {"param": "VOLUME", "label": "VOL", "at": [0.65, 0.14], "r": 0.065, "label_colour": "#2b1b08"}, {"param": "GAIN", "label": "GAIN", "at": [0.85, 0.14], "r": 0.065, "label_colour": "#2b1b08"}, {"param": "TONE", "label": "TONE", "at": [0.75, 0.33], "r": 0.055, "label_colour": "#2b1b08"}], "texts": [{"box": [0.25, 0.47, 0.5, 0.1], "colour": "#2b1b08"}], "leds": [{"at": [0.25, 0.63], "r": 0.018}, {"at": [0.75, 0.63], "r": 0.018}], "switches": [{"type": "round", "at": [0.25, 0.81], "r": 0.07}, {"type": "round", "at": [0.75, 0.81], "r": 0.07}]}},
28
+ "riot": {"name": "Suhr Riot", "kind": "stomp", "body": "#1b1b1d", "text": "#e6c35c", "knob": "#151515", "query": "Suhr Riot", "art": {"aspect": 0.56, "jacks": 0.5, "parts": [{"poly": [[0.06, 0.6], [0.14, 0.57], [0.14, 0.63]], "fill": "#a36cc9"}, {"poly": [[0.86, 0.6], [0.94, 0.57], [0.94, 0.63]], "fill": "#a36cc9"}], "knobs": [{"param": "GAIN", "label": "Dist", "at": [0.24, 0.17], "r": 0.12, "style": "chicken", "label_colour": "#a36cc9", "label_at": "above"}, {"param": "VOLUME", "label": "Level", "at": [0.76, 0.17], "r": 0.12, "style": "chicken", "label_colour": "#a36cc9", "label_at": "above"}, {"param": "TONE", "label": "Tone", "at": [0.5, 0.38], "r": 0.12, "style": "chicken", "label_colour": "#a36cc9", "label_at": "above"}], "toggles": [{"at": [0.5, 0.09], "r": 0.022}], "leds": [{"at": [0.5, 0.56], "r": 0.022, "colour": "white"}], "texts": [{"box": [0.2, 0.83, 0.6, 0.12], "colour": "#a36cc9", "style": "script", "upper": false}], "switches": [{"type": "round", "at": [0.5, 0.7], "r": 0.1}]}},
29
+ "tightrock": {"name": "Amptweaker TightRock", "kind": "stomp", "body": "#cf1f2a", "text": "#1a1a1a", "knob": "#151515", "query": "Amptweaker", "art": {"aspect": 0.96, "jacks": 0.62, "parts": [{"rect": [0.18, -0.02, 0.64, 0.13], "stroke": "chrome", "width": 0.03, "radius": 0.05}, {"rect": [0.08, 0.83, 0.84, 0.12], "fill": "#f2f2f2", "stroke": "#111111", "width": 0.01, "radius": 0.03}], "knobs": [{"param": "VOLUME", "label": "Volume", "at": [0.14, 0.17], "r": 0.075}, {"param": "TONE", "label": "Tone", "at": [0.38, 0.17], "r": 0.075}, {"param": "GAIN", "label": "Gain", "at": [0.62, 0.17], "r": 0.075}, {"param": "TIGHT", "label": "Tight", "at": [0.86, 0.17], "r": 0.075}], "toggles": [{"at": [0.26, 0.31], "r": 0.018}, {"at": [0.5, 0.31], "r": 0.018}, {"at": [0.74, 0.31], "r": 0.018}], "leds": [{"at": [0.5, 0.69], "r": 0.016}], "texts": [{"box": [0.12, 0.845, 0.76, 0.09], "colour": "#c4161c"}], "switches": [{"type": "round", "at": [0.5, 0.76], "r": 0.045}]}},
30
+ "gt500": {"name": "Fulltone GT-500", "kind": "stomp", "body": "#c9cdd1", "text": "#f2f2f2", "knob": "#151515", "query": "Fulltone GT500", "knob_style": "chrome", "art": {"aspect": 1.25, "jacks": 0.4, "radius": 0.04, "parts": [{"rect": [0.04, 0.05, 0.43, 0.46], "stroke": "#151515", "width": 0.008, "radius": 0.03}, {"rect": [0.53, 0.05, 0.43, 0.46], "stroke": "#151515", "width": 0.008, "radius": 0.03}, {"rect": [0.3, 0.66, 0.4, 0.17], "stroke": "#151515", "width": 0.01, "radius": 0.02}], "knobs": [{"param": "VOLUME", "label": "Volume", "at": [0.14, 0.18], "r": 0.065, "label_colour": "#151515"}, {"param": "BOOST", "label": "Drive", "at": [0.37, 0.18], "r": 0.065, "label_colour": "#151515"}, {"param": "BASS", "label": "Bass", "at": [0.14, 0.38], "r": 0.04, "label_colour": "#151515"}, {"param": "TREBLE", "label": "Highs", "at": [0.37, 0.38], "r": 0.04, "label_colour": "#151515"}, {"param": "VOLUME", "label": "Volume", "at": [0.63, 0.18], "r": 0.065, "label_colour": "#151515"}, {"param": "GAIN", "label": "Distortion", "at": [0.86, 0.18], "r": 0.065, "label_colour": "#151515"}, {"param": "BASS", "label": "Bass", "at": [0.61, 0.38], "r": 0.04, "label_colour": "#151515"}, {"param": "MID", "label": "Mids", "at": [0.745, 0.38], "r": 0.04, "label_colour": "#151515"}, {"param": "TONE", "label": "Highs", "at": [0.88, 0.38], "r": 0.04, "label_colour": "#151515"}], "toggles": [{"at": [0.5, 0.12], "r": 0.02}], "leds": [{"at": [0.5, 0.3], "r": 0.016}], "texts": [{"box": [0.33, 0.68, 0.34, 0.13], "colour": "#151515"}], "switches": [{"type": "round", "at": [0.12, 0.82], "r": 0.05}, {"type": "round", "at": [0.88, 0.82], "r": 0.05}]}},
31
+ "klon": {"name": "Klon Centaur", "kind": "stomp", "body": "#c8913f", "text": "#1a1a1a", "knob": "#151515", "query": "Klon Centaur", "art": {"aspect": 1.25, "jacks": 0.45, "radius": 0.04, "parts": [{"line": [0.04, 0.06, 0.96, 0.06], "stroke": "#e8b968", "width": 0.006}], "knobs": [{"param": "GAIN", "label": "GAIN", "at": [0.2, 0.3], "r": 0.11, "label_colour": "#4a2c10"}, {"param": "TONE", "label": "TREBLE", "at": [0.5, 0.3], "r": 0.11, "label_colour": "#4a2c10"}, {"param": "VOLUME", "label": "OUTPUT", "at": [0.8, 0.3], "r": 0.11, "label_colour": "#4a2c10"}], "leds": [{"at": [0.07, 0.3], "r": 0.015}], "texts": [{"box": [0.7, 0.74, 0.24, 0.07], "colour": "#4a2c10", "style": "serif"}], "switches": [{"type": "round", "at": [0.58, 0.77], "r": 0.04}]}},
32
+ "deluxe": {"name": "Fender '65 Deluxe Reverb", "kind": "combo", "body": "#141414", "text": "#f0f0f0", "knob": "#151515", "query": "Fender Deluxe Reverb amplifier", "panel": "#1b1b1b", "grille": "#b9b9b4", "speakers": "1x12", "logo": "script", "logo_colour": "chrome", "logo_pos": "topleft", "grille_style": "sparkle", "knob_style": "skirt"},
33
+ "twin": {"name": "Fender '65 Twin Reverb", "kind": "combo", "body": "#141414", "text": "#f0f0f0", "knob": "#151515", "query": "Fender Twin Reverb amplifier", "panel": "#1b1b1b", "grille": "#b9b9b4", "speakers": "2x12", "logo": "script", "logo_colour": "chrome", "logo_pos": "topleft", "grille_style": "sparkle", "knob_style": "skirt"},
34
+ "bassman": {"name": "Fender '59 Bassman", "kind": "combo", "body": "#c8a46a", "text": "#2b1d10", "knob": "#e8e0cc", "query": "Fender Bassman", "panel": "#d9c39a", "grille": "#6e4b2a", "speakers": "4x10", "logo": "script", "logo_colour": "chrome", "logo_pos": "topleft", "grille_style": "wicker", "knob_style": "chicken"},
35
+ "supersonic": {"name": "Fender Super-Sonic", "kind": "combo", "body": "#e7dcc3", "text": "#1a1a1a", "knob": "#151515", "query": "Fender Super Sonic", "panel": "#e7dcc3", "grille": "#5a3e2b", "speakers": "1x12", "logo": "script", "logo_colour": "chrome", "logo_pos": "topleft", "grille_style": "wicker", "knob_style": "chicken"},
36
+ "bluesdeluxe": {"name": "Fender Blues Deluxe", "kind": "combo", "body": "#c8a46a", "text": "#f2f2f2", "knob": "#e8e0cc", "query": "Fender Blues Deluxe amplifier", "panel": "#3a2a1a", "grille": "#6e4b2a", "speakers": "1x12", "logo": "script", "logo_colour": "chrome", "logo_pos": "topleft", "grille_style": "wicker", "knob_style": "chicken"},
37
+ "jcm800": {"name": "Marshall JCM800", "kind": "head", "body": "#151515", "text": "#1a1a1a", "knob": "#151515", "query": "Marshall JCM800", "panel": "#c9a54a", "grille": "#1c1c1c", "speakers": "", "logo": "script", "logo_colour": "#f4f4f4", "grille_style": "basket", "piping": "#efe9dc", "knob_style": "gold"},
38
+ "jcm900": {"name": "Marshall JCM900", "kind": "head", "body": "#151515", "text": "#1a1a1a", "knob": "#151515", "query": "Marshall JCM900", "panel": "#c9a54a", "grille": "#1c1c1c", "speakers": "", "logo": "script", "logo_colour": "#f4f4f4", "grille_style": "basket", "piping": "#efe9dc", "knob_style": "gold"},
39
+ "plexi": {"name": "Marshall Plexi Super Lead 100", "kind": "head", "body": "#151515", "text": "#1a1a1a", "knob": "#151515", "query": "Marshall Plexi", "panel": "#c9a54a", "grille": "#1c1c1c", "speakers": "", "logo": "script", "logo_colour": "#f4f4f4", "grille_style": "basket", "piping": "#efe9dc", "knob_style": "gold"},
40
+ "engl_e650": {"name": "ENGL E650 Ritchie Blackmore", "kind": "head", "body": "#121212", "text": "#8fc3ff", "knob": "#c9c9c9", "query": "ENGL Blackmore amplifier", "panel": "#cdb886", "grille": "#1b1d21", "speakers": "", "logo": "block", "logo_colour": "chrome", "grille_style": "bars", "corners": "chrome"},
41
+ "engl_e645": {"name": "ENGL Powerball E645", "kind": "head", "body": "#121212", "text": "#8fc3ff", "knob": "#c9c9c9", "query": "ENGL amplifier", "panel": "#22252b", "grille": "#1b1d21", "speakers": "", "logo": "block", "logo_colour": "chrome", "grille_style": "mesh", "knob_style": "chrome", "corners": "chrome"},
42
+ "engl_blackmore": {"name": "ENGL E650 Blackmore Signature", "kind": "head", "body": "#121212", "text": "#8fc3ff", "knob": "#c9c9c9", "query": "ENGL Ritchie Blackmore E650", "panel": "#cdb886", "grille": "#1b1d21", "speakers": "", "logo": "block", "logo_colour": "chrome", "grille_style": "bars", "corners": "chrome"},
43
+ "mark3": {"name": "Mesa/Boogie Mark III", "kind": "combo", "body": "#141414", "text": "#e8e8e8", "knob": "#151515", "query": "Mesa Boogie Mark", "panel": "#161616", "grille": "#181818", "speakers": "1x12", "logo": "badge", "logo_pos": "topleft", "grille_style": "basket", "eq_sliders": 5},
44
+ "mark5": {"name": "Mesa/Boogie Mark V", "kind": "head", "body": "#141414", "text": "#e8e8e8", "knob": "#151515", "query": "Mesa Boogie Mark V", "panel": "#161616", "grille": "#161616", "speakers": "", "logo": "badge", "logo_pos": "bottomleft", "grille_style": "basket", "panel_side": "top", "eq_sliders": 5},
45
+ "rectifier": {"name": "Mesa/Boogie Triple Rectifier", "kind": "head", "body": "#141414", "text": "#141414", "knob": "#151515", "query": "Mesa Boogie Rectifier amplifier", "panel": "#b8bcc0", "grille": "#2a2a2a", "speakers": "", "diamond": true, "logo": "badge", "grille_style": "basket"},
46
+ "rockerverb": {"name": "Orange Rockerverb", "kind": "head", "body": "#e8731f", "text": "#1a1a1a", "knob": "#151515", "query": "Orange Rockerverb", "panel": "#efe6d2", "grille": "#d9cdb0", "speakers": "", "logo": "rounded", "logo_colour": "#141414", "grille_style": "basket"},
47
+ "ad30": {"name": "Orange AD30", "kind": "head", "body": "#e8731f", "text": "#1a1a1a", "knob": "#151515", "query": "Orange amplifier", "panel": "#efe6d2", "grille": "#d9cdb0", "speakers": "", "logo": "rounded", "logo_colour": "#141414", "grille_style": "basket"},
48
+ "or50": {"name": "Orange OR50", "kind": "head", "body": "#e8731f", "text": "#1a1a1a", "knob": "#151515", "query": "Orange OR", "panel": "#efe6d2", "grille": "#d9cdb0", "speakers": "", "logo": "rounded", "logo_colour": "#141414", "grille_style": "basket"},
49
+ "slo100": {"name": "Soldano SLO-100", "kind": "head", "body": "#141414", "text": "#1a1a1a", "knob": "#151515", "query": "Soldano SLO-100", "panel": "#d8dadc", "grille": "#202020", "speakers": "", "logo": "lower", "logo_colour": "chrome", "grille_style": "mesh", "knob_style": "chrome"},
50
+ "maz18": {"name": "Dr. Z Maz 18 Jr", "kind": "combo", "body": "#2a2a2a", "text": "#f2f2f2", "knob": "#151515", "query": "Dr. Z amplifier", "panel": "#1a1a1a", "grille": "#b2ab9e", "speakers": "1x12", "logo": "z", "logo_colour": "gold", "logo_pos": "top", "grille_style": "wicker", "knob_style": "chrome"},
51
+ "zwreck": {"name": "Dr. Z Z-Wreck", "kind": "combo", "body": "#151515", "text": "#f2f2f2", "knob": "#151515", "query": "Dr. Z Z Wreck", "panel": "#1a1a1a", "grille": "#1c1c1c", "speakers": "2x12", "logo": "z", "logo_colour": "#f2f2f2", "logo_pos": "top", "grille_style": "basket", "knob_style": "chrome"},
52
+ "jetcity": {"name": "Jet City JCA100H", "kind": "head", "body": "#141414", "text": "#e33", "knob": "#151515", "query": "Jet City amplifier", "panel": "#161616", "grille": "#3a3a3a", "speakers": "", "logo": "block", "logo_colour": "chrome", "grille_style": "basket", "knob_style": "chrome"},
53
+ "jc120": {"name": "Roland JC-120 Jazz Chorus", "kind": "combo", "body": "#141414", "text": "#1a1a1a", "knob": "#151515", "query": "Roland JC-120 Jazz Chorus", "panel": "#c6c8ca", "grille": "#161616", "speakers": "2x12", "logo": "badge", "logo_pos": "topleft", "grille_style": "basket", "corners": "chrome"},
54
+ "ac30": {"name": "Vox AC30", "kind": "combo", "body": "#151515", "text": "#e7d3a8", "knob": "#2a2a2a", "query": "Vox AC30", "panel": "#7a4a2a", "grille": "#6b2f24", "speakers": "2x12", "logo": "block", "logo_colour": "#e9dcc0", "logo_pos": "topleft", "diamond": true, "piping": "gold"},
55
+ "hiwatt": {"name": "Hiwatt DR103", "kind": "head", "body": "#151515", "text": "#f2f2f2", "knob": "#151515", "query": "Hiwatt DR103", "panel": "#3f4246", "grille": "#1c1c1c", "speakers": "", "logo": "badge", "grille_style": "basket"},
56
+ "peavey5150": {"name": "Peavey 5150", "kind": "head", "body": "#151515", "text": "#e6e6e6", "knob": "#d6d6d6", "query": "Peavey 5150 amplifier", "panel": "#2a2a2a", "grille": "#262626", "speakers": "", "logo": "block", "logo_colour": "chrome", "grille_style": "basket", "knob_style": "chrome"},
57
+ "falcon": {"name": "Tone King Falcon", "kind": "combo", "body": "#5b3a29", "text": "#e3d7bd", "knob": "#e8e0cc", "query": "Tone King", "panel": "#e9e1cc", "grille": "#c9c9c4", "speakers": "1x12", "logo": "script", "logo_colour": "gold", "logo_pos": "bottomright", "grille_style": "sparkle", "panel_side": "right", "knob_style": "chrome", "piping": "#e9e1cc"},
58
+ "tworock": {"name": "Two-Rock Coral", "kind": "head", "body": "#1b1b1b", "text": "#1a1a1a", "knob": "#151515", "query": "Two Rock amplifier", "panel": "#1c1c1c", "grille": "#1c1c1c", "speakers": "", "logo": "script", "logo_colour": "chrome", "logo_pos": "topright", "grille_style": "basket", "knob_style": "skirt"},
59
+ "cardiff": {"name": "Two-Rock Cardiff", "kind": "head", "body": "#1b1b1b", "text": "#1a1a1a", "knob": "#151515", "query": "Two Rock amp", "panel": "#1c1c1c", "grille": "#1c1c1c", "speakers": "", "logo": "script", "logo_colour": "chrome", "logo_pos": "topright", "grille_style": "basket", "knob_style": "skirt"},
60
+ "evh5150": {"name": "EVH 5150 III", "kind": "head", "body": "#141414", "text": "#d8d8d8", "knob": "#151515", "query": "EVH 5150", "panel": "#e4e5e6", "grille": "#111111", "speakers": "", "stripes": true, "logo": "oval", "grille_style": "basket"},
61
+ "blackstar": {"name": "Blackstar HT Stage 100", "kind": "head", "body": "#141414", "text": "#d4af37", "knob": "#151515", "query": "Blackstar amplifier", "panel": "#1c1c1c", "grille": "#1a1a1a", "speakers": "", "logo": "block", "logo_colour": "chrome", "grille_style": "basket", "knob_style": "chrome"},
62
+ "diezel": {"name": "Diezel Hagen", "kind": "head", "body": "#141414", "text": "#1a1a1a", "knob": "#151515", "query": "Diezel amplifier", "panel": "#c8cacc", "grille": "#1d1d1d", "speakers": "", "logo": "block", "logo_colour": "chrome", "grille_style": "mesh", "knob_style": "chrome"},
63
+ "koch": {"name": "Koch Powertone", "kind": "head", "body": "#141414", "text": "#d4af37", "knob": "#151515", "query": "Koch amplifier", "panel": "#1b1b1b", "grille": "#262626", "speakers": "", "logo": "script", "logo_colour": "gold", "grille_style": "basket", "knob_style": "gold"},
64
+ "acoustic": {"name": "Acoustic simulator", "kind": "acoustic", "body": "#c48a4a", "text": "#f2e6d0", "knob": "#151515", "query": "", "panel": "#3a2412", "grille": "#1a1008", "speakers": ""},
65
+ "c_deluxe": {"name": "Fender Deluxe Reverb 1x12", "kind": "cab", "body": "#141414", "text": "#f2f2f2", "knob": "#151515", "query": "Fender Deluxe Reverb amplifier", "panel": "#141414", "grille": "#b9b9b4", "speakers": "1x12", "logo": "script", "logo_colour": "chrome", "logo_pos": "topleft", "grille_style": "sparkle"},
66
+ "c_twin": {"name": "Fender Twin Reverb 2x12", "kind": "cab", "body": "#141414", "text": "#f2f2f2", "knob": "#151515", "query": "Fender Twin Reverb amplifier", "panel": "#141414", "grille": "#b9b9b4", "speakers": "2x12", "logo": "script", "logo_colour": "chrome", "logo_pos": "topleft", "grille_style": "sparkle"},
67
+ "c_bassman": {"name": "Fender Bassman 4x10", "kind": "cab", "body": "#c8a46a", "text": "#f2f2f2", "knob": "#151515", "query": "Fender Bassman", "panel": "#c8a46a", "grille": "#6e4b2a", "speakers": "4x10", "logo": "script", "logo_colour": "chrome", "logo_pos": "topleft", "grille_style": "wicker"},
68
+ "c_supersonic": {"name": "Fender Super-Sonic 1x12", "kind": "cab", "body": "#e7dcc3", "text": "#f2f2f2", "knob": "#151515", "query": "Fender Super Sonic", "panel": "#141414", "grille": "#5a3e2b", "speakers": "1x12", "logo": "script", "logo_colour": "chrome", "logo_pos": "topleft", "grille_style": "wicker"},
69
+ "c_blues": {"name": "Fender Blues Deluxe 1x12", "kind": "cab", "body": "#c8a46a", "text": "#f2f2f2", "knob": "#151515", "query": "Fender Blues Deluxe amplifier", "panel": "#c8a46a", "grille": "#6e4b2a", "speakers": "1x12", "logo": "script", "logo_colour": "chrome", "logo_pos": "topleft", "grille_style": "wicker"},
70
+ "c_1960": {"name": "Marshall 1960A 4x12", "kind": "cab", "body": "#151515", "text": "#f2f2f2", "knob": "#151515", "query": "Marshall 1960A cabinet", "panel": "#151515", "grille": "#1c1c1c", "speakers": "4x12", "slant": true, "logo": "script", "logo_colour": "#f4f4f4", "grille_style": "basket", "piping": "#efe9dc", "logo_pos": "top"},
71
+ "c_englpro": {"name": "ENGL Pro XXL 4x12", "kind": "cab", "body": "#121212", "text": "#f2f2f2", "knob": "#151515", "query": "ENGL cabinet", "panel": "#121212", "grille": "#2a2d33", "speakers": "4x12", "slant": true, "logo": "block", "logo_colour": "chrome", "grille_style": "mesh", "corners": "chrome"},
72
+ "c_englvint": {"name": "ENGL Vintage XXL 4x12", "kind": "cab", "body": "#121212", "text": "#f2f2f2", "knob": "#151515", "query": "ENGL cabinet", "panel": "#121212", "grille": "#2a2d33", "speakers": "4x12", "logo": "block", "logo_colour": "chrome", "grille_style": "basket", "piping": "#e9e9e9"},
73
+ "c_mark": {"name": "Mesa/Boogie Mark 1x12", "kind": "cab", "body": "#141414", "text": "#f2f2f2", "knob": "#151515", "query": "Mesa Boogie 1x12 cabinet", "panel": "#141414", "grille": "#1d1d1d", "speakers": "1x12", "logo": "badge", "logo_pos": "topleft", "grille_style": "basket"},
74
+ "c_rect": {"name": "Mesa/Boogie Rectifier 4x12", "kind": "cab", "body": "#141414", "text": "#f2f2f2", "knob": "#151515", "query": "Mesa Boogie Rectifier 4x12 cabinet", "panel": "#b8bcc0", "grille": "#2a2a2a", "speakers": "4x12", "slant": true, "diamond": false, "logo": "badge", "grille_style": "basket"},
75
+ "c_orange412": {"name": "Orange PPC412", "kind": "cab", "body": "#e8731f", "text": "#f2f2f2", "knob": "#151515", "query": "Orange PPC412 cabinet", "panel": "#e8731f", "grille": "#d9cdb0", "speakers": "4x12", "logo": "rounded", "logo_colour": "#141414", "grille_style": "basket"},
76
+ "c_orange212": {"name": "Orange PPC212", "kind": "cab", "body": "#e8731f", "text": "#f2f2f2", "knob": "#151515", "query": "Orange PPC212 cabinet", "panel": "#e8731f", "grille": "#d9cdb0", "speakers": "2x12", "logo": "rounded", "logo_colour": "#141414", "grille_style": "basket"},
77
+ "c_soldano": {"name": "Soldano SLO 4x12", "kind": "cab", "body": "#141414", "text": "#f2f2f2", "knob": "#151515", "query": "Soldano cabinet", "panel": "#141414", "grille": "#262626", "speakers": "4x12", "slant": true, "logo": "lower", "logo_colour": "chrome", "grille_style": "basket"},
78
+ "c_maz": {"name": "Dr. Z Maz 1x12", "kind": "cab", "body": "#2a2a2a", "text": "#f2f2f2", "knob": "#151515", "query": "Dr. Z cabinet", "panel": "#2a2a2a", "grille": "#b2ab9e", "speakers": "1x12", "logo": "z", "logo_colour": "gold", "logo_pos": "top", "grille_style": "wicker"},
79
+ "c_zwreck": {"name": "Dr. Z Z-Wreck 2x12", "kind": "cab", "body": "#151515", "text": "#f2f2f2", "knob": "#151515", "query": "Dr. Z cabinet", "panel": "#4a1f1f", "grille": "#1c1c1c", "speakers": "2x12", "logo": "z", "logo_colour": "#f2f2f2", "logo_pos": "top", "grille_style": "basket"},
80
+ "c_jc120": {"name": "Roland JC-120 2x12", "kind": "cab", "body": "#141414", "text": "#f2f2f2", "knob": "#151515", "query": "Roland JC-120 Jazz Chorus", "panel": "#141414", "grille": "#1e1e1e", "speakers": "2x12", "logo": "badge", "logo_pos": "topleft", "grille_style": "basket", "corners": "chrome"},
81
+ "c_ac30": {"name": "Vox AC30 2x12", "kind": "cab", "body": "#151515", "text": "#f2f2f2", "knob": "#151515", "query": "Vox AC30", "panel": "#151515", "grille": "#6b2f24", "speakers": "2x12", "logo": "block", "logo_colour": "#e9dcc0", "logo_pos": "topleft", "diamond": true, "piping": "gold"},
82
+ "c_hiwatt": {"name": "Hiwatt AP 4x12", "kind": "cab", "body": "#151515", "text": "#f2f2f2", "knob": "#151515", "query": "Hiwatt cabinet", "panel": "#151515", "grille": "#8a8a8a", "speakers": "4x12", "logo": "badge", "logo_pos": "top", "grille_style": "basket"},
83
+ "c_peavey": {"name": "Peavey 5150 4x12", "kind": "cab", "body": "#151515", "text": "#f2f2f2", "knob": "#151515", "query": "Peavey 5150 cabinet", "panel": "#151515", "grille": "#262626", "speakers": "4x12", "slant": true, "logo": "block", "logo_colour": "chrome", "logo_pos": "topleft", "grille_style": "basket"},
84
+ "c_falcon": {"name": "Tone King Falcon 1x10", "kind": "cab", "body": "#5b3a29", "text": "#f2f2f2", "knob": "#151515", "query": "Tone King", "panel": "#e3d7bd", "grille": "#c9c9c4", "speakers": "1x10", "logo": "script", "logo_colour": "gold", "logo_pos": "bottomright", "grille_style": "sparkle", "piping": "#e9e1cc"},
85
+ "c_tworock212": {"name": "Two-Rock 2x12", "kind": "cab", "body": "#1b1b1b", "text": "#f2f2f2", "knob": "#151515", "query": "Two Rock cabinet", "panel": "#1b1b1b", "grille": "#1c1c1c", "speakers": "2x12", "logo": "script", "logo_colour": "chrome", "logo_pos": "topright", "grille_style": "basket"},
86
+ "c_tworock112": {"name": "Two-Rock 1x12", "kind": "cab", "body": "#1b1b1b", "text": "#f2f2f2", "knob": "#151515", "query": "Two Rock cabinet", "panel": "#1b1b1b", "grille": "#1c1c1c", "speakers": "1x12", "logo": "script", "logo_colour": "chrome", "logo_pos": "topright", "grille_style": "basket"},
87
+ "c_evh": {"name": "EVH 5150 III 4x12", "kind": "cab", "body": "#141414", "text": "#f2f2f2", "knob": "#151515", "query": "EVH cabinet", "panel": "#141414", "grille": "#262626", "speakers": "4x12", "slant": true, "logo": "oval", "grille_style": "basket"},
88
+ "c_blackstar": {"name": "Blackstar HTV 4x12", "kind": "cab", "body": "#141414", "text": "#f2f2f2", "knob": "#151515", "query": "Blackstar cabinet", "panel": "#141414", "grille": "#262626", "speakers": "4x12", "slant": true, "logo": "block", "logo_colour": "chrome", "logo_pos": "topleft", "grille_style": "basket"},
89
+ "c_diezel": {"name": "Diezel 4x12", "kind": "cab", "body": "#141414", "text": "#f2f2f2", "knob": "#151515", "query": "Diezel cabinet", "panel": "#141414", "grille": "#262626", "speakers": "4x12", "logo": "block", "logo_colour": "chrome", "grille_style": "basket"},
90
+ "c_acoustic": {"name": "1x12 acoustic cabinet", "kind": "cab", "body": "#7a5233", "text": "#f2f2f2", "knob": "#151515", "query": "", "panel": "#7a5233", "grille": "#2a2018", "speakers": "1x12"},
91
+ "c_user": {"name": "IR de usuario", "kind": "cab", "body": "#232a33", "text": "#f2f2f2", "knob": "#151515", "query": "", "panel": "#232a33", "grille": "#3a4452", "speakers": "1x12", "generic": true},
92
+ "user_nr": {"name": "Captura NR de usuario", "kind": "head", "body": "#232a33", "text": "#7fd3ff", "knob": "#151515", "query": "", "panel": "#2c3540", "grille": "#3a4452", "speakers": "", "generic": true},
93
+ "mooer_noisekiller": {"name": "Mooer Noise Killer", "kind": "micro", "body": "#eeeeee", "text": "#1a1a1a", "knob": "#151515", "query": ""},
94
+ "mooer_intel": {"name": "Intelligent noise reduction", "kind": "micro", "body": "#22313f", "text": "#9fe3ff", "knob": "#151515", "query": "", "generic": true},
95
+ "mooer_gate": {"name": "Digital noise gate", "kind": "micro", "body": "#2f2f2f", "text": "#f2f2f2", "knob": "#151515", "query": "", "generic": true},
96
+ "mooer_graphic_g": {"name": "Mooer Graphic G", "kind": "eq", "body": "#6b9fd4", "text": "#f2f2f2", "knob": "#151515", "query": ""},
97
+ "mooer_graphic_b": {"name": "Mooer Graphic B", "kind": "eq", "body": "#f0f0f0", "text": "#1a1a1a", "knob": "#151515", "query": ""},
98
+ "mooer_g6": {"name": "6-band graphic EQ", "kind": "eq", "body": "#2e5d8c", "text": "#f2f2f2", "knob": "#151515", "query": "", "generic": true},
99
+ "custom_eq": {"name": "Parametric EQ", "kind": "eq", "body": "#3a3a3a", "text": "#9fe3ff", "knob": "#151515", "query": "", "generic": true},
100
+ "mod1": {"name": "Mooer Ninety Orange", "kind": "micro", "body": "#e8731f", "text": "#f2f2f2", "knob": "#151515", "query": "", "big_knob": "#f2f2f2"},
101
+ "mod2": {"name": "Step phaser", "kind": "micro", "body": "#7d4cc2", "text": "#f2f2f2", "knob": "#151515", "query": "", "generic": true},
102
+ "mod3": {"name": "Fat phaser", "kind": "micro", "body": "#d64545", "text": "#f2f2f2", "knob": "#151515", "query": "", "generic": true},
103
+ "mod4": {"name": "Mooer E-Lady", "kind": "micro", "body": "#ece6dc", "text": "#1a1a1a", "knob": "#151515", "query": "", "panel": "#141414", "big_knob": "#efe6cf"},
104
+ "mod5": {"name": "Mooer Jet Flanger", "kind": "micro", "body": "#ededed", "text": "#1a1a1a", "knob": "#151515", "query": "", "big_knob": "#efe6cf"},
105
+ "mod6": {"name": "Mooer Trelicopter", "kind": "micro", "body": "#151515", "text": "#f2f2f2", "knob": "#151515", "query": "", "big_knob": "#efe6cf"},
106
+ "mod7": {"name": "Stutter", "kind": "micro", "body": "#c2185b", "text": "#f2f2f2", "knob": "#151515", "query": "", "generic": true},
107
+ "mod8": {"name": "Vibrato", "kind": "micro", "body": "#5c6bc0", "text": "#f2f2f2", "knob": "#151515", "query": "", "generic": true},
108
+ "mod9": {"name": "Pitch shifter", "kind": "micro", "body": "#43a047", "text": "#f2f2f2", "knob": "#151515", "query": "DigiTech Whammy", "generic": true, "reference": "DigiTech Whammy"},
109
+ "mod10": {"name": "Detune", "kind": "micro", "body": "#26a69a", "text": "#f2f2f2", "knob": "#151515", "query": "", "generic": true},
110
+ "mod11": {"name": "Rotary speaker", "kind": "micro", "body": "#8d6e63", "text": "#f2f2f2", "knob": "#151515", "query": "", "generic": true},
111
+ "mod12": {"name": "Analog chorus", "kind": "micro", "body": "#1e88e5", "text": "#f2f2f2", "knob": "#151515", "query": "", "generic": true},
112
+ "mod13": {"name": "Tri-chorus", "kind": "micro", "body": "#00897b", "text": "#f2f2f2", "knob": "#151515", "query": "", "generic": true},
113
+ "mod14": {"name": "Ring modulator", "kind": "micro", "body": "#6d4c41", "text": "#f2f2f2", "knob": "#151515", "query": "", "generic": true},
114
+ "mod15": {"name": "Q-filter", "kind": "micro", "body": "#fb8c00", "text": "#f2f2f2", "knob": "#151515", "query": "", "generic": true},
115
+ "mod16": {"name": "High pass", "kind": "micro", "body": "#90a4ae", "text": "#1a1a1a", "knob": "#151515", "query": "", "generic": true},
116
+ "mod17": {"name": "Low pass", "kind": "micro", "body": "#546e7a", "text": "#f2f2f2", "knob": "#151515", "query": "", "generic": true},
117
+ "mod18": {"name": "Slow gear", "kind": "micro", "body": "#ab47bc", "text": "#f2f2f2", "knob": "#151515", "query": "Boss Slow Gear", "generic": true, "reference": "BOSS SG-1 Slow Gear"},
118
+ "mod19": {"name": "Lo-fi", "kind": "micro", "body": "#9e9d24", "text": "#f2f2f2", "knob": "#151515", "query": "", "generic": true},
119
+ "delay1": {"name": "Digital delay", "kind": "micro", "body": "#1e88e5", "text": "#f2f2f2", "knob": "#151515", "query": "", "generic": true},
120
+ "delay2": {"name": "Analog delay", "kind": "micro", "body": "#6d8f3a", "text": "#f2f2f2", "knob": "#151515", "query": "", "generic": true},
121
+ "delay3": {"name": "Real echo", "kind": "micro", "body": "#455a64", "text": "#f2f2f2", "knob": "#151515", "query": "", "generic": true},
122
+ "delay4": {"name": "Tape echo", "kind": "micro", "body": "#8d6e63", "text": "#f2f2f2", "knob": "#151515", "query": "", "generic": true},
123
+ "delay5": {"name": "Modulated delay", "kind": "micro", "body": "#7e57c2", "text": "#f2f2f2", "knob": "#151515", "query": "", "generic": true},
124
+ "delay6": {"name": "Reverse delay", "kind": "micro", "body": "#c62828", "text": "#f2f2f2", "knob": "#151515", "query": "", "generic": true},
125
+ "delay7": {"name": "Ping-pong delay", "kind": "micro", "body": "#00897b", "text": "#f2f2f2", "knob": "#151515", "query": "", "generic": true},
126
+ "delay8": {"name": "Dynamic delay", "kind": "micro", "body": "#ef6c00", "text": "#f2f2f2", "knob": "#151515", "query": "", "generic": true},
127
+ "delay9": {"name": "Dual delay", "kind": "micro", "body": "#37474f", "text": "#f2f2f2", "knob": "#151515", "query": "", "generic": true},
128
+ "reverb1": {"name": "Room reverb", "kind": "micro", "body": "#546e7a", "text": "#f2f2f2", "knob": "#151515", "query": "", "generic": true},
129
+ "reverb2": {"name": "Hall reverb", "kind": "micro", "body": "#3949ab", "text": "#f2f2f2", "knob": "#151515", "query": "", "generic": true},
130
+ "reverb3": {"name": "Church reverb", "kind": "micro", "body": "#6a1b9a", "text": "#f2f2f2", "knob": "#151515", "query": "", "generic": true},
131
+ "reverb4": {"name": "Plate reverb", "kind": "micro", "body": "#b0bec5", "text": "#1a1a1a", "knob": "#151515", "query": "", "generic": true},
132
+ "reverb5": {"name": "Spring reverb", "kind": "micro", "body": "#2e7d32", "text": "#f2f2f2", "knob": "#151515", "query": "", "generic": true},
133
+ "reverb6": {"name": "Mod reverb reverb", "kind": "micro", "body": "#00838f", "text": "#f2f2f2", "knob": "#151515", "query": "", "generic": true},
134
+ "reverb7": {"name": "Cave reverb", "kind": "micro", "body": "#4e342e", "text": "#f2f2f2", "knob": "#151515", "query": "", "generic": true}
135
+ },
136
+ "models": {
137
+ "FX": {"1": "crybaby", "2": "crybaby535", "3": "mooer_envelope", "4": "mooer_redkid", "5": "mooer_redkid", "6": "mooer_touchwah", "7": "mooer_yellowcomp", "8": "mooer_bluecomp"},
138
+ "DS": {"1": "tubedriver", "2": "ts808", "3": "mooer_pureboost", "4": "mooer_flexboost", "5": "directdrive", "6": "rat", "7": "fuzzface", "8": "bigmuff", "9": "mt2", "10": "metalmaster", "11": "ocd", "12": "timmy", "13": "fulldrive", "14": "shredmaster", "15": "bbpre", "16": "bbplus", "17": "riot", "18": "tightrock", "19": "gt500", "20": "klon"},
139
+ "AMP": {"1": "deluxe", "2": "twin", "3": "bassman", "4": "supersonic", "5": "bluesdeluxe", "6": "bluesdeluxe", "7": "jcm800", "8": "jcm900", "9": "plexi", "10": "engl_e650", "11": "engl_e650", "12": "engl_e645", "13": "engl_e645", "14": "engl_blackmore", "15": "engl_blackmore", "16": "mark3", "17": "mark3", "18": "mark5", "19": "mark5", "20": "rectifier", "21": "rectifier", "22": "rockerverb", "23": "rockerverb", "24": "ad30", "25": "or50", "26": "slo100", "27": "slo100", "28": "maz18", "29": "zwreck", "30": "jetcity", "31": "jetcity", "32": "jc120", "33": "ac30", "34": "ac30", "35": "hiwatt", "36": "peavey5150", "37": "peavey5150", "38": "falcon", "39": "falcon", "40": "falcon", "41": "tworock", "42": "tworock", "43": "cardiff", "44": "evh5150", "45": "evh5150", "46": "blackstar", "47": "blackstar", "48": "diezel", "49": "diezel", "50": "diezel", "51": "koch", "52": "koch", "53": "acoustic", "54": "acoustic", "55": "acoustic", "56": "user_nr", "57": "user_nr", "58": "user_nr", "59": "user_nr", "60": "user_nr", "61": "user_nr", "62": "user_nr", "63": "user_nr", "64": "user_nr", "65": "user_nr"},
140
+ "CAB": {"1": "c_deluxe", "2": "c_twin", "3": "c_bassman", "4": "c_supersonic", "5": "c_blues", "6": "c_1960", "7": "c_englpro", "8": "c_englvint", "9": "c_mark", "10": "c_rect", "11": "c_orange412", "12": "c_orange212", "13": "c_soldano", "14": "c_maz", "15": "c_zwreck", "16": "c_jc120", "17": "c_ac30", "18": "c_hiwatt", "19": "c_peavey", "20": "c_falcon", "21": "c_tworock212", "22": "c_tworock112", "23": "c_evh", "24": "c_blackstar", "25": "c_diezel", "26": "c_acoustic", "27": "c_user", "28": "c_user", "29": "c_user", "30": "c_user", "31": "c_user", "32": "c_user", "33": "c_user", "34": "c_user", "35": "c_user", "36": "c_user"},
141
+ "NS": {"1": "mooer_noisekiller", "2": "mooer_intel", "3": "mooer_gate"},
142
+ "EQ": {"1": "mooer_graphic_g", "2": "mooer_graphic_b", "3": "mooer_g6", "4": "custom_eq"},
143
+ "MOD": {"1": "mod1", "2": "mod2", "3": "mod3", "4": "mod4", "5": "mod5", "6": "mod6", "7": "mod7", "8": "mod8", "9": "mod9", "10": "mod10", "11": "mod11", "12": "mod12", "13": "mod13", "14": "mod14", "15": "mod15", "16": "mod16", "17": "mod17", "18": "mod18", "19": "mod19"},
144
+ "DELAY": {"1": "delay1", "2": "delay2", "3": "delay3", "4": "delay4", "5": "delay5", "6": "delay6", "7": "delay7", "8": "delay8", "9": "delay9"},
145
+ "REVERB": {"1": "reverb1", "2": "reverb2", "3": "reverb3", "4": "reverb4", "5": "reverb5", "6": "reverb6", "7": "reverb7"}
146
+ }
147
+ }
@@ -0,0 +1 @@
1
+ """File formats: WAV impulse responses, .mo presets, .mbf backups."""
@@ -0,0 +1,70 @@
1
+ """``.amp`` NR (amp capture) files <-> the pedal's user AMP slot format (plan.md §2.8).
2
+
3
+ File layout read by FUN_0041f700 of MOOER_GE150.exe [V]::
4
+
5
+ 512 x int32 LE data words
6
+ int32 LE checksum = sum of the 512 words (32-bit wrap-around)
7
+ ... (anything)
8
+ "2.0" the last three bytes of the file
9
+
10
+ Upload (FUN_004153b0, opcode 0xB7): four 512-byte parts; part ``n`` (2..5) carries byte
11
+ ``5 - n`` of every 32-bit word, i.e. planes from the most to the least significant byte.
12
+ """
13
+
14
+ from __future__ import annotations
15
+
16
+ import struct
17
+ from pathlib import Path
18
+
19
+ NR_WORDS = 512
20
+ NR_BYTES = NR_WORDS * 4
21
+ TRAILER = b"2.0"
22
+
23
+
24
+ class AmpError(ValueError):
25
+ pass
26
+
27
+
28
+ def parse_amp(data: bytes) -> list[int]:
29
+ """Validate an ``.amp`` file and return its 512 signed 32-bit words."""
30
+ if len(data) < NR_BYTES + 4 + len(TRAILER):
31
+ raise AmpError("file too short for an NR capture")
32
+ if not data.endswith(TRAILER):
33
+ raise AmpError("missing '2.0' trailer: not a GE150 NR file")
34
+ words = list(struct.unpack_from(f"<{NR_WORDS}i", data))
35
+ stored = struct.unpack_from("<I", data, NR_BYTES)[0]
36
+ if stored != sum(words) & 0xFFFFFFFF:
37
+ raise AmpError("checksum mismatch")
38
+ return words
39
+
40
+
41
+ def build_amp(words: list[int]) -> bytes:
42
+ """Inverse of :func:`parse_amp` (useful to export captures from a backup)."""
43
+ if len(words) != NR_WORDS:
44
+ raise AmpError(f"an NR capture has {NR_WORDS} words")
45
+ body = struct.pack(f"<{NR_WORDS}i", *words)
46
+ return body + struct.pack("<I", sum(words) & 0xFFFFFFFF) + TRAILER
47
+
48
+
49
+ def pack_planar(words: list[int]) -> bytes:
50
+ """512 words -> 2048 bytes: byte 3 plane, byte 2 plane, byte 1 plane, byte 0 plane."""
51
+ if len(words) != NR_WORDS:
52
+ raise AmpError(f"an NR capture has {NR_WORDS} words")
53
+ u = [w & 0xFFFFFFFF for w in words]
54
+ return b"".join(bytes((v >> shift) & 0xFF for v in u) for shift in (24, 16, 8, 0))
55
+
56
+
57
+ def unpack_planar(data: bytes) -> list[int]:
58
+ if len(data) < NR_BYTES:
59
+ raise AmpError(f"an NR payload needs {NR_BYTES} bytes")
60
+ out = []
61
+ for i in range(NR_WORDS):
62
+ v = (data[i] << 24 | data[NR_WORDS + i] << 16 | data[2 * NR_WORDS + i] << 8
63
+ | data[3 * NR_WORDS + i])
64
+ out.append(v - (1 << 32) if v & 0x80000000 else v)
65
+ return out
66
+
67
+
68
+ def load_nr_file(path: str | Path) -> bytes:
69
+ """``.amp`` path -> 2048-byte payload ready for an NR upload (opcode 0xB7)."""
70
+ return pack_planar(parse_amp(Path(path).read_bytes()))
ge150/formats/mbf.py ADDED
@@ -0,0 +1,185 @@
1
+ """``.mbf`` full backups of the vendor editor (plan.md §3).
2
+
3
+ Layout reconstructed from the writer FUN_004389d0 / FUN_00435a80 / FUN_00436a40 and the
4
+ reader FUN_00437330 / FUN_00434c20 / FUN_00437a00 of MOOER_GE150.exe [V]::
5
+
6
+ 0x000 file header, 0x400 bytes
7
+ +0x00 "MOOER" +0x08 "MOOER_GE150" +0x28 "V1.0.0" +0x2F "V1.0.2"
8
+ +0x36 "V1.0.0" +0x48 "BUFF" +0x4C u32 number of sections
9
+ +0x50 u64 absolute file offset of each section
10
+ +0x3F8 u64 checksum = sum(header[0:0x3F8]) + sum(every byte after 0x400)
11
+ section header, 0x100 bytes: +0x00 name, +0x20 u8 restore opcode,
12
+ +0x28 u32 item count, +0x2C u32 item size
13
+ item: 0x22-byte header (only +0x20 u16 = index/slot is used) + ``size`` data bytes
14
+
15
+ Sections written by the vendor, in order: GE150_PRESET (0xC3, 200 x 0xA0 = name 14 B +
16
+ 2 B + 72 words), GE150_SYSTEM (0xFF, 1 x 10 B), GE150_RHYTHM (0x8D, 1 x 6 B) and
17
+ GE150_IR (0xB5, one 0x610-byte item per used IR slot = 16-byte name + 1536 planar bytes,
18
+ exactly the body of a 0x44 backup chunk).
19
+ """
20
+
21
+ from __future__ import annotations
22
+
23
+ import struct
24
+ from dataclasses import dataclass, field
25
+ from pathlib import Path
26
+
27
+ from ge150.model.preset import (
28
+ NAME_LEN,
29
+ PRESET_COUNT,
30
+ PRESET_WORDS,
31
+ Preset,
32
+ decode_name,
33
+ encode_name,
34
+ pack_words,
35
+ unpack_words,
36
+ )
37
+
38
+ HEADER_SIZE = 0x400
39
+ SECTION_HEADER = 0x100
40
+ ITEM_HEADER = 0x22
41
+ CHECKSUM_AT = 0x3F8
42
+ PRESET_ITEM = 0xA0
43
+ SYSTEM_SIZE = 10
44
+ RHYTHM_SIZE = 6
45
+ IR_ITEM = 0x610
46
+
47
+ SECTION_PRESET = "GE150_PRESET"
48
+ SECTION_SYSTEM = "GE150_SYSTEM"
49
+ SECTION_RHYTHM = "GE150_RHYTHM"
50
+ SECTION_IR = "GE150_IR"
51
+
52
+
53
+ class MbfError(ValueError):
54
+ pass
55
+
56
+
57
+ @dataclass
58
+ class IrItem:
59
+ slot: int # 0-based user IR slot
60
+ name: str
61
+ data: bytes # 1536 planar bytes
62
+
63
+
64
+ @dataclass
65
+ class Backup:
66
+ presets: list[Preset] = field(default_factory=list)
67
+ system: bytes = bytes(SYSTEM_SIZE)
68
+ rhythm: bytes = bytes(RHYTHM_SIZE)
69
+ irs: list[IrItem] = field(default_factory=list)
70
+
71
+
72
+ # --- encoding ----------------------------------------------------------------
73
+
74
+
75
+ def _byte_sum(data: bytes | bytearray) -> int:
76
+ return sum(data)
77
+
78
+
79
+ def _section(name: str, opcode: int, size: int, items: list[tuple[int, bytes]]) -> bytes:
80
+ header = bytearray(SECTION_HEADER)
81
+ raw_name = name.encode("ascii")
82
+ header[: len(raw_name)] = raw_name
83
+ header[0x20] = opcode
84
+ struct.pack_into("<II", header, 0x28, len(items), size)
85
+ body = bytearray(header)
86
+ for index, data in items:
87
+ if len(data) != size:
88
+ raise MbfError(f"{name}: item of {len(data)} bytes, expected {size}")
89
+ item_header = bytearray(ITEM_HEADER)
90
+ struct.pack_into("<H", item_header, 0x20, index)
91
+ body += item_header + data
92
+ return bytes(body)
93
+
94
+
95
+ def preset_item(preset: Preset) -> bytes:
96
+ return encode_name(preset.name) + bytes(2) + pack_words(preset.words)
97
+
98
+
99
+ def build(backup: Backup) -> bytes:
100
+ if len(backup.presets) != PRESET_COUNT:
101
+ raise MbfError(f"a backup needs {PRESET_COUNT} presets")
102
+ presets = sorted(backup.presets, key=lambda p: p.slot)
103
+ sections = [
104
+ _section(SECTION_PRESET, 0xC3, PRESET_ITEM,
105
+ [(p.slot - 1, preset_item(p)) for p in presets]),
106
+ _section(SECTION_SYSTEM, 0xFF, SYSTEM_SIZE, [(0, bytes(backup.system[:SYSTEM_SIZE]))]),
107
+ _section(SECTION_RHYTHM, 0x8D, RHYTHM_SIZE, [(0, bytes(backup.rhythm[:RHYTHM_SIZE]))]),
108
+ _section(SECTION_IR, 0xB5, IR_ITEM,
109
+ [(ir.slot, encode_name(ir.name, 16) + bytes(ir.data)) for ir in backup.irs]),
110
+ ]
111
+ header = bytearray(HEADER_SIZE)
112
+ for offset, text in ((0x00, "MOOER"), (0x08, "MOOER_GE150"), (0x28, "V1.0.0"),
113
+ (0x2F, "V1.0.2"), (0x36, "V1.0.0"), (0x48, "BUFF")):
114
+ header[offset : offset + len(text)] = text.encode("ascii")
115
+ struct.pack_into("<I", header, 0x4C, len(sections))
116
+ offset = HEADER_SIZE
117
+ for i, section in enumerate(sections):
118
+ struct.pack_into("<Q", header, 0x50 + 8 * i, offset)
119
+ offset += len(section)
120
+ body = b"".join(sections)
121
+ checksum = _byte_sum(header[:CHECKSUM_AT]) + _byte_sum(body)
122
+ struct.pack_into("<Q", header, CHECKSUM_AT, checksum)
123
+ return bytes(header) + body
124
+
125
+
126
+ # --- decoding ----------------------------------------------------------------
127
+
128
+
129
+ def _cstr(data: bytes) -> str:
130
+ return data.split(b"\x00", 1)[0].decode("ascii", errors="replace")
131
+
132
+
133
+ def parse(data: bytes, verify: bool = True) -> Backup:
134
+ if len(data) < HEADER_SIZE:
135
+ raise MbfError("file too short")
136
+ header = data[:HEADER_SIZE]
137
+ if _cstr(header[0:8]) != "MOOER" or _cstr(header[8:0x28]) != "MOOER_GE150" \
138
+ or header[0x48:0x4C] != b"BUFF":
139
+ raise MbfError("not a GE150 backup (MOOER / MOOER_GE150 / BUFF magic)")
140
+ if verify:
141
+ stored = struct.unpack_from("<Q", header, CHECKSUM_AT)[0]
142
+ actual = _byte_sum(header[:CHECKSUM_AT]) + _byte_sum(data[HEADER_SIZE:])
143
+ if stored != actual:
144
+ raise MbfError(f"checksum mismatch ({stored} != {actual})")
145
+ count = struct.unpack_from("<I", header, 0x4C)[0]
146
+ if count > (CHECKSUM_AT - 0x50) // 8:
147
+ raise MbfError("invalid section count")
148
+ backup = Backup()
149
+ for i in range(count):
150
+ offset = struct.unpack_from("<Q", header, 0x50 + 8 * i)[0]
151
+ if offset + SECTION_HEADER > len(data):
152
+ raise MbfError(f"section {i} outside the file")
153
+ name = _cstr(data[offset : offset + 0x20])
154
+ items_count, size = struct.unpack_from("<II", data, offset + 0x28)
155
+ end = offset + SECTION_HEADER + items_count * (ITEM_HEADER + size)
156
+ if end > len(data):
157
+ raise MbfError(f"{name}: truncated")
158
+ pos = offset + SECTION_HEADER
159
+ for _ in range(items_count):
160
+ index = struct.unpack_from("<H", data, pos + 0x20)[0]
161
+ item = data[pos + ITEM_HEADER : pos + ITEM_HEADER + size]
162
+ pos += ITEM_HEADER + size
163
+ _apply(backup, name, index, item)
164
+ return backup
165
+
166
+
167
+ def _apply(backup: Backup, section: str, index: int, item: bytes) -> None:
168
+ if section == SECTION_PRESET:
169
+ name = decode_name(item[:NAME_LEN])
170
+ words = unpack_words(item[16:], PRESET_WORDS)
171
+ backup.presets.append(Preset(index + 1, name, words))
172
+ elif section == SECTION_SYSTEM:
173
+ backup.system = bytes(item[:SYSTEM_SIZE])
174
+ elif section == SECTION_RHYTHM:
175
+ backup.rhythm = bytes(item[:RHYTHM_SIZE])
176
+ elif section == SECTION_IR:
177
+ backup.irs.append(IrItem(index, decode_name(item[:16]), bytes(item[16:IR_ITEM])))
178
+
179
+
180
+ def load(path: str | Path) -> Backup:
181
+ return parse(Path(path).read_bytes())
182
+
183
+
184
+ def save(path: str | Path, backup: Backup) -> None:
185
+ Path(path).write_bytes(build(backup))