feat: sequence window, finer timeline, zone brightness to Wi-Fi drivers

- A sequence's length is a fixed window (window_beats / window_seconds), not its presets.
  The timeline is exactly the window long; clips past it are cut on save.
- The ruler adds finer ticks when zoomed in; Snap has Auto (follows the zoom), 0.25 s and 0.05 s.
  Steps and the window go down to 50 ms.
- Ctrl+wheel zooms around the pointer; the zoom buttons zoom around the last pointer position.
- Sequence start and the zone brightness slider reach Wi-Fi drivers (matched by hostname or MAC).
- A preset select with brightness also sends the brightness to Wi-Fi drivers, as ESP-NOW does.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
jimmyandClaude Haiku 5.5 committed 2026-11-16 21:22:17 +13:00
1 parent 581b751904
commit a1c8ce853b
21 files changed
+419 -318

No files matched your search

+1 -1
View File
@@ -1 +1 @@
{"ambiguous_scale": "", "code_only": false, "epoch": "v0.9.101-s36-g1339418af9f9", "excludes": [], "follow_symlinks": false, "full_clean": true, "gitignore": true, "graph_mtime_ns": 1794810394542523020, "graph_size": 5226482, "html_present": true, "no_cluster": false, "rcfile": "", "scan_digest": "79c37028c2fa169bb543b5193bebcca5", "scan_root": "/home/jimmy/projects/led-controller", "viz_node_limit": ""}
{"ambiguous_scale": "", "code_only": false, "epoch": "v0.9.101-s36-g1339418af9f9", "excludes": [], "follow_symlinks": false, "full_clean": true, "gitignore": true, "graph_mtime_ns": 1794811339600118161, "graph_size": 5230472, "html_present": true, "no_cluster": false, "rcfile": "", "scan_digest": "79c37028c2fa169bb543b5193bebcca5", "scan_root": "/home/jimmy/projects/led-controller", "viz_node_limit": ""}
+1 -1
View File
@@ -1 +1 @@
{"0": "7a92372f79629cba", "1": "2d791c43bb8436ec", "2": "1d6661269ee7ddec", "3": "658093cbc50e95df", "4": "7221607390cbf8f4", "5": "6ad0205b25376215", "6": "3f9c3996c2f91db5", "7": "c7c87e8c1669ebc3", "8": "e7e52a26e954e7ce", "9": "5e6bedc1d8578bcb", "10": "ba809033c2ac79db", "11": "15e440b773c9b1c1", "12": "cd9a1302e31a16be", "13": "38e3459e42de82ae", "14": "c430d980c0aa5400", "15": "5701d88bd0246098", "16": "72d4d367b9ad97c1", "17": "66823a2611e5de9a", "18": "156c5f743b028d1e", "19": "36e64b70bd3252ce", "20": "67a9e5cbf438aa81", "21": "4bb89f02eded6ed5", "22": "1447570e824fc4d5", "23": "62f89b153a7f074c", "24": "57a09027a46a37a4", "25": "e8bcfe2daf9c27fd", "26": "af92d1a97a660495", "27": "0c6a31b43c1528f4", "28": "f55b318ce2ea37bf", "29": "a5cce0735423723c", "30": "8c465f3df9b2ddbd", "31": "b63da06d6ca05666", "32": "6f1eb1b9b88ae70a", "33": "3225016905fc064c", "34": "3f2d040dbfab55b5", "35": "93e0f20aa2bb640b", "36": "6bc1e46289a61a87", "37": "bf9c16fdf5186711", "38": "438001396563b41e", "39": "d0ff09e1589219cc", "40": "d4ca824fee2fddbb", "41": "93b15b1e0802094d", "42": "ca5f38fabb644c68", "43": "6dc5a3d228885f0c", "44": "00eedb34d6d4d758", "45": "fd63a12ba730288d", "46": "e25101c697775651", "47": "232a8ec7bde4f06c", "48": "46b84e04c8a769a1", "49": "01bb51d3946bc98b", "50": "669d36e44980ad3b", "51": "c3eef28729a94247", "52": "f87e676751367882", "53": "141393a45638779c", "54": "13dd9e2842ab4a0c", "56": "973ac14a32bd0435", "57": "2ecebdcf40a907d5", "58": "b717d60767a4742a", "59": "d66ddb7b8d0e5377", "60": "4d82a4233c9bc88f", "61": "06de387944b6f979", "62": "50e29eb032567d0a", "63": "3f32204f50610f42", "64": "b099f2f64c3d1121", "65": "2b595be0fe1c1cf4", "66": "383b151eb4411452", "67": "0c75e37d14ea4be0", "68": "05aa41461f77a88a", "69": "5ea357e009193aee", "70": "9affb95b7a8926f7", "71": "05a210a1976248a2", "72": "1d9bb939049a306e", "73": "298efcf42a95f405", "74": "a50c316144a6002a", "75": "fe3f7fa17b6e9140", "76": "fae5563ac3b5ad8d", "77": "6006b6cc4bb17d38", "78": "74c26c47a62b8460", "79": "0aadcaffca2fec2f", "80": "b44b759b294e7fb1", "81": "2a44adbbdb7b2cc2", "82": "7d5560702e41f10c", "83": "57dfcce26469d644", "84": "49ada2108278ec5e", "85": "67e8988d64ef02c3", "86": "17b22093dfd4008f", "87": "186dd13162172b05", "88": "281e8bde953022f8", "89": "58ef71533f93a12a", "90": "4bc03d14d36cb508", "91": "8726692dfc1a3d69", "92": "3fa05329c52e7a31", "93": "c2ce778772ae9284", "94": "0d97fe007c3a0936", "95": "9dbeb95e43dc6aec", "96": "d11013acb5d45e73", "97": "38f7187e95766e7e", "98": "dc0fda9a9c5206f5", "99": "c46f05b1d5aad36d", "100": "8a68d6ebf88e07ea", "101": "e8c3d507c7523478", "102": "5e7048115c96c435", "103": "89850ee47c9ca738", "104": "6b44fd779534127a", "105": "98b16b4bcf978a30", "106": "002738beed77ef74", "107": "01172c7d40a936d1", "108": "fbdcfbea69ac263a", "109": "62dfdb23b2c54d82", "110": "05419fa6a91533bf", "111": "66b50b0357357d62", "112": "496a0a14d2f3f063", "113": "66e63867ee9ac604", "114": "fab5dd214febb09b", "115": "f3b1e77b5ff745de", "116": "2d5d657b0cb526af", "117": "1b4c47d15d2142f0", "118": "4b507a629ac7f04f", "119": "c394c3d1e26256c8", "120": "8059a64174d9729b", "121": "b77edb57c9058871", "122": "9b758d47bd1a6c69", "123": "3757904e987193d1", "124": "da462741dfe87d17", "125": "6da62559e5213a9e", "126": "198cf8c4d314f85d", "127": "682784ef7eb6ab79", "128": "24d10974d4bcceb3", "129": "93fc8b4ad7c9ca62", "130": "8363eed2536a6846", "131": "3d3f3acc7c0f77f0", "132": "95ef3791087ae3cb", "133": "4bf9ae36ecae2a53", "134": "692d38c636992a64", "135": "d8f24f323e8fd32f", "136": "69e80d35078aa3e0", "137": "bb459edeb899b14f", "138": "513f0c5816361dda", "139": "fe6e422923b8d6ef", "140": "7f4e0effc09d9671", "141": "bb477038ab0c5e8e", "142": "01c470ad572a2a84", "143": "9767524947f5d239", "144": "a7a26633381cc935", "145": "8fc084b6564c04cd", "146": "cb4b693c8a2db3d0", "147": "b031133b75382475", "148": "73b79ac1f6ea0d0f", "149": "7b4f76be902aa451", "150": "535ff56fa874156d", "151": "82887211cf2bedf5", "152": "d7b01ac313a993bf", "153": "a1afbf3a5362e984", "154": "7ab2338abe50e2d2", "155": "f1c77269c52723e7", "156": "f7b8f6a932f020e1", "157": "278ab211ccdf5147", "158": "1496a7273bd8cbf0", "159": "70c38a287cac17ff", "160": "1b3167ce48880094", "161": "d9b95efbe9a3ca0a", "162": "79347942af0064f9", "163": "ee9ad33fb556ea89", "164": "ff462f4575171eb0", "165": "5be380e898e13324", "166": "03cf19cd58994715", "167": "68a0452a8a24cf5d", "168": "c33017b892148689", "169": "3d3f4c5f67647202", "170": "982c977c10761a5f", "171": "c8052f332c3d2369", "172": "ffa84e66ab7f2c83", "173": "9bcf4d1a57c0ba2a", "174": "6ca582b7df7276a1", "175": "de377ed03b71265f", "176": "1fb6d892ae8678c7", "177": "580e0924c1fb2e8e", "178": "34be047eea580b62", "179": "84fca3c51ff10cc5", "180": "5ae949a86bd02dd3", "181": "040c831fbc62df23", "182": "09fe188418c42b7a", "183": "90b339bb352b5f47", "184": "01f3fbb5f39b9987", "185": "ced44d681e2ec183", "186": "ff963270b8878129", "187": "bb41b7312f4e3083", "188": "a08753a73e0ca7d5", "189": "0cadf82de76cac0c", "190Line truncated
{"0": "a610cb28f17cef73", "1": "2d791c43bb8436ec", "2": "ab64084e0052dd1b", "3": "658093cbc50e95df", "4": "7221607390cbf8f4", "5": "0caf080acb9b12ad", "6": "3f9c3996c2f91db5", "7": "34a60639c151cbd0", "8": "e7e52a26e954e7ce", "9": "5e6bedc1d8578bcb", "10": "ba809033c2ac79db", "11": "b9c59179a805e08c", "12": "cd9a1302e31a16be", "13": "38e3459e42de82ae", "14": "bcfa2e42371062a2", "15": "987507c585e16779", "16": "72d4d367b9ad97c1", "17": "444af52da7f39ddd", "18": "788dd67c0eadbecd", "19": "36e64b70bd3252ce", "20": "99ea36f8912d0ef2", "21": "79b95ef97d4700b6", "22": "ac91cec01ae960b1", "23": "f7ca8d8b6d520255", "24": "72da39bdd677d2e3", "25": "e8bcfe2daf9c27fd", "26": "0f80ea7bac6c9039", "27": "ca58d22fd1a3a52e", "28": "f55b318ce2ea37bf", "29": "a5cce0735423723c", "30": "8c465f3df9b2ddbd", "31": "b63da06d6ca05666", "32": "2e019193c0752668", "33": "9e3c0904b9295e16", "34": "3f2d040dbfab55b5", "35": "d1338d70484cd202", "36": "8805aeaadbaf49db", "37": "5324b1a99e477354", "38": "c591525e41c1071e", "39": "7792fe6a1a4fe215", "40": "39587d48ffe96a80", "41": "580288986bf53a6a", "42": "067f85563e8e1396", "43": "acc6c6ff89611c78", "44": "e6c1fb3302d8fb30", "45": "2c79b28433cd154f", "46": "c50d11b133bca75b", "47": "03fe0a282acec9db", "48": "46b84e04c8a769a1", "49": "01bb51d3946bc98b", "50": "b3170fc929fe488b", "51": "c3eef28729a94247", "52": "67d25c32c7f1851b", "53": "141393a45638779c", "54": "eb990a4a2c50f47f", "55": "9eb7c4a955a855b1", "56": "973ac14a32bd0435", "57": "c3f83d1d8be07123", "58": "b717d60767a4742a", "59": "8c1a9a091f018510", "60": "765124b369d33874", "61": "4c61a5703d5fbbe7", "62": "50e29eb032567d0a", "63": "3f32204f50610f42", "64": "b099f2f64c3d1121", "65": "5fb4148e68247a46", "66": "cf4381058dc8dbaf", "67": "2b3f9ea62a033127", "68": "75ca3af022bf324d", "69": "453697bf22512b76", "70": "9affb95b7a8926f7", "71": "15cf09a689cf7a7c", "72": "0c38ccfbb84bf400", "73": "298efcf42a95f405", "74": "7b7f2ff17d5229fe", "75": "bf9874092cf0e2f3", "76": "7b12c859e68864eb", "77": "dfbbccb57587942f", "78": "74c26c47a62b8460", "79": "0aadcaffca2fec2f", "80": "b44b759b294e7fb1", "81": "2a44adbbdb7b2cc2", "82": "7d5560702e41f10c", "83": "43378dfcd2a5ace4", "84": "67b1f6a3ce0f587a", "85": "67e8988d64ef02c3", "86": "dc40e610bd3e823c", "87": "186dd13162172b05", "88": "281e8bde953022f8", "89": "58ef71533f93a12a", "90": "3b5110fc6f9cd20c", "91": "8726692dfc1a3d69", "92": "282caf1c21d981d6", "93": "c2ce778772ae9284", "94": "62f0da0903782d66", "95": "9dbeb95e43dc6aec", "96": "5a8fe84a8d552e25", "97": "b549e617825efc45", "98": "dc0fda9a9c5206f5", "99": "890a48fa62d5f714", "100": "8a68d6ebf88e07ea", "101": "e8c3d507c7523478", "102": "5e7048115c96c435", "103": "89850ee47c9ca738", "104": "6b44fd779534127a", "105": "98b16b4bcf978a30", "106": "226360a4a30bd9da", "107": "01172c7d40a936d1", "108": "c8fe8e2e7b64ebde", "109": "62dfdb23b2c54d82", "110": "97de49590108482c", "111": "66b50b0357357d62", "112": "9ff6b8e792b1dc12", "113": "66e63867ee9ac604", "114": "fab5dd214febb09b", "115": "f3b1e77b5ff745de", "116": "2d5d657b0cb526af", "117": "7c7cc5a2e3148119", "118": "4b507a629ac7f04f", "119": "c394c3d1e26256c8", "120": "8059a64174d9729b", "121": "b77edb57c9058871", "122": "9b758d47bd1a6c69", "123": "3757904e987193d1", "124": "2d9611dc684d6e89", "125": "9cdcf0ff0ef4424d", "126": "949c2677894108f8", "127": "682784ef7eb6ab79", "128": "24d10974d4bcceb3", "129": "93fc8b4ad7c9ca62", "130": "8363eed2536a6846", "131": "90abbabbadb7aacd", "132": "95ef3791087ae3cb", "133": "6a207a64f4155fbe", "134": "692d38c636992a64", "135": "d8f24f323e8fd32f", "136": "69e80d35078aa3e0", "137": "1b9acfc57c8d7103", "138": "513f0c5816361dda", "139": "fe6e422923b8d6ef", "140": "7f4e0effc09d9671", "141": "bb477038ab0c5e8e", "142": "01c470ad572a2a84", "143": "b99994435600ea12", "144": "a7a26633381cc935", "145": "8fc084b6564c04cd", "146": "cb4b693c8a2db3d0", "147": "b031133b75382475", "148": "73b79ac1f6ea0d0f", "149": "e5acc25cbe50f6f7", "150": "535ff56fa874156d", "151": "82887211cf2bedf5", "152": "d7b01ac313a993bf", "153": "a1afbf3a5362e984", "154": "7ab2338abe50e2d2", "155": "f1c77269c52723e7", "156": "f7b8f6a932f020e1", "157": "278ab211ccdf5147", "158": "1496a7273bd8cbf0", "159": "70c38a287cac17ff", "160": "1b3167ce48880094", "161": "d9b95efbe9a3ca0a", "162": "79347942af0064f9", "163": "ee9ad33fb556ea89", "164": "ff462f4575171eb0", "165": "5be380e898e13324", "166": "03cf19cd58994715", "167": "cd102d616d7e4f45", "169": "3d3f4c5f67647202", "170": "982c977c10761a5f", "171": "c8052f332c3d2369", "172": "ffa84e66ab7f2c83", "173": "9bcf4d1a57c0ba2a", "174": "6ca582b7df7276a1", "175": "de377ed03b71265f", "176": "1fb6d892ae8678c7", "177": "fe6abbd15dd79e37", "180": "5ae949a86bd02dd3", "181": "040c831fbc62df23", "182": "09fe188418c42b7a", "183": "90b339bb352b5f47", "184": "9bea138bf15aa79a", "185": "ced44d681e2ec183", "186": "ff963270b8878129", "187": "bb41b7312f4e3083", "188": "a08753a73e0ca7d5", "189": "0cadf82de76cac0c", "190": "f40e0095eef0a2a1", "191": "2427a73600db473c", "192"Line truncated
+26 -29
View File
@@ -1,6 +1,6 @@
{
"0": "IdfDevice",
"2": "machine.py",
"2": "Pin",
"5": "cJSON",
"6": "create_app",
"8": "ab",
@@ -11,11 +11,11 @@
"17": "SerialTransport",
"18": "esp_err.h",
"21": "freertos.c",
"22": "LedSimulatorApp",
"22": "bridge.c",
"23": "cJSON_IsString",
"24": "cJSON_Delete",
"25": "Microdot",
"26": "ctrl_msg.cpp",
"26": "KeyName",
"27": "seqplay.c",
"29": "binary_envelope.py",
"31": "PyboardCommand",
@@ -23,7 +23,7 @@
"33": "httpd_parse.c",
"34": "test_sequences.py",
"35": "cJSON_Delete",
"37": "http_parser",
"37": "stdio",
"38": "socket",
"40": "xSemaphoreGive",
"41": "WS2812",
@@ -31,10 +31,11 @@
"43": "usb_cfg.cpp",
"44": "httpd_handle_t",
"45": "http_parser.h",
"46": "http_parser.c",
"50": "exchange",
"46": "bench.c",
"50": "esp_glue.c",
"52": "sys",
"54": "httpd_sess.c",
"55": "sim_glue.c",
"56": "test_outputs.py",
"57": "httpd_config",
"58": "gallery.js",
@@ -43,55 +44,55 @@
"64": "ddp_test.py",
"65": "ESPNow",
"66": "httpd_handle_t",
"67": "BridgeSim",
"67": "status_get_handler",
"68": "httpd_uri.c",
"69": "led_strip_rmt_encoder.c",
"71": "rel.c",
"72": "httpd_data",
"74": "presets.cpp",
"75": "Bench test: S3 controller and one LED driver",
"75": "v1 driver messages (long/short keys)",
"77": "espnow_link.cpp",
"78": "sim_split.js",
"80": "artnet_dmx.py",
"81": "OutputManager",
"82": "events",
"83": "web.c",
"83": "pytest",
"84": "unique",
"86": "net.cpp",
"89": "api_call_t",
"90": "Sender",
"92": "bridge_serial.c",
"92": "esp_log.h",
"93": "events",
"94": "Type",
"96": "esp_timer_create",
"97": "v1 driver messages (long/short keys)",
"94": "send_frame",
"96": "net.cpp",
"97": "machine.py",
"99": "httpd_txrx.c",
"100": "test_routes.py",
"102": "httpd_req_aux",
"106": "USB ESP-NOW bridge",
"107": "main",
"108": "rig_seed.py",
"110": "run_soak",
"112": "test_patterns.py",
"108": "BridgeSim",
"110": "soft_get",
"112": "EMSCRIPTEN_KEEPALIVE",
"114": "dependencies",
"117": "outputs.c",
"124": "esp_httpd_priv.h",
"125": "led_strip_spi_dev.c",
"126": "esp_http_server_dispatch_event",
"126": "app_main",
"128": "httpd_ctrl_data",
"131": "flags",
"131": "beat_start",
"132": "microdot.py",
"133": "http_parser_url_fields",
"133": "pattern_def_t",
"135": "PatternPlayer",
"136": "HttpDevice",
"137": "time",
"137": "on_sent",
"139": "sim_demo.py",
"141": "DMX Driver Art-Net and serial gateway",
"143": "test_rig_sim.py",
"144": "settings_editor.js",
"147": "bootloader/CMakeFiles/4.0.3/CompilerIdC/CMakeCCompilerId.c",
"148": "postinst",
"149": "api_error",
"149": "patterns.c",
"150": "postrm",
"151": "prerm",
"152": "vendor.sh",
@@ -107,22 +108,18 @@
"165": "test_presets.py",
"166": "mdns_host.c",
"167": "SerialDMX",
"168": "NeoPixel",
"169": "build_sim_web.sh",
"170": "dependencies",
"177": "espnow_tx.c",
"178": "mac_str",
"179": "load_config",
"184": "beat.c",
"177": "bulk_task",
"184": "vTaskDelete",
"197": "cJSON_GetObjectItem",
"198": "Transport",
"199": "httpd_req",
"200": "HTTPException",
"201": "http_parser_type",
"202": "json",
"203": "desktop_main.c",
"203": "string",
"204": "_simlink_proc.py",
"205": "esp_http_server.h",
"205": "httpd_ws_frame",
"207": "relay_forward",
"209": "WLAN",
"210": "fetch_cache.js",
+1 -1
View File
@@ -1,7 +1,7 @@
# Graph Report - led-controller (2026-11-16)
## Corpus Check
- 382 files · ~673,458 words
- 382 files · ~673,498 words
- Verdict: corpus is large enough that graph structure adds value.
- Unclassified: 1317 file(s) not represented in the graph (top: .obj 884, .cmake 160, .a 104)
+1 -1
View File
@@ -1 +1 @@
{"directed":false,"multigraph":false,"graph":{"hyperedges":[{"id":"audio_page_endpoints","label":"Audio page live endpoints","nodes":["web_audio_status","web_audio_beats","web_audio_audio_wav","web_audio_time","web_audio_tap_ep"],"relation":"participate_in","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"web/audio.html"},{"id":"beat_latency_measurement","label":"Beat latency measurement methods","nodes":["docs_api_bench_endpoints","docs_bench_test_usb_latency","docs_bench_test_logic_analyzer","docs_bench_test_beat_lead"],"relation":"participate_in","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/BENCH_TEST.md"},{"id":"brightness_combination","label":"Combined brightness factors","nodes":["docs_api_combined_brightness","docs_api_settings","docs_api_groups","docs_api_devices","docs_api_zones"],"relation":"participate_in","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/API.md"},{"id":"color_picker_feature_set","label":"Color picker feature set","nodes":["docs_mockups_images_color_picker_demo_hsb_color_model","docs_mockups_images_color_picker_demo_hex_rgb_input","docs_mockups_images_color_picker_demo_keyboard_accessibility","docs_mockups_images_color_picker_demo_cross_platform_consistency"],"relation":"form","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/mockups/images/color-picker-demo.png"},{"id":"docs_help_edit_mode_management","label":"Edit-mode-only management features","nodes":["docs_help_edit_mode","docs_help_zones_modal","docs_help_send_presets","docs_help_patterns_dialog","docs_help_colour_palette","docs_help_presets_list"],"relation":"participate_in","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/help.pdf"},{"id":"docs_help_preset_editor_actions","label":"Preset editor actions (Try, Default, Save & Send, Remove from zone)","nodes":["docs_help_try_action","docs_help_default_preset","docs_help_save_and_send","docs_help_remove_from_zone"],"relation":"form","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/help.pdf"},{"id":"docs_images_help_mobile_menu_header_actions","label":"Header actions aggregated in mobile Menu","nodes":["docs_images_help_mobile_menu_run_mode","docs_images_help_mobile_menu_profiles","docs_images_help_mobile_menu_tabs","docs_images_help_mobile_menu_presets","docs_images_help_mobile_menu_help"],"relation":"form","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/images/help/mobile-menu.svg"},{"id":"docs_mockups_device_modal_flow","label":"Device/Group Modal Flow","nodes":["docs_mockups_device_management_showadddevicemodal","docs_mockups_device_management_showaddgroupmodal","docs_mockups_device_management_closemodal","docs_mockups_device_management_savedevice"],"relation":"participate_in","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/mockups/device-management.html"},{"id":"docs_mockups_images_index_ui_mockup_set","label":"LED Driver UI Mockup Set","nodes":["docs_mockups_images_index_dashboard_mockup","docs_mockups_images_index_pattern_selector_mockup","docs_mockups_images_index_device_management_mockup","docs_mockups_images_index_settings_mockup","docs_mockups_images_index_presets_mockup"],"relation":"form","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/mockups/images/index.png"},{"id":"docs_mockups_images_pattern_selector_led_patterns","label":"Selectable LED Patterns","nodes":["docs_mockups_images_pattern_selector_on","docs_mockups_images_pattern_selector_off","docs_mockups_images_pattern_selector_blink","docs_mockups_images_pattern_selector_chase","docs_mockups_images_pattern_selector_circle","docs_mockups_images_pattern_selector_pulse","docs_mockups_images_pattern_selector_rainbow","docs_mockups_images_pattern_selector_transition"],"relation":"form","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/mockups/images/pattern-selector.png"},{"id":"docs_mockups_preset_schema","label":"Preset/pattern configuration schema (pattern, colors, delay, step increment, N1-N8)","nodes":["docs_mockups_presets_led_patterns","docs_mockups_presets_delay","docs_mockups_presets_step_increment","docs_mockups_presets_n_parameters","docs_mockups_presets_step_offset"],"relation":"form","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/mockups/presets.html"},{"id":"docs_mockups_settings_sections","label":"Device settings sections","nodes":["docs_mockups_settings_basic_settings","docs_mockups_settings_pattern_settings","docs_mockups_settings_advanced_settings","docs_mockups_settings_network_settings"],"relation":"form","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/mockups/settings.html"},{"id":"docs_mockups_ui_mockup_suite","label":"LED Driver UI Mockup Suite","nodes":["docs_mockups_index","docs_mockups_dashboard","docs_mockups_pattern_selector","docs_mockups_device_management","docs_mockups_readme_settings_mockup","docs_mockups_color_picker_readme_presets_mockup"],"relation":"foLine truncated
{"directed":false,"multigraph":false,"graph":{"hyperedges":[{"id":"audio_page_endpoints","label":"Audio page live endpoints","nodes":["web_audio_status","web_audio_beats","web_audio_audio_wav","web_audio_time","web_audio_tap_ep"],"relation":"participate_in","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"web/audio.html"},{"id":"beat_latency_measurement","label":"Beat latency measurement methods","nodes":["docs_api_bench_endpoints","docs_bench_test_usb_latency","docs_bench_test_logic_analyzer","docs_bench_test_beat_lead"],"relation":"participate_in","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/BENCH_TEST.md"},{"id":"brightness_combination","label":"Combined brightness factors","nodes":["docs_api_combined_brightness","docs_api_settings","docs_api_groups","docs_api_devices","docs_api_zones"],"relation":"participate_in","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/API.md"},{"id":"color_picker_feature_set","label":"Color picker feature set","nodes":["docs_mockups_images_color_picker_demo_hsb_color_model","docs_mockups_images_color_picker_demo_hex_rgb_input","docs_mockups_images_color_picker_demo_keyboard_accessibility","docs_mockups_images_color_picker_demo_cross_platform_consistency"],"relation":"form","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/mockups/images/color-picker-demo.png"},{"id":"docs_help_edit_mode_management","label":"Edit-mode-only management features","nodes":["docs_help_edit_mode","docs_help_zones_modal","docs_help_send_presets","docs_help_patterns_dialog","docs_help_colour_palette","docs_help_presets_list"],"relation":"participate_in","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/help.pdf"},{"id":"docs_help_preset_editor_actions","label":"Preset editor actions (Try, Default, Save & Send, Remove from zone)","nodes":["docs_help_try_action","docs_help_default_preset","docs_help_save_and_send","docs_help_remove_from_zone"],"relation":"form","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/help.pdf"},{"id":"docs_images_help_mobile_menu_header_actions","label":"Header actions aggregated in mobile Menu","nodes":["docs_images_help_mobile_menu_run_mode","docs_images_help_mobile_menu_profiles","docs_images_help_mobile_menu_tabs","docs_images_help_mobile_menu_presets","docs_images_help_mobile_menu_help"],"relation":"form","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/images/help/mobile-menu.svg"},{"id":"docs_mockups_device_modal_flow","label":"Device/Group Modal Flow","nodes":["docs_mockups_device_management_showadddevicemodal","docs_mockups_device_management_showaddgroupmodal","docs_mockups_device_management_closemodal","docs_mockups_device_management_savedevice"],"relation":"participate_in","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/mockups/device-management.html"},{"id":"docs_mockups_images_index_ui_mockup_set","label":"LED Driver UI Mockup Set","nodes":["docs_mockups_images_index_dashboard_mockup","docs_mockups_images_index_pattern_selector_mockup","docs_mockups_images_index_device_management_mockup","docs_mockups_images_index_settings_mockup","docs_mockups_images_index_presets_mockup"],"relation":"form","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/mockups/images/index.png"},{"id":"docs_mockups_images_pattern_selector_led_patterns","label":"Selectable LED Patterns","nodes":["docs_mockups_images_pattern_selector_on","docs_mockups_images_pattern_selector_off","docs_mockups_images_pattern_selector_blink","docs_mockups_images_pattern_selector_chase","docs_mockups_images_pattern_selector_circle","docs_mockups_images_pattern_selector_pulse","docs_mockups_images_pattern_selector_rainbow","docs_mockups_images_pattern_selector_transition"],"relation":"form","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/mockups/images/pattern-selector.png"},{"id":"docs_mockups_preset_schema","label":"Preset/pattern configuration schema (pattern, colors, delay, step increment, N1-N8)","nodes":["docs_mockups_presets_led_patterns","docs_mockups_presets_delay","docs_mockups_presets_step_increment","docs_mockups_presets_n_parameters","docs_mockups_presets_step_offset"],"relation":"form","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/mockups/presets.html"},{"id":"docs_mockups_settings_sections","label":"Device settings sections","nodes":["docs_mockups_settings_basic_settings","docs_mockups_settings_pattern_settings","docs_mockups_settings_advanced_settings","docs_mockups_settings_network_settings"],"relation":"form","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/mockups/settings.html"},{"id":"docs_mockups_ui_mockup_suite","label":"LED Driver UI Mockup Suite","nodes":["docs_mockups_index","docs_mockups_dashboard","docs_mockups_pattern_selector","docs_mockups_device_management","docs_mockups_readme_settings_mockup","docs_mockups_color_picker_readme_presets_mockup"],"relation":"foLine truncated
+3 -3
View File
@@ -972,9 +972,9 @@
"semantic_hash": ""
},
"web/static/presets.js": {
"mtime": 1794741501.8161104,
"seen": 1794743453.795806,
"ast_hash": "c22036b473efbd2868af18a5686984a1",
"mtime": 1794810171.8763797,
"seen": 1794810395.0019708,
"ast_hash": "25f617a0187883af98b20bdc91252cc9",
"semantic_hash": ""
},
"web/static/profiles.js": {
+194 -217
View File
@@ -1,24 +1,24 @@
# Graph Report - led-controller (2026-11-16)
## Corpus Check
- 382 files · ~673,498 words
- 382 files · ~673,770 words
- Verdict: corpus is large enough that graph structure adds value.
- Unclassified: 1317 file(s) not represented in the graph (top: .obj 884, .cmake 160, .a 104)
## Summary
- 4727 nodes · 13754 edges · 219 communities (154 shown, 65 thin omitted)
- Extraction: 75% EXTRACTED · 25% INFERRED · 0% AMBIGUOUS · INFERRED: 3504 edges (avg confidence: 0.85)
- 4731 nodes · 13767 edges · 216 communities (149 shown, 67 thin omitted)
- Extraction: 75% EXTRACTED · 25% INFERRED · 0% AMBIGUOUS · INFERRED: 3505 edges (avg confidence: 0.85)
- Token cost: 0 input · 0 output
## Graph Freshness
- Built from commit: `698c1463`
- Built from commit: `581b7519`
- Run `git rev-parse HEAD` and compare to check if the graph is stale.
- Run `graphify update .` after code changes (no API cost).
## Community Hubs (Navigation)
- IdfDevice
- htmx Library
- machine.py
- Pin
- Browser Tests & Mockup Images
- Audio UI (JS)
- cJSON
@@ -38,11 +38,11 @@
- led_strip Component Docs
- Art-Net Output
- freertos.c
- LedSimulatorApp
- bridge.c
- cJSON_IsString
- cJSON_Delete
- Microdot
- ctrl_msg.cpp
- KeyName
- seqplay.c
- Devices UI (JS)
- binary_envelope.py
@@ -53,7 +53,7 @@
- test_sequences.py
- cJSON_Delete
- API Docs: Outputs & Audio
- http_parser
- stdio
- socket
- Beat Detection DSP (C)
- xSemaphoreGive
@@ -62,15 +62,16 @@
- usb_cfg.cpp
- httpd_handle_t
- http_parser.h
- http_parser.c
- bench.c
- USB Latency Tools
- Colour Picker JS
- Chromium Colour Picker JS
- exchange
- esp_glue.c
- API Tests: Devices
- sys
- mpremote Transport
- httpd_sess.c
- sim_glue.c
- test_outputs.py
- httpd_config
- gallery.js
@@ -82,7 +83,7 @@
- ddp_test.py
- ESPNow
- httpd_handle_t
- BridgeSim
- status_get_handler
- httpd_uri.c
- led_strip_rmt_encoder.c
- Index Page Modals
@@ -90,7 +91,7 @@
- httpd_data
- Microdot WebSocket (dmx)
- presets.cpp
- Bench test: S3 controller and one LED driver
- v1 driver messages (long/short keys)
- Controller Overview & OTA Docs
- espnow_link.cpp
- sim_split.js
@@ -98,7 +99,7 @@
- artnet_dmx.py
- OutputManager
- events
- web.c
- pytest
- unique
- ESP-NOW Sender Bridge
- net.cpp
@@ -107,12 +108,12 @@
- api_call_t
- Sender
- Microdot Routing (dmx)
- bridge_serial.c
- esp_log.h
- events
- Type
- send_frame
- Microdot Auth (dmx)
- esp_timer_create
- v1 driver messages (long/short keys)
- net.cpp
- machine.py
- DMX Preset Model
- httpd_txrx.c
- test_routes.py
@@ -123,11 +124,11 @@
- Driver Pattern Docs
- USB ESP-NOW bridge
- main
- rig_seed.py
- BridgeSim
- Driver Message API Docs
- run_soak
- soft_get
- led_strip Manifest
- test_patterns.py
- EMSCRIPTEN_KEEPALIVE
- Outputs UI (JS)
- dependencies
- Help PDF: Overview
@@ -141,17 +142,17 @@
- Pattern Contract
- esp_httpd_priv.h
- led_strip_spi_dev.c
- esp_http_server_dispatch_event
- app_main
- Numpad Shortcuts (JS)
- httpd_ctrl_data
- Colour Picker Demo Image
- Settings Mockup Image
- flags
- beat_start
- microdot.py
- http_parser_url_fields
- pattern_def_t
- PatternPlayer
- HttpDevice
- time
- on_sent
- Help: Colour Palette Image
- sim_demo.py
- LED Driver README
@@ -161,7 +162,7 @@
- settings_editor.js
- Help PDF: Modes
- Help: Tab Preset Strip Image
- api_error
- patterns.c
- vendor.sh
- app.js
- RMT Example Manifest
@@ -171,7 +172,6 @@
- test_presets.py
- mdns_host.c
- SerialDMX
- NeoPixel
- build_sim_web.sh
- dependencies
- List Search (JS)
@@ -179,13 +179,11 @@
- led-test Manifest
- VPN Autoconnect Script
- graphify Instructions
- espnow_tx.c
- mac_str
- load_config
- bulk_task
- bulk.sh Script
- deploy.sh Script
- Driver install.sh
- beat.c
- vTaskDelete
- led-tool install.sh
- Help PDF Build Script
- Web Build Script
@@ -194,11 +192,10 @@
- Transport
- httpd_req
- HTTPException
- http_parser_type
- json
- desktop_main.c
- string
- _simlink_proc.py
- esp_http_server.h
- httpd_ws_frame
- relay_forward
- WLAN
- MultiDict
@@ -226,12 +223,12 @@
bridge/README.md → main/bridge_serial.c
- `Preset editor modal` --semantically_similar_to--> `Preset fields (pattern, colors, delay, brightness, auto, n1-n6)` [INFERRED] [semantically similar]
web/templates/index.html → led-driver/docs/API.md
- `Build and run` --references--> `info()` [INFERRED]
desktop/README.md → tools/ota.py
- `status_payload()` --calls--> `mic_error()` [INFERRED]
main/audio_api.c → desktop/port/src/mic_alsa.c
- `audio_handler()` --calls--> `mic_is_open()` [INFERRED]
main/audio_api.c → desktop/port/src/mic_alsa.c
- `How it is built` --references--> `http_parser` [INFERRED]
desktop/README.md → desktop/third_party/http_parser/http_parser.h
## Import Cycles
- None detected.
@@ -262,20 +259,16 @@
- **ESP-NOW driver delivery layers** — docs_api_binary_envelope, docs_api_delivery_digest, docs_bench_test_reliable_link, docs_bench_test_beat_double_send [INFERRED 0.85]
- **v1 message handling on driver** — led_driver_docs_api_v1_message, led_driver_docs_patterns_process_data_flow, led_driver_docs_patterns_pattern_registry, led_driver_docs_patterns_preset_short_keys, led_driver_docs_api_select_message [INFERRED 0.85]
## Communities (219 total, 65 thin omitted)
## Communities (216 total, 67 thin omitted)
### Community 0 - "IdfDevice"
Cohesion: 0.09
Nodes (8): _hex_rgb(), _idf_post(), _idf_show(), _preset_content(), print_settings(), run_idf(), IdfDevice, probe()
Cohesion: 0.10
Nodes (7): _hex_rgb(), _idf_post(), _idf_show(), _preset_content(), run_idf(), IdfDevice, probe()
### Community 1 - "htmx Library"
Cohesion: 0.08
Nodes (101): a(), Ae(), an(), at(), B(), be(), bn(), bt() (+93 more)
### Community 2 - "machine.py"
Cohesion: 0.10
Nodes (3): DMX, Pin, WDT
### Community 3 - "Browser Tests & Mockup Images"
Cohesion: 0.06
Nodes (17): generate_image(), generate_with_html2image(), generate_with_playwright(), generate_with_selenium(), main(), browser(), _browser_sleep(), BrowserTest (+9 more)
@@ -286,15 +279,15 @@ Nodes (58): applyAudioStatus(), applyServerAudioUiFields(), audioRunPreferredDev
### Community 5 - "cJSON"
Cohesion: 0.07
Nodes (62): buffer_skip_whitespace(), case_insensitive_strcmp(), cast_away_const(), cJSON_AddItemReferenceToArray(), cJSON_AddItemToObjectCS(), cJSON_AddRawToObject(), cJSON_bool, cJSON_Compare() (+54 more)
Nodes (64): add_item_to_array(), add_item_to_object(), buffer_skip_whitespace(), case_insensitive_strcmp(), cast_away_const(), cJSON_AddItemReferenceToArray(), cJSON_AddItemToObjectCS(), cJSON_AddNullToObject() (+56 more)
### Community 6 - "create_app"
Cohesion: 0.12
Nodes (6): create_app(), serial_ports(), ws_handler(), list_serial_ports(), main(), output_tick()
### Community 7 - "led-tool Device CLI"
Cohesion: 0.07
Nodes (16): download_presets(), download_settings(), _get_ordered_actions(), main(), resolve_flash_binary(), upload_presets(), upload_settings(), copy_file() (+8 more)
Cohesion: 0.06
Nodes (17): download_presets(), download_settings(), _get_ordered_actions(), main(), print_settings(), resolve_flash_binary(), upload_presets(), upload_settings() (+9 more)
### Community 8 - "ab"
Cohesion: 0.11
@@ -310,7 +303,7 @@ Nodes (46): Pi Animation Engine (src/engine), docs/API.md, Beat Counter and Phas
### Community 11 - "seq_timeline.js"
Cohesion: 0.11
Nodes (59): seqTl, seqTlOnOpen(), TL_COLORS, tlAddAt(), tlAddTrack(), tlBpm(), tlBtn(), tlBuildSnap() (+51 more)
Nodes (61): seqTl, seqTlOnOpen(), TL_COLORS, tlAddAt(), tlAddTrack(), tlBpm(), tlBtn(), tlBuildSnap() (+53 more)
### Community 12 - "Presets UI (JS)"
Cohesion: 0.09
@@ -322,23 +315,23 @@ Nodes (42): applyBrightnessSliders(), applyZoneContentKindEditModal(), clamp255(
### Community 14 - "sim_rig.c"
Cohesion: 0.12
Nodes (45): list_pulse_sources(), cJSON_AddObjectToObject(), cJSON_Delete(), cJSON_Parse(), defaults(), api_sequence_defaults(), db_root(), load_file() (+37 more)
Nodes (40): cJSON_AddObjectToObject(), cJSON_IsObject(), cJSON_Print(), api_migrate_sequences(), colors_from(), palette_colors(), api_handler(), config_json() (+32 more)
### Community 15 - "new_id"
Cohesion: 0.09
Nodes (11): new_id(), test_preset_round_trip(), test_profile_import_folds_animation_ids(), test_profile_round_trip(), test_sequence_round_trip(), test_clone(), test_clone_default_name(), test_delete_removes_from_profile() (+3 more)
Cohesion: 0.08
Nodes (12): new_id(), test_preset_round_trip(), test_profile_import_folds_animation_ids(), test_profile_round_trip(), test_sequence_round_trip(), test_window_is_kept(), test_clone(), test_clone_default_name() (+4 more)
### Community 16 - "Sequences UI (JS)"
Cohesion: 0.11
Nodes (33): addSeqTarget(), addSequenceToTab(), addTargetsPerDriver(), appendZoneSequenceTiles(), applySequenceSwitchWaitFromServer(), buildStepPlaySelect(), createSequenceTileRow(), deleteCurrentSequence() (+25 more)
### Community 17 - "SerialTransport"
Cohesion: 0.11
Nodes (4): SerialIntercept, SerialTransport, TransportError, TransportExecError
Cohesion: 0.14
Nodes (3): SerialIntercept, SerialTransport, TransportError
### Community 18 - "esp_err.h"
Cohesion: 0.04
Nodes (24): on_eth_down(), on_got_ip(), heap_caps_malloc(), esp_fill_random(), esp_get_free_heap_size(), esp_get_minimum_free_heap_size(), esp_log_level_set(), esp_log_set_vprintf() (+16 more)
Cohesion: 0.10
Nodes (3): esp_http_server_event_data, http_method, clamp8()
### Community 19 - "led_strip Component Docs"
Cohesion: 0.10
@@ -350,27 +343,27 @@ Nodes (10): ArtNet, as_channels(), build_artdmx(), _ip_bytes(), _pad(), port_lo(
### Community 21 - "freertos.c"
Cohesion: 0.06
Nodes (51): bridge_eth_start(), app_main(), ctl_open(), mic_start(), udp_open(), httpd_os_thread_create(), httpd_os_thread_handle(), make_deadline() (+43 more)
Nodes (51): bridge_eth_start(), app_main(), ctl_open(), mic_start(), udp_open(), make_deadline(), queue_send(), sem_give() (+43 more)
### Community 22 - "LedSimulatorApp"
Cohesion: 0.13
Nodes (4): lan_ip(), _hex(), LedSimulatorApp, main()
### Community 22 - "bridge.c"
Cohesion: 0.10
Nodes (26): vTaskDelay(), activate(), bridge_board_set_channel(), bridge_mic(), bridge_ports_json(), bridge_set_all(), connect_udp(), ctl_rx_task() (+18 more)
### Community 23 - "cJSON_IsString"
Cohesion: 0.07
Nodes (93): cJSON, child, cJSON_DeleteItemFromArray(), cJSON_DetachItemFromArray(), cJSON_GetArrayItem(), cJSON_GetArraySize(), cJSON_GetStringValue(), cJSON_InsertItemInArray() (+85 more)
Cohesion: 0.06
Nodes (104): cJSON, child, cJSON_DeleteItemFromArray(), cJSON_DetachItemFromArray(), cJSON_DetachItemFromObject(), cJSON_DetachItemViaPointer(), cJSON_GetArrayItem(), cJSON_GetArraySize() (+96 more)
### Community 24 - "cJSON_Delete"
Cohesion: 0.15
Nodes (44): net_ap_on(), net_sta_status(), patterns_get(), api_fn_t, api_http_entry(), api_req_t, api_route_t, app_js_get() (+36 more)
Cohesion: 0.14
Nodes (46): ddp_set_enabled(), net_ap_on(), net_sta_status(), add_uri(), api_fn_t, api_http_entry(), api_req_t, api_route_t (+38 more)
### Community 26 - "ctrl_msg.cpp"
Cohesion: 0.15
Nodes (23): apply_device_config(), apply_presets(), apply_v1(), cstr(), ctrl_handle(), decode_default(), decode_presets(), decode_select() (+15 more)
### Community 26 - "KeyName"
Cohesion: 0.50
Nodes (4): KeyName, longk, shortk, long_name()
### Community 27 - "seqplay.c"
Cohesion: 0.12
Nodes (44): engine_zone_current(), add_id(), advance_time(), anchor_bar(), audio_drives(), bit(), chase_mask(), chase_move() (+36 more)
Cohesion: 0.09
Nodes (63): audio_api_resume_mic(), mic_follow_setting(), engine_zone_current(), engine_zone_note(), espnow_tx_set_mic_beats(), add_id(), advance_time(), anchor_bar() (+55 more)
### Community 28 - "Devices UI (JS)"
Cohesion: 0.10
@@ -385,40 +378,40 @@ Cohesion: 0.11
Nodes (25): Chromium-style Color Picker Demo, ColorPickerChromium Component, updateColors() (Chromium demo), Custom Color Picker Demo, updateColors() (standard demo), Custom Colour Picker README, POST /api/colors (example), ColorPicker Component (+17 more)
### Community 32 - "cJSON_CreateObject"
Cohesion: 0.10
Nodes (68): add_item_to_array(), add_item_to_object(), cJSON_AddArrayToObject(), cJSON_AddBoolToObject(), cJSON_AddFalseToObject(), cJSON_AddItemToArray(), cJSON_AddItemToObject(), cJSON_AddNullToObject() (+60 more)
Cohesion: 0.08
Nodes (88): list_pulse_sources(), cJSON_AddArrayToObject(), cJSON_AddBoolToObject(), cJSON_AddFalseToObject(), cJSON_AddItemToArray(), cJSON_AddItemToObject(), cJSON_AddNumberToObject(), cJSON_AddStringToObject() (+80 more)
### Community 33 - "httpd_parse.c"
Cohesion: 0.16
Nodes (25): cb_header_field(), cb_header_value(), cb_headers_complete(), cb_no_body(), cb_on_body(), cb_url(), httpd_cookie_key_value(), httpd_get_raw_req_data() (+17 more)
Cohesion: 0.06
Nodes (58): httpd_config_t, cb_header_field(), cb_header_value(), cb_headers_complete(), cb_no_body(), cb_on_body(), cb_url(), continue_parsing() (+50 more)
### Community 34 - "test_sequences.py"
Cohesion: 0.17
Nodes (24): clock(), make(), presets(), test_beat_and_time_lanes_together(), test_chase_moves_and_bounces(), test_editing_stops_playback(), test_legacy_animation_kind_plays_once(), test_looping_sequence_as_clip_plays_once() (+16 more)
### Community 35 - "cJSON_Delete"
Cohesion: 0.12
Nodes (45): cJSON_GetObjectItem(), cJSON_IsNull(), cJSON_IsNumber(), cJSON_IsTrue(), setting_int(), have_static_ips(), parse_static(), settings_bool() (+37 more)
Cohesion: 0.17
Nodes (33): cJSON_IsNull(), cJSON_IsNumber(), int_field(), api_apply_driver_cfg(), api_effective_brightness(), api_identify_group(), clamp255(), create_device() (+25 more)
### Community 36 - "API Docs: Outputs & Audio"
Cohesion: 0.16
Cohesion: 0.17
Nodes (21): Audio API /api/audio and /audio page routes, Profile/preset/sequence JSON bundles (import/export), Combined brightness (global x groups x device x zone), /db collection export and replace, Devices resource /devices, Driver group membership lists (group ids, z<zone id>), Device groups resource /groups, LED Controller HTTP/JSON API (+13 more)
### Community 37 - "http_parser"
Cohesion: 0.12
Nodes (21): continue_parsing(), parse_block(), http_message_needs_eof(), http_parser, content_length, data, http_parser_execute(), flags (+13 more)
### Community 37 - "stdio"
Cohesion: 0.14
Nodes (16): app_main(), app_main(), configure_led(), app_main(), configure_led(), led_strip_spi_config_t, led_model_t, led_pixel_format_t (+8 more)
### Community 38 - "socket"
Cohesion: 0.14
Nodes (9): discover(), local_subnet(), main(), discover(), _expand(), _ip(), local_subnet(), ota_drivers() (+1 more)
Cohesion: 0.20
Nodes (6): discover(), _expand(), _ip(), local_subnet(), ota_drivers(), parse_targets()
### Community 39 - "Beat Detection DSP (C)"
Cohesion: 0.27
Nodes (16): beat_feed(), analyse_beat(), bar_cue(), bar_decide(), beat_dsp_feed(), beat_dsp_init(), beat_dsp_tap(), best_phase() (+8 more)
Cohesion: 0.23
Nodes (17): beat_feed(), analyse_beat(), bar_cue(), bar_decide(), beat_dsp_bpm(), beat_dsp_feed(), beat_dsp_init(), beat_dsp_tap() (+9 more)
### Community 40 - "xSemaphoreGive"
Cohesion: 0.04
Nodes (91): ctl_task(), log_hook(), mic_task(), on_sent(), rx_task(), udp_send_up(), udp_task(), usb_send_frame() (+83 more)
Cohesion: 0.07
Nodes (58): ctl_task(), log_hook(), mic_task(), rx_task(), udp_send_up(), udp_task(), usb_send_frame(), xSemaphoreGive() (+50 more)
### Community 41 - "WS2812"
Cohesion: 0.06
@@ -426,63 +419,67 @@ Nodes (19): new_ws2812_encoder(), rmt_del_ws2812_encoder(), rmt_encode_ws2812(),
### Community 42 - "run_all"
Cohesion: 0.12
Nodes (13): dim(), expected(), frame(), frame_sum(), mismatch_detail(), packet(), read_serial(), run_all() (+5 more)
Nodes (12): dim(), expected(), frame(), frame_sum(), mismatch_detail(), packet(), read_serial(), run_all() (+4 more)
### Community 43 - "usb_cfg.cpp"
Cohesion: 0.07
Nodes (20): vTaskDelete(), be16(), be32(), ddp_set_enabled(), ddp_sync_task(), ddp_task(), patterns_count(), handle_line() (+12 more)
Cohesion: 0.10
Nodes (4): read_handshake(), read_n(), ws_client_connect(), ws_client_recv_text()
### Community 44 - "httpd_handle_t"
Cohesion: 0.12
Nodes (24): httpd_config_t, httpd_method_t, httpd_uri_t, httpd_create(), httpd_start(), httpd_find_uri_handler(), httpd_register_uri_handler(), httpd_unregister_uri() (+16 more)
Nodes (28): httpd_os_thread_create(), httpd_os_thread_handle(), httpd_err_code_t, httpd_err_handler_func_t, httpd_handle_t, httpd_method_t, httpd_uri, method (+20 more)
### Community 45 - "http_parser.h"
Cohesion: 0.09
Nodes (20): http_cb, http_data_cb, http_errno, HTTP_ERRNO_MAP, http_method, http_parser_settings, on_body, on_chunk_complete (+12 more)
Cohesion: 0.05
Nodes (42): flags, F_CHUNKED, F_CONNECTION_CLOSE, F_CONNECTION_KEEP_ALIVE, F_CONNECTION_UPGRADE, F_CONTENTLENGTH, F_SKIPBODY, F_TRAILING (+34 more)
### Community 46 - "http_parser.c"
Cohesion: 0.15
Nodes (8): parse_init(), http_parse_host(), http_parse_host_char(), http_parser_init(), http_parser_parse_url(), http_parser_settings_init(), http_parser_url_init(), parse_url_char()
### Community 46 - "bench.c"
Cohesion: 0.13
Nodes (14): bench_on_beat_tx(), bench_running(), bench_start(), bench_stop(), gen_cb(), gpio_mark(), espnow_tx_beat(), on_beat() (+6 more)
### Community 47 - "USB Latency Tools"
Cohesion: 0.17
Nodes (10): analyze(), edges(), main(), pct(), read(), fit_clock(), main(), pct() (+2 more)
Cohesion: 0.12
Nodes (13): discover(), local_subnet(), main(), analyze(), edges(), main(), pct(), read() (+5 more)
### Community 50 - "exchange"
Cohesion: 0.13
Nodes (23): engine_zone_note(), beat_task(), on_beat(), seqplay_end_base_in(), seqplay_overlay_stop(), seqplay_stop(), seqplay_stop_if(), seqplay_switch_wait() (+15 more)
### Community 50 - "esp_glue.c"
Cohesion: 0.11
Nodes (13): esp_fill_random(), esp_get_free_heap_size(), esp_get_minimum_free_heap_size(), esp_log_level_set(), esp_log_set_vprintf(), esp_log_timestamp(), esp_log_write(), esp_random() (+5 more)
### Community 52 - "sys"
Cohesion: 0.08
Nodes (5): Build and run, mpremote_base(), main(), info(), upload()
Nodes (3): mpremote_base(), main(), TransportExecError
### Community 53 - "mpremote Transport"
Cohesion: 0.12
Nodes (20): Presets Mockup Page, addColorPicker() / initializeColorPickers(), ColorPicker component (color-picker.js / color-picker.css), Preset Delay (animation speed, 10-1000 ms), ESPNow preset distribution, filterPresets() / sortPresets() search, filter and sort, LED Patterns (on, off, blink, chase, circle, pulse, rainbow, transition), Pattern Parameters N1-N8 (+12 more)
### Community 54 - "httpd_sess.c"
Cohesion: 0.16
Nodes (24): httpd_os_thread_delete(), httpd_accept_conn(), httpd_process_session(), httpd_server(), httpd_thread(), enum_function(), fd_is_valid(), httpd_is_sess_available() (+16 more)
Cohesion: 0.14
Nodes (27): httpd_free_ctx_fn_t, httpd_process_session(), enum_function(), fd_is_valid(), httpd_sess_clear_ctx(), httpd_sess_close(), httpd_sess_close_all(), httpd_sess_close_lru() (+19 more)
### Community 55 - "sim_glue.c"
Cohesion: 0.13
Nodes (10): sim_rx(), esp_err_to_name(), esp_fill_random(), esp_log_level_set(), esp_log_set_vprintf(), esp_log_timestamp(), esp_log_write(), esp_random() (+2 more)
### Community 57 - "httpd_config"
Cohesion: 0.06
Nodes (30): httpd_config, backlog_conn, close_fn, core_id, ctrl_port, enable_so_linger, global_transport_ctx, global_transport_ctx_free_fn (+22 more)
Nodes (33): httpd_close_func_t, httpd_config, backlog_conn, close_fn, core_id, ctrl_port, enable_so_linger, global_transport_ctx (+25 more)
### Community 58 - "gallery.js"
Cohesion: 0.26
Nodes (15): apply(), banner(), bgField(), buildCard(), checkField(), colourList(), draw(), hex() (+7 more)
### Community 59 - "mic_alsa.c"
Cohesion: 0.09
Nodes (21): capture_loop(), capture_thread(), list_alsa_devices(), mic_close(), mic_error(), mic_get_level(), mic_is_open(), mic_list_devices() (+13 more)
Cohesion: 0.11
Nodes (16): capture_loop(), capture_thread(), list_alsa_devices(), mic_close(), mic_error(), mic_get_level(), mic_is_open(), mic_list_devices() (+8 more)
### Community 60 - "nvs_sim.cpp"
Cohesion: 0.15
Nodes (31): drop_unicast_peers(), load_channel(), set_channel(), ctrl_init(), save_groups(), get_str(), settings_load_hw(), settings_save_hw() (+23 more)
Cohesion: 0.11
Nodes (36): drop_unicast_peers(), load_channel(), set_channel(), ctrl_init(), save_groups(), get_str(), nvs_handle_t, nvs_open_mode_t (+28 more)
### Community 61 - "API Test Fixtures & Audio"
Cohesion: 0.13
Nodes (6): base_url(), c(), Client, profile(), restore_db(), missing()
Cohesion: 0.17
Nodes (5): base_url(), c(), Client, profile(), restore_db()
### Community 62 - "Microdot Request (dmx)"
Cohesion: 0.15
@@ -498,18 +495,18 @@ Nodes (23): hsv(), rig_mid(), rig_rows(), rig_xy(), soak_rig_bounce(), soak_rig_
### Community 66 - "httpd_handle_t"
Cohesion: 0.09
Nodes (33): httpd_free_ctx_fn_t, httpd_handle_t, httpd_pending_func_t, httpd_recv_func_t, httpd_send_func_t, sock_db, ctx, fd (+25 more)
Nodes (22): httpd_pending_func_t, httpd_recv_func_t, httpd_send_func_t, sock_db, ctx, fd, for_async_req, free_ctx (+14 more)
### Community 67 - "BridgeSim"
### Community 67 - "status_get_handler"
Cohesion: 0.13
Nodes (4): BridgeSim, driver_mac(), main(), Strip
Nodes (11): beat_get_info(), bridge_list(), espnow_tx_ap_clients(), espnow_tx_stats(), reset_reason(), status_get_handler(), w5500_init(), mic_get_level() (+3 more)
### Community 68 - "httpd_uri.c"
Cohesion: 0.11
Nodes (9): httpd_req, httpd_session_enum_function, thread_data, handle, status, httpd_get_client_list(), httpd_get_global_transport_ctx(), httpd_get_global_user_ctx() (+1 more)
Cohesion: 0.08
Nodes (25): httpd_os_thread_delete(), httpd_recv_opt_t, httpd_req, httpd_session_enum_function, thread_data, handle, status, httpd_accept_conn() (+17 more)
### Community 69 - "led_strip_rmt_encoder.c"
Cohesion: 0.25
Cohesion: 0.22
Nodes (5): led_strip_encoder_config_t, rmt_del_led_strip_encoder(), rmt_encode_led_strip(), rmt_led_strip_encoder_reset(), rmt_new_led_strip_encoder()
### Community 70 - "Index Page Modals"
@@ -517,28 +514,28 @@ Cohesion: 0.11
Nodes (19): Audio Beat Detection modal, Header BPM / beat sync indicator, Colour Palette modal, Devices modal, Edit device modal, Edit Zone modal, Device groups modal, Header global brightness slider (+11 more)
### Community 71 - "rel.c"
Cohesion: 0.06
Nodes (31): beat_get_info(), bench_on_echo(), bridge_list(), espnow_tx_ap_clients(), espnow_tx_send(), espnow_tx_stats(), reset_reason(), status_get_handler() (+23 more)
Cohesion: 0.19
Nodes (15): espnow_tx_send(), full_mask(), handle_rx(), peer_get(), record_done(), rel_init(), rel_peer_status(), rel_send() (+7 more)
### Community 72 - "httpd_data"
Cohesion: 0.11
Nodes (18): esp_http_server_event_id_t, httpd_err_handler_func_t, httpd_data, config, ctrl_fd, ctrl_sock_semaphore, err_handler_fns, hd_calls (+10 more)
Nodes (17): esp_http_server_event_id_t, httpd_data, config, ctrl_fd, ctrl_sock_semaphore, err_handler_fns, hd_calls, hd_req (+9 more)
### Community 74 - "presets.cpp"
Cohesion: 0.18
Nodes (24): clear_all_presets(), entry_key(), find(), load_entry(), load_legacy(), presets_add_defaults(), presets_apply_startup(), presets_at() (+16 more)
Cohesion: 0.19
Nodes (24): clear_all_presets(), build_defaults(), entry_key(), find(), load_entry(), load_legacy(), presets_add_defaults(), presets_apply_startup() (+16 more)
### Community 75 - "Bench test: S3 controller and one LED driver"
Cohesion: 0.23
Nodes (9): Bench endpoints /test/loss and /test/beats, 30 ms beat lead (CONFIG_BEAT_LEAD_MS), Bench test: S3 controller and one LED driver, ESP32-C3 vs S3 driver comparison, Logic analyzer latency (marker GPIO, tools/analyze_edges.py), Lossy-link test (simulated loss, retries, resync), Reliable link (rel: acked unicast, retransmits, ack timeouts), Bench troubleshooting (serial ports, channel mismatch, blank UI) (+1 more)
### Community 75 - "v1 driver messages (long/short keys)"
Cohesion: 0.24
Nodes (8): Controller WebSocket /ws (v1 presets/select), Bench endpoints /test/loss and /test/beats, Binary envelope (main/envelope.c, test/binary_envelope.py), v1 driver messages (long/short keys), WebSocket /ws driver message relay, Lossy-link test (simulated loss, retries, resync), Reliable link (rel: acked unicast, retransmits, ack timeouts), espnow-sender Microdot WebSocket receiver
### Community 76 - "Controller Overview & OTA Docs"
Cohesion: 0.20
Nodes (11): led_controller ESP-IDF project, Driver app update /drivers/ota (staged files, sha, commit/abort), Firmware OTA /ota (idle slot, rollback), Driver app update over ESP-NOW test (tools/driver_ota.py), led-tool / led-cli serial device CLI, led-cli --ota controller update over Ethernet, driver settings.json (mpremote download/merge/upload), main ESP-IDF component (firmware sources) (+3 more)
Cohesion: 0.14
Nodes (17): led_controller ESP-IDF project, Driver app update /drivers/ota (staged files, sha, commit/abort), Firmware OTA /ota (idle slot, rollback), 30 ms beat lead (CONFIG_BEAT_LEAD_MS), Bench test: S3 controller and one LED driver, ESP32-C3 vs S3 driver comparison, Driver app update over ESP-NOW test (tools/driver_ota.py), Logic analyzer latency (marker GPIO, tools/analyze_edges.py) (+9 more)
### Community 77 - "espnow_link.cpp"
Cohesion: 0.06
Nodes (44): on_recv(), beat_on_frame(), Asm, buf, cnt, asm_find(), flags, asm_free() (+36 more)
Cohesion: 0.07
Nodes (40): on_recv(), beat_on_frame(), Asm, buf, cnt, asm_find(), flags, asm_free() (+32 more)
### Community 78 - "sim_split.js"
Cohesion: 0.32
@@ -556,61 +553,57 @@ Nodes (9): parse(), _assert_eq(), main(), test_artnet_send_loopback(), test_buil
Cohesion: 0.09
Nodes (21): cached, exitCode, stdout, variable, CMAKE_C_FLAGS, CMAKE_C_FLAGS_DEBUG, CMAKE_CXX_FLAGS, CMAKE_CXX_FLAGS_DEBUG (+13 more)
### Community 83 - "web.c"
Cohesion: 0.33
Nodes (11): audio_page_handler(), etag(), favicon_handler(), find_file(), index_handler(), mime_for(), send_gz(), static_handler() (+3 more)
### Community 83 - "pytest"
Cohesion: 0.16
Nodes (3): test_events_stream(), need_sim(), rig()
### Community 84 - "unique"
Cohesion: 0.08
Nodes (16): find_id_by_field(), unique(), test_scenes(), device(), group(), test_crud(), test_group_identify_needs_devices(), test_profile_scoped_group() (+8 more)
Cohesion: 0.06
Nodes (18): find_id_by_field(), missing(), unique(), test_scenes(), device(), group(), test_crud(), test_group_identify_needs_devices() (+10 more)
### Community 85 - "ESP-NOW Sender Bridge"
Cohesion: 0.20
Nodes (10): ap(), _broadcast_ws(), _espnow_receive_loop(), _init_espnow(), main(), _send_espnow(), _validate_envelope(), ws() (+2 more)
### Community 86 - "net.cpp"
Cohesion: 0.12
Nodes (23): ctrl_build_announce(), names_me(), own_mac_hex(), ddp_start(), app_main(), ap_switch_later(), ap_timer_cb(), apply_ap() (+15 more)
Cohesion: 0.11
Nodes (28): apply_device_config(), ctrl_build_announce(), names_me(), own_mac_hex(), ddp_start(), espnow_link_start(), app_main(), ap_timer_cb() (+20 more)
### Community 89 - "api_call_t"
Cohesion: 0.33
Nodes (5): api_call_t, cap, done, msg, out
### Community 90 - "Sender"
Cohesion: 0.14
Nodes (4): run_interactive(), handle(), show_menu(), Sender
Cohesion: 0.11
Nodes (9): get(), output_scale(), run_interactive(), handle(), show_menu(), run_soak(), sample(), send_sync() (+1 more)
### Community 92 - "bridge_serial.c"
Cohesion: 0.13
Nodes (21): bridge_eth_ip(), build_info(), handle_frame(), host_rx_task(), put_u32(), send_info(), bridge_crc16_update(), bridge_decode_feed() (+13 more)
### Community 92 - "esp_log.h"
Cohesion: 0.09
Nodes (19): bridge_eth_ip(), build_info(), handle_frame(), host_rx_task(), put_u32(), send_info(), bridge_crc16_update(), bridge_decode_feed() (+11 more)
### Community 93 - "events"
Cohesion: 0.10
Nodes (24): cached, exitCode, stdout, variable, CMAKE_C_FLAGS, CMAKE_C_FLAGS_DEBUG, CMAKE_CXX_FLAGS, CMAKE_CXX_FLAGS_DEBUG (+16 more)
### Community 94 - "Type"
Cohesion: 0.18
Nodes (11): Type, T_BLOB, T_I32, T_I64, T_STR, T_U32, T_U8, Value (+3 more)
### Community 94 - "send_frame"
Cohesion: 0.33
Nodes (9): bridge_serial_mic(), bridge_serial_send(), bridge_serial_set_channel(), bridge_serial_status(), get_u32(), handle_frame(), link_task(), open_port() (+1 more)
### Community 95 - "Microdot Auth (dmx)"
Cohesion: 0.19
Nodes (6): wraps(), print_exception(), websocket_upgrade(), websocket_wrapper(), wrapper(), with_websocket()
### Community 96 - "esp_timer_create"
Cohesion: 0.36
Nodes (7): ota_confirm_later(), ota_confirm_later(), arm(), esp_timer_create(), esp_timer_is_active(), esp_timer_start_once(), esp_timer_start_periodic()
### Community 97 - "v1 driver messages (long/short keys)"
Cohesion: 0.40
Nodes (5): Controller WebSocket /ws (v1 presets/select), Binary envelope (main/envelope.c, test/binary_envelope.py), v1 driver messages (long/short keys), WebSocket /ws driver message relay, espnow-sender Microdot WebSocket receiver
### Community 96 - "net.cpp"
Cohesion: 0.10
Nodes (17): on_eth_down(), on_got_ip(), ap_switch_later(), client_allowed(), on_ip_event(), on_wifi_event(), reconnect_cb(), retry_cb() (+9 more)
### Community 98 - "DMX Preset Model"
Cohesion: 0.13
Nodes (8): _expand(), _preset_from_map(), process_data(), _select_entries(), _targets_for_key(), play(), _parse_colour(), Preset
### Community 99 - "httpd_txrx.c"
Cohesion: 0.12
Nodes (37): esp_app_get_description(), httpd_err_code_t, httpd_resp_sendstr(), httpd_default_recv(), httpd_default_send(), httpd_recv(), httpd_register_err_handler(), httpd_req_async_handler_begin() (+29 more)
Cohesion: 0.10
Nodes (45): esp_app_get_description(), httpd_resp_send_404(), httpd_resp_send_408(), httpd_resp_sendstr(), httpd_resp_sendstr_chunk(), httpd_req_async_handler_begin(), httpd_req_recv(), httpd_resp_send() (+37 more)
### Community 101 - "Groups UI (JS)"
Cohesion: 0.29
@@ -633,29 +626,29 @@ Cohesion: 0.24
Nodes (11): Message processing order (version, presets upsert, colour, selection), Auto vs manual (a) and manual chase flush, Built-in off / on patterns, Patterns and presets on the LED driver, MAX_PRESETS = 32, Pattern OTA via manifest / POST /patterns/upload, Pattern registry (Presets.reload_patterns), Preset short keys (p, c, d, b, a, bg, n1-n6) (+3 more)
### Community 106 - "USB ESP-NOW bridge"
Cohesion: 0.13
Nodes (13): Build and flash, Channel, Ethernet (W5500), Microphone (S3), Protocol, Running the controller against it, USB ESP-NOW bridge, How it is built (+5 more)
Cohesion: 0.12
Nodes (14): Build and flash, Channel, Ethernet (W5500), Microphone (S3), Protocol, Running the controller against it, USB ESP-NOW bridge, Build and run (+6 more)
### Community 107 - "main"
Cohesion: 0.18
Nodes (8): find_devices(), probe(), sweep(), load_rig(), local_prefix(), main(), neighbours(), set_fps()
### Community 108 - "rig_seed.py"
Cohesion: 0.13
Nodes (13): sync_patterns(), normalise_layout(), _reversed_for_column(), rig_placements(), side_name(), strip_count(), strip_places(), StripPlace (+5 more)
### Community 108 - "BridgeSim"
Cohesion: 0.04
Nodes (27): BridgeSim, api_seed_layout(), index(), driver_mac(), lan_ip(), load_config(), mac_str(), main() (+19 more)
### Community 109 - "Driver Message API Docs"
Cohesion: 0.38
Nodes (10): Auto vs manual mode, Beat (re-select same preset restarts generator), Hex colour conversion and colour-order reordering, LED Driver API (message format), Pattern-specific parameters (rainbow, pulse, transition, chase, circle), Preset fields (pattern, colors, delay, brightness, auto, n1-n6), Select message (device -> [preset, step]), Step synchronization (+2 more)
### Community 110 - "run_soak"
Cohesion: 0.18
Nodes (6): get(), Missing, output_scale(), run_soak(), sample(), soft_get()
### Community 111 - "led_strip Manifest"
Cohesion: 0.20
Nodes (9): dependencies, idf, description, repository, repository_info, commit_sha, path, url (+1 more)
### Community 112 - "EMSCRIPTEN_KEEPALIVE"
Cohesion: 0.22
Nodes (8): patterns_count(), patterns_name(), fx_count(), fx_init(), fx_name(), fx_step(), sim_nvs_load(), sim_clock_set_us()
### Community 113 - "Outputs UI (JS)"
Cohesion: 0.33
Nodes (8): fetchOutputs(), loadOutputsModal(), openOutputEditor(), OUTPUT_PROTOCOL_LABELS, outputSummary(), renderOutputsList(), setOutputField(), syncOutputProtocolFields()
@@ -673,7 +666,7 @@ Cohesion: 0.31
Nodes (9): LED Driver UI Mockups Index (screenshot), Dashboard Mockup, Device Groups, Device Management Mockup, LED Patterns (On, Off, Blink, Chase, Circle, Pulse, Rainbow, Transition), N1-N8 Pattern Parameters, Pattern Selector Mockup, Presets Mockup (+1 more)
### Community 117 - "outputs.c"
Cohesion: 0.32
Cohesion: 0.41
Nodes (11): fail(), fill(), one_of(), put16(), resolve(), run_test(), send_artnet(), send_ddp() (+3 more)
### Community 118 - "Help: Header Toolbar Image"
@@ -701,16 +694,16 @@ Cohesion: 0.29
Nodes (6): Pattern Contract, Drawing via driver.n and apply_brightness, Pattern error handling (Presets.tick catches), Presets._load_dynamic_patterns(), Shared driver.step semantics, Global vs per-preset brightness
### Community 124 - "esp_httpd_priv.h"
Cohesion: 0.18
Nodes (20): desktop_base64_encode(), desktop_sha1(), rol(), sha1_block(), httpd_ws_frame_t, httpd_recv_opt_t, httpd_recv_pending(), httpd_recv_with_opt() (+12 more)
Cohesion: 0.15
Nodes (22): desktop_base64_encode(), desktop_sha1(), rol(), sha1_block(), httpd_ws_client_info_t, httpd_ws_frame_t, transfer_complete_cb, httpd_send() (+14 more)
### Community 125 - "led_strip_spi_dev.c"
Cohesion: 0.06
Nodes (38): heap_caps_calloc(), app_main(), app_main(), configure_led(), app_main(), configure_led(), led_strip_rmt_config_t, led_strip_spi_config_t (+30 more)
Cohesion: 0.10
Nodes (23): heap_caps_calloc(), led_strip_rmt_config_t, led_strip_config_t, led_strip_t, led_strip_new_rmt_device(), led_strip_rmt_clear(), led_strip_rmt_del(), led_strip_rmt_refresh() (+15 more)
### Community 126 - "esp_http_server_dispatch_event"
Cohesion: 0.33
Nodes (4): esp_err_to_name(), esp_event_post(), esp_read_mac(), esp_http_server_dispatch_event()
### Community 126 - "app_main"
Cohesion: 0.07
Nodes (25): esp_err_to_name(), esp_event_loop_create_default(), esp_event_post(), esp_read_mac(), cJSON_Hooks, cJSON_InitHooks(), esp_http_server_dispatch_event(), engine_init() (+17 more)
### Community 128 - "httpd_ctrl_data"
Cohesion: 0.22
@@ -724,21 +717,17 @@ Nodes (6): Custom Color Picker Demo (screenshot), Hex and RGB input support, HSB
Cohesion: 0.33
Nodes (7): Advanced Settings (Step Counter, Step Increment, Device ID, Debug Mode), Basic Settings (Device Name, LED Pin, Number of LEDs), Color Order Selector (RGB/RBG/GRB/GBR/BRG/BGR), Device Settings Page Mockup, Network Settings (Access Point Name, Password, Enable AP), Pattern Parameters N1-N6, Pattern Settings (Pattern, Brightness, Delay)
### Community 131 - "flags"
Cohesion: 0.22
Nodes (9): flags, F_CHUNKED, F_CONNECTION_CLOSE, F_CONNECTION_KEEP_ALIVE, F_CONNECTION_UPGRADE, F_CONTENTLENGTH, F_SKIPBODY, F_TRAILING (+1 more)
### Community 131 - "beat_start"
Cohesion: 0.29
Nodes (4): mic_start(), beat_start(), bridge_set_audio_cb(), bridge_serial_set_audio_cb()
### Community 132 - "microdot.py"
Cohesion: 0.10
Nodes (5): invoke_handler(), iscoroutine(), Response, aclose(), __anext__()
### Community 133 - "http_parser_url_fields"
Cohesion: 0.22
Nodes (9): http_parser_url_fields, UF_FRAGMENT, UF_HOST, UF_MAX, UF_PATH, UF_PORT, UF_QUERY, UF_SCHEMA (+1 more)
### Community 137 - "time"
Cohesion: 0.15
Nodes (9): Blink, Pulse, sleep(), sleep_ms(), sleep_us(), ticks_diff(), ticks_ms(), ticks_us() (+1 more)
### Community 133 - "pattern_def_t"
Cohesion: 0.40
Nodes (5): fx_fn, pattern_def_t, fn, name, web_each()
### Community 138 - "Help: Colour Palette Image"
Cohesion: 0.40
@@ -761,8 +750,8 @@ Cohesion: 0.33
Nodes (5): dependencies, espressif/led_strip, idf, override_path, version
### Community 143 - "test_rig_sim.py"
Cohesion: 0.10
Nodes (28): all_dark(), col_of(), frames(), led_x(), lit(), mac(), make_preset(), need_sim() (+20 more)
Cohesion: 0.12
Nodes (26): all_dark(), col_of(), frames(), led_x(), lit(), mac(), make_preset(), places() (+18 more)
### Community 145 - "Help PDF: Modes"
Cohesion: 0.40
@@ -772,9 +761,9 @@ Nodes (4): Edit mode, Mobile layout Menu, Run mode, Zones modal
Cohesion: 0.60
Nodes (5): Help image: Main area brightness and preset tiles, Edit Mode: drag tiles to reorder, Global Brightness Slider, Preset Tile (gradient swatch, click to select on tab devices), Tab (e.g. lounge)
### Community 149 - "api_error"
Cohesion: 0.10
Nodes (58): httpd_req_t, httpd_resp_send_500(), api_body(), api_body_opt(), api_current_profile(), api_error(), api_json(), api_merge() (+50 more)
### Community 149 - "patterns.c"
Cohesion: 0.25
Nodes (18): add_name(), all_patterns(), base_name(), builtin(), create_driver_pattern(), exists(), file_names(), file_path() (+10 more)
### Community 155 - "app.js"
Cohesion: 0.11
@@ -805,7 +794,7 @@ Cohesion: 0.15
Nodes (9): add_ptr(), build_query(), decode_name(), handle_rr(), mdns_dup(), mdns_query_ptr(), mdns_query_results_free(), parse_packet() (+1 more)
### Community 167 - "SerialDMX"
Cohesion: 0.24
Cohesion: 0.28
Nodes (3): sleep_ms(), SerialDMX, sleep()
### Community 170 - "dependencies"
@@ -816,25 +805,17 @@ Nodes (13): dependencies, espressif/cjson, espressif/mdns, espressif/w5500, jolt
Cohesion: 0.83
Nodes (3): applyListSearch(), initListSearch(), rowSearchText()
### Community 177 - "espnow_tx.c"
Cohesion: 0.05
Nodes (48): ensure_peer(), tx_task(), esp_event_loop_create_default(), cJSON_Hooks, cJSON_InitHooks(), espnow_link_start(), bench_running(), bench_stop() (+40 more)
### Community 177 - "bulk_task"
Cohesion: 0.12
Nodes (21): ensure_peer(), tx_task(), bench_on_echo(), bridge_active(), bridge_send(), bulk_task(), espnow_tx_drop(), espnow_tx_set_rx_cb() (+13 more)
### Community 178 - "mac_str"
Cohesion: 0.25
Nodes (3): api_seed_layout(), index(), mac_str()
### Community 179 - "load_config"
Cohesion: 0.33
Nodes (3): load_config(), _merge(), _read_json()
### Community 184 - "beat.c"
Cohesion: 0.07
Nodes (31): vQueueDelete(), httpd_req_async_handler_complete(), httpd_req_to_sockfd(), events_task(), send_all(), audio_stream_task(), beats_get_handler(), beats_stream_task() (+23 more)
### Community 184 - "vTaskDelete"
Cohesion: 0.09
Nodes (28): httpd_os_thread_sleep(), vQueueDelete(), vTaskDelete(), httpd_queue_work(), httpd_stop(), httpd_req_async_handler_complete(), httpd_req_to_sockfd(), cs_send_to_ctrl_sock() (+20 more)
### Community 197 - "cJSON_GetObjectItem"
Cohesion: 0.10
Nodes (76): cJSON_AddItemReferenceToObject(), cJSON_CreateBool(), cJSON_CreateString(), cJSON_DeleteItemFromObject(), cJSON_Duplicate(), cJSON_IsObject(), cJSON_ReplaceItemInObject(), api_add() (+68 more)
Cohesion: 0.09
Nodes (109): cJSON_AddItemReferenceToObject(), cJSON_CreateString(), cJSON_DeleteItemFromObject(), cJSON_Duplicate(), cJSON_GetObjectItem(), cJSON_IsBool(), cJSON_ReplaceItemInObject(), httpd_req_t (+101 more)
### Community 198 - "Transport"
Cohesion: 0.23
@@ -844,25 +825,21 @@ Nodes (3): _convert_filesystem_error(), stdout_write_bytes(), Transport
Cohesion: 0.20
Nodes (10): httpd_req, aux, content_len, free_ctx, handle, ignore_sess_ctx_changes, method, sess_ctx (+2 more)
### Community 201 - "http_parser_type"
Cohesion: 0.50
Nodes (4): http_parser_type, HTTP_BOTH, HTTP_REQUEST, HTTP_RESPONSE
### Community 202 - "json"
Cohesion: 0.09
Nodes (11): call(), main(), switch(), wifi_state(), _default_image(), _info(), ota_update(), _default_image() (+3 more)
Cohesion: 0.06
Nodes (21): Blink, Pulse, call(), main(), switch(), wifi_state(), _default_image(), _info() (+13 more)
### Community 203 - "desktop_main.c"
Cohesion: 0.60
Nodes (3): main(), set_from_env(), usage()
### Community 203 - "string"
Cohesion: 0.10
Nodes (6): main(), set_from_env(), usage(), string, ota_confirm_later(), mic_get_level()
### Community 204 - "_simlink_proc.py"
Cohesion: 0.16
Cohesion: 0.15
Nodes (5): connect(), on_feed(), push_pixels(), _reader(), _send_pixels()
### Community 205 - "esp_http_server.h"
Cohesion: 0.08
Nodes (22): esp_http_server_event_data, http_method, httpd_close_func_t, httpd_open_func_t, httpd_resp_send_404(), httpd_resp_send_408(), httpd_resp_sendstr_chunk(), httpd_uri (+14 more)
### Community 205 - "httpd_ws_frame"
Cohesion: 0.25
Nodes (8): httpd_ws_frame, final, fragmented, left_len, len, payload, type, httpd_ws_type_t
### Community 207 - "relay_forward"
Cohesion: 0.11
@@ -882,22 +859,22 @@ Nodes (3): fixtureEnd(), fixtureLeds(), roomStrips()
## Knowledge Gaps
- **297 isolated node(s):** `next`, `prev`, `child`, `type`, `valuestring` (+292 more)
These have ≤1 connection - possible missing edges or undocumented components. (Counts symbols only; 1235 node(s) total have ≤1 connection when file, concept and rationale nodes are included.)
- **65 thin communities (<3 nodes) omitted from report** — run `graphify query` to explore isolated nodes.
These have ≤1 connection - possible missing edges or undocumented components. (Counts symbols only; 1236 node(s) total have ≤1 connection when file, concept and rationale nodes are included.)
- **67 thin communities (<3 nodes) omitted from report** — run `graphify query` to explore isolated nodes.
## Suggested Questions
_Questions this graph is uniquely positioned to answer:_
- **Why does `string` connect `esp_err.h` to `cJSON`, `sim_rig.c`, `freertos.c`, `api_error`, `cJSON_IsString`, `seqplay.c`, `cJSON_CreateObject`, `httpd_parse.c`, `cJSON_Delete`, `mdns_host.c`, `Beat Detection DSP (C)`, `xSemaphoreGive`, `http_parser.c`, `espnow_tx.c`, `mic_alsa.c`, `nvs_sim.cpp`, `httpd_uri.c`, `cJSON_GetObjectItem`, `rel.c`, `desktop_main.c`, `esp_http_server.h`, `web.c`, `bridge_serial.c`, `Type`, `outputs.c`, `esp_httpd_priv.h`, `led_strip_spi_dev.c`?**
_High betweenness centrality (0.061) - this node is a cross-community bridge._
- **Why does `string` connect `string` to `cJSON`, `sim_rig.c`, `esp_err.h`, `freertos.c`, `bridge.c`, `cJSON_IsString`, `patterns.c`, `seqplay.c`, `cJSON_CreateObject`, `httpd_parse.c`, `cJSON_Delete`, `mdns_host.c`, `Beat Detection DSP (C)`, `bench.c`, `esp_glue.c`, `sim_glue.c`, `mic_alsa.c`, `nvs_sim.cpp`, `httpd_uri.c`, `cJSON_GetObjectItem`, `rel.c`, `esp_log.h`, `net.cpp`, `httpd_txrx.c`, `outputs.c`, `esp_httpd_priv.h`, `led_strip_spi_dev.c`?**
_High betweenness centrality (0.063) - this node is a cross-community bridge._
- **Are the 190 inferred relationships involving `cJSON_GetObjectItem()` (e.g. with `list_pulse_sources()` and `apply_default()`) actually correct?**
_`cJSON_GetObjectItem()` has 190 INFERRED edges - model-reasoned connections that need verification._
- **What connects `next`, `prev`, `child` to the rest of the system?**
_297 weakly-connected nodes found - possible documentation gaps or missing edges._
- **Should `IdfDevice` be split into smaller, more focused modules?**
_Cohesion score 0.09411764705882353 - nodes in this community are weakly interconnected._
- **Why does `PyboardCommand` connect `PyboardCommand` to `SerialTransport`?**
_High betweenness centrality (0.027) - this node is a cross-community bridge._
_Cohesion score 0.10037878787878787 - nodes in this community are weakly interconnected._
- **Why does `led-controller ESP32-S3 firmware` connect `USB ESP-NOW bridge` to `v1 driver messages (long/short keys)`, `API Docs: Outputs & Audio`, `DMX Driver Art-Net and serial gateway`, `Controller Overview & OTA Docs`?**
_High betweenness centrality (0.030) - this node is a cross-community bridge._
- **Are the 114 inferred relationships involving `cJSON_Delete()` (e.g. with `list_pulse_sources()` and `ctrl_handle()`) actually correct?**
_`cJSON_Delete()` has 114 INFERRED edges - model-reasoned connections that need verification._
- **Should `htmx Library` be split into smaller, more focused modules?**
@@ -0,0 +1 @@
{"nodes": [{"id": "$graphify-root$_test_api_test_sequences_py", "label": "test_sequences.py", "file_type": "code", "source_file": "test/api/test_sequences.py", "source_location": "L1"}, {"id": "fixture", "label": "fixture", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/test/api/test_sequences.py"}, {"id": "$graphify-root$_test_api_test_sequences_clock", "label": "clock()", "file_type": "code", "source_file": "test/api/test_sequences.py", "source_location": "L14", "_py_fixture": "?", "_callable": true}, {"id": "$graphify-root$_test_api_test_sequences_zone", "label": "zone()", "file_type": "code", "source_file": "test/api/test_sequences.py", "source_location": "L26", "_py_fixture": "?", "_callable": true}, {"id": "$graphify-root$_test_api_test_sequences_presets", "label": "presets()", "file_type": "code", "source_file": "test/api/test_sequences.py", "source_location": "L32", "_callable": true}, {"id": "$graphify-root$_test_api_test_sequences_test_crud", "label": "test_crud()", "file_type": "code", "source_file": "test/api/test_sequences.py", "source_location": "L38", "_callable": true}, {"id": "$graphify-root$_test_api_test_sequences_test_scoped_to_profile", "label": "test_scoped_to_profile()", "file_type": "code", "source_file": "test/api/test_sequences.py", "source_location": "L55", "_callable": true}, {"id": "$graphify-root$_test_api_test_sequences_test_play_needs_zone", "label": "test_play_needs_zone()", "file_type": "code", "source_file": "test/api/test_sequences.py", "source_location": "L66", "_callable": true}, {"id": "$graphify-root$_test_api_test_sequences_test_play_needs_steps", "label": "test_play_needs_steps()", "file_type": "code", "source_file": "test/api/test_sequences.py", "source_location": "L72", "_callable": true}, {"id": "$graphify-root$_test_api_test_sequences_test_sync_phase_needs_playback", "label": "test_sync_phase_needs_playback()", "file_type": "code", "source_file": "test/api/test_sequences.py", "source_location": "L79", "_callable": true}, {"id": "$graphify-root$_test_api_test_sequences_test_plays_on_beats", "label": "test_plays_on_beats()", "file_type": "code", "source_file": "test/api/test_sequences.py", "source_location": "L84", "_callable": true}, {"id": "$graphify-root$_test_api_test_sequences_test_loops_and_stops", "label": "test_loops_and_stops()", "file_type": "code", "source_file": "test/api/test_sequences.py", "source_location": "L107", "_callable": true}, {"id": "$graphify-root$_test_api_test_sequences_test_switch_waits_for_next_beat", "label": "test_switch_waits_for_next_beat()", "file_type": "code", "source_file": "test/api/test_sequences.py", "source_location": "L118", "_callable": true}, {"id": "$graphify-root$_test_api_test_sequences_test_editing_stops_playback", "label": "test_editing_stops_playback()", "file_type": "code", "source_file": "test/api/test_sequences.py", "source_location": "L130", "_callable": true}, {"id": "$graphify-root$_test_api_test_sequences_make", "label": "make()", "file_type": "code", "source_file": "test/api/test_sequences.py", "source_location": "L148", "_callable": true}, {"id": "$graphify-root$_test_api_test_sequences_wait_for", "label": "wait_for()", "file_type": "code", "source_file": "test/api/test_sequences.py", "source_location": "L153", "_callable": true}, {"id": "$graphify-root$_test_api_test_sequences_test_targets_and_lane_opts_round_trip", "label": "test_targets_and_lane_opts_round_trip()", "file_type": "code", "source_file": "test/api/test_sequences.py", "source_location": "L164", "_callable": true}, {"id": "$graphify-root$_test_api_test_sequences_test_old_sequence_status_unchanged", "label": "test_old_sequence_status_unchanged()", "file_type": "code", "source_file": "test/api/test_sequences.py", "source_location": "L175", "_callable": true}, {"id": "$graphify-root$_test_api_test_sequences_test_beat_and_time_lanes_together", "label": "test_beat_and_time_lanes_together()", "file_type": "code", "source_file": "test/api/test_sequences.py", "source_location": "L185", "_callable": true}, {"id": "$graphify-root$_test_api_test_sequences_test_offset_lane_starts_late", "label": "test_offset_lane_starts_late()", "file_type": "code", "source_file": "test/api/test_sequences.py", "source_location": "L197", "_callable": true}, {"id": "$graphify-root$_test_api_test_sequences_test_rate_doubles_speed", "label": "test_rate_doubles_speed()", "file_type": "code", "source_file": "test/api/test_sequences.py", "source_location": "L208", "_callable": true}, {"id": "$graphify-root$_test_api_test_sequences_test_chase_moves_and_bounces", "label": "test_chase_moves_and_bounces()", "file_type": "code", "source_file": "test/api/test_sequences.py", "source_location": "L217", "_callable": true}, {"id": "$graphify-root$_test_api_test_sequences_test_oneshot_plays_once_alone", "label": "test_oneshot_plays_once_alone()", "file_type": "code", "source_file": "test/api/test_sequences.py", "source_location": "L237", "_Line truncated
@@ -0,0 +1 @@
{"nodes": [{"id": "$graphify-root$_main_seqplay_c", "label": "seqplay.c", "file_type": "code", "source_file": "main/seqplay.c", "source_location": "L1"}, {"id": "$graphify-root$_main_seqplay_simulated_bpm", "label": "simulated_bpm()", "file_type": "code", "source_file": "main/seqplay.c", "source_location": "L115", "_callable": true}, {"id": "$graphify-root$_main_seqplay_audio_drives", "label": "audio_drives()", "file_type": "code", "source_file": "main/seqplay.c", "source_location": "L122", "_callable": true}, {"id": "$graphify-root$_main_seqplay_wait_for_downbeat", "label": "wait_for_downbeat()", "file_type": "code", "source_file": "main/seqplay.c", "source_location": "L130", "_callable": true}, {"id": "$graphify-root$_main_seqplay_num", "label": "num()", "file_type": "code", "source_file": "main/seqplay.c", "source_location": "L136", "_callable": true}, {"id": "cjson", "label": "cJSON", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/main/seqplay.c"}, {"id": "$graphify-root$_main_seqplay_str_is", "label": "str_is()", "file_type": "code", "source_file": "main/seqplay.c", "source_location": "L142", "_callable": true}, {"id": "$graphify-root$_main_seqplay_seq_oneshot", "label": "seq_oneshot()", "file_type": "code", "source_file": "main/seqplay.c", "source_location": "L149", "_callable": true}, {"id": "$graphify-root$_main_seqplay_add_id", "label": "add_id()", "file_type": "code", "source_file": "main/seqplay.c", "source_location": "L163", "_callable": true}, {"id": "$graphify-root$_main_seqplay_macs_has", "label": "macs_has()", "file_type": "code", "source_file": "main/seqplay.c", "source_location": "L175", "_callable": true}, {"id": "macs_t", "label": "macs_t", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/main/seqplay.c"}, {"id": "$graphify-root$_main_seqplay_macs_add", "label": "macs_add()", "file_type": "code", "source_file": "main/seqplay.c", "source_location": "L185", "_callable": true}, {"id": "$graphify-root$_main_seqplay_target_add", "label": "target_add()", "file_type": "code", "source_file": "main/seqplay.c", "source_location": "L193", "_callable": true}, {"id": "player_t", "label": "player_t", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/main/seqplay.c"}, {"id": "$graphify-root$_main_seqplay_target_from_list", "label": "target_from_list()", "file_type": "code", "source_file": "main/seqplay.c", "source_location": "L217", "_callable": true}, {"id": "$graphify-root$_main_seqplay_target_zone", "label": "target_zone()", "file_type": "code", "source_file": "main/seqplay.c", "source_location": "L231", "_callable": true}, {"id": "$graphify-root$_main_seqplay_bit", "label": "bit()", "file_type": "code", "source_file": "main/seqplay.c", "source_location": "L238", "_callable": true}, {"id": "$graphify-root$_main_seqplay_load_targets", "label": "load_targets()", "file_type": "code", "source_file": "main/seqplay.c", "source_location": "L244", "_callable": true}, {"id": "$graphify-root$_main_seqplay_mask_of", "label": "mask_of()", "file_type": "code", "source_file": "main/seqplay.c", "source_location": "L274", "_callable": true}, {"id": "$graphify-root$_main_seqplay_groups_for", "label": "groups_for()", "file_type": "code", "source_file": "main/seqplay.c", "source_location": "L289", "_callable": true}, {"id": "$graphify-root$_main_seqplay_send_msg", "label": "send_msg()", "file_type": "code", "source_file": "main/seqplay.c", "source_location": "L325", "_callable": true}, {"id": "$graphify-root$_main_seqplay_message", "label": "message()", "file_type": "code", "source_file": "main/seqplay.c", "source_location": "L335", "_callable": true}, {"id": "$graphify-root$_main_seqplay_upload", "label": "upload()", "file_type": "code", "source_file": "main/seqplay.c", "source_location": "L347", "_callable": true}, {"id": "$graphify-root$_main_seqplay_send_presets", "label": "send_presets()", "file_type": "code", "source_file": "main/seqplay.c", "source_location": "L363", "_callable": true}, {"id": "$graphify-root$_main_seqplay_select_on", "label": "select_on()", "file_type": "code", "source_file": "main/seqplay.c", "source_location": "L380", "_callable": true}, {"id": "$graphify-root$_main_seqplay_chase_mask", "label": "chase_mask()", "file_type": "code", "source_file": "main/seqplay.c", "source_location": "L395", "_callable": true}, {"id": "lane_t", "label": "lane_t", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/main/seqplay.c"}, {"id": "$graphify-root$_main_seqplay_chase_move", "label": "chase_move()", "file_type": "code", "source_file": "main/seqplay.c", "source_location": "L404", "_callable": true}, {"id": "$graphify-root$_main_seqplay_send_lane", "label": "send_lane()", "file_type": "code", "source_file": "main/seqplay.c", "source_location": "L434", "_callable": true}, {"id": "$graphify-root$_main_seqplay_load_lanes", "labeLine truncated
+1 -1
View File
@@ -1 +1 @@
1794799923.107825
1794814913.7640278
+1 -1
View File
@@ -1 +1 @@
{".claude/CLAUDE.md":{"size":226,"mtime_ns":1793707532996234423,"indexed_at_ns":1793707658543205519,"word_count":29,"hashes":{".claude/CLAUDE.md":"dd502cd6ce0bbff5d4c021e94be6aa49afe1f99dd85901e0201831908630e94b"}},"CLAUDE.md":{"size":1582,"mtime_ns":1794560833170090840,"indexed_at_ns":1794609720117981763,"word_count":247},"CMakeLists.txt":{"size":111,"mtime_ns":1793622279097091871,"indexed_at_ns":1793707658543849029,"word_count":4,"hashes":{"CMakeLists.txt":"837822e28c9599ef04852743d1f103d636d744f2e9219a407744dd5cd636cc9b"}},"README.md":{"size":3583,"mtime_ns":1794783157300129617,"indexed_at_ns":1794783233679457247,"word_count":498},"db/audio_run.json":{"size":103,"mtime_ns":1792558116811211805,"indexed_at_ns":1793707658868880485,"word_count":10,"hashes":{"db/audio_run.json":"22b6ce7327ac83a083fd0ab93d338685ce8a4bf2eba2122f93dbe7b7b36ffe8d"}},"db/bridges.json":{"size":279,"mtime_ns":1792035647171829311,"indexed_at_ns":1793707658874810261,"word_count":26,"hashes":{"db/bridges.json":"3cacd14c72fe5d4a0d316f8b1189134686de036427c8c97d26827638f5c0a913"}},"db/device.json":{"size":2,"mtime_ns":1793777185742747874,"indexed_at_ns":1793777223754642632,"word_count":1,"hashes":{"db/device.json":"d37387d627ac3f5cd9a139daf3b0490a820f32cc88fdcf09a89f7ed5f2879437"}},"db/group.json":{"size":407,"mtime_ns":1793784073189169768,"indexed_at_ns":1793784223737930610,"word_count":48,"hashes":{"db/group.json":"5ac5e81478218af9a7905607a853f0e58b3b8ed6218fb43406366214d81fdf1f"}},"db/output.json":{"size":2,"mtime_ns":1793777185742792981,"indexed_at_ns":1793777223755186745,"word_count":1,"hashes":{"db/output.json":"41b7170a77edddababaeeacfbfcac81d52aed8cd7ab91326a1b2587168f24fea"}},"db/palette.json":{"size":95,"mtime_ns":1793777185742725183,"indexed_at_ns":1793777223755421480,"word_count":9,"hashes":{"db/palette.json":"51fc59a676fa15de8a94dad96942d2ba1837f08bcfbe5158248a3a26e7b8c867"}},"db/pattern.json":{"size":4111,"mtime_ns":1794267054112010144,"indexed_at_ns":1794270646545205657,"word_count":499,"hashes":{"db/pattern.json":"bc4cd267b2a53018ecd2254967f7e0af64f120394656089d184956b684c970a4"}},"db/preset.json":{"size":1547,"mtime_ns":1794192230145924224,"indexed_at_ns":1794192255641306971,"word_count":2,"hashes":{"db/preset.json":"b787780a60fb5de5ab1ae5e95e28c56209c07e76167bf6f7d54a23098de393f1"}},"db/profile.json":{"size":103,"mtime_ns":1793777185742698915,"indexed_at_ns":1793777223756285988,"word_count":13,"hashes":{"db/profile.json":"0c884cad9c2d30151e71adcf2c73c922accc2adc1ec7e3a5f2557f65348ab16d"}},"db/scene.json":{"size":2,"mtime_ns":1793777185743064106,"indexed_at_ns":1793777223756521395,"word_count":1,"hashes":{"db/scene.json":"3fa068cb49be44a2bca2cc32c266bc67dd33f09a90ca72ff5b7e744f2d6372e4"}},"db/sequence.json":{"size":2,"mtime_ns":1793777185742815256,"indexed_at_ns":1793777223756746197,"word_count":1,"hashes":{"db/sequence.json":"9fe59214947c107acb45669e2f107b00be6b6c6184e12ca597f7fc2b661e341a"}},"db/zone.json":{"size":280,"mtime_ns":1793783703894998088,"indexed_at_ns":1793784223739991976,"word_count":35,"hashes":{"db/zone.json":"cdd502ffa90331dbfa71842351796f0b9317de1d744f644233c2e5537089ff7b"}},"dmx-driver/README.md":{"size":2911,"mtime_ns":1792558116808211795,"indexed_at_ns":1793707658544334791,"word_count":395,"hashes":{"dmx-driver/README.md":"0c5ffe2dffbe102a54487430d3946fadbc65335f06b0f6c79f3c16b82f56ab0b"}},"dmx-driver/dev.py":{"size":2240,"mtime_ns":1792558116805211784,"indexed_at_ns":1793707658877667616,"word_count":194,"hashes":{"dmx-driver/dev.py":"284307111b0bcc67200ad58aa46b1a9f4f909b1f565a4867b3ef4bf4bbaec012"}},"dmx-driver/lib/artnet.py":{"size":10536,"mtime_ns":1792558116801446799,"indexed_at_ns":1793707658877956591,"word_count":1079,"hashes":{"dmx-driver/lib/artnet.py":"3aac26e5fc30ac42944e6c70446b999b5d527d088aa82ff47287f89ae6c1fac5"}},"dmx-driver/lib/dmx.py":{"size":930,"mtime_ns":1792558116819211832,"indexed_at_ns":1793707658878446873,"word_count":106,"hashes":{"dmx-driver/lib/dmx.py":"6c9934df04c6685364a31ddf7efc87d2502ce582d7a8f1c3ddcd42483e99c67e"}},"dmx-driver/lib/microdot/__init__.py":{"size":105,"mtime_ns":1790587714329195337,"indexed_at_ns":1793707658878927267,"word_count":13,"hashes":{"dmx-driver/lib/microdot/__init__.py":"ec3f822838066330dbdfa6a24ca7fd3e059ef19aabaccc322e70ef6a7da55aac"}},"dmx-driver/lib/microdot/helpers.py":{"size":232,"mtime_ns":1790587714329195337,"indexed_at_ns":1793707658879255364,"word_count":26,"hashes":{"dmx-driver/lib/microdot/helpers.py":"6b2e71d9786d2c149801eb943b8b873d07601bf9ae1bf9c413114941b32163c2"}},"dmx-driver/lib/microdot/microdot.py":{"size":53202,"mtime_ns":1790587714329195337,"indexed_at_ns":1793707658879562246,"word_count":5131,"hashes":{"dmx-driver/lib/microdot/microdot.py":"4402b84a5214da121fad794ab9bcb59a355d4c98647d3a53953cf3bc78291688"}},"dmx-driver/lib/microdot/utemplate.py":{"size":2543,"mtime_ns":1790587714329195337,"indexed_at_ns":1793707658879958078,"word_count":233,"hashes":{"dmx-driver/lib/microdot/utemplate.py":"d248495f0d973d0a0c0d0121b837e9ffLine truncated
{".claude/CLAUDE.md":{"size":226,"mtime_ns":1793707532996234423,"indexed_at_ns":1793707658543205519,"word_count":29,"hashes":{".claude/CLAUDE.md":"dd502cd6ce0bbff5d4c021e94be6aa49afe1f99dd85901e0201831908630e94b"}},"CLAUDE.md":{"size":1582,"mtime_ns":1794560833170090840,"indexed_at_ns":1794609720117981763,"word_count":247},"CMakeLists.txt":{"size":111,"mtime_ns":1793622279097091871,"indexed_at_ns":1793707658543849029,"word_count":4,"hashes":{"CMakeLists.txt":"837822e28c9599ef04852743d1f103d636d744f2e9219a407744dd5cd636cc9b"}},"README.md":{"size":3583,"mtime_ns":1794783157300129617,"indexed_at_ns":1794783233679457247,"word_count":498},"db/audio_run.json":{"size":103,"mtime_ns":1792558116811211805,"indexed_at_ns":1793707658868880485,"word_count":10,"hashes":{"db/audio_run.json":"22b6ce7327ac83a083fd0ab93d338685ce8a4bf2eba2122f93dbe7b7b36ffe8d"}},"db/bridges.json":{"size":279,"mtime_ns":1792035647171829311,"indexed_at_ns":1793707658874810261,"word_count":26,"hashes":{"db/bridges.json":"3cacd14c72fe5d4a0d316f8b1189134686de036427c8c97d26827638f5c0a913"}},"db/device.json":{"size":2,"mtime_ns":1793777185742747874,"indexed_at_ns":1793777223754642632,"word_count":1,"hashes":{"db/device.json":"d37387d627ac3f5cd9a139daf3b0490a820f32cc88fdcf09a89f7ed5f2879437"}},"db/group.json":{"size":407,"mtime_ns":1793784073189169768,"indexed_at_ns":1793784223737930610,"word_count":48,"hashes":{"db/group.json":"5ac5e81478218af9a7905607a853f0e58b3b8ed6218fb43406366214d81fdf1f"}},"db/output.json":{"size":2,"mtime_ns":1793777185742792981,"indexed_at_ns":1793777223755186745,"word_count":1,"hashes":{"db/output.json":"41b7170a77edddababaeeacfbfcac81d52aed8cd7ab91326a1b2587168f24fea"}},"db/palette.json":{"size":95,"mtime_ns":1793777185742725183,"indexed_at_ns":1793777223755421480,"word_count":9,"hashes":{"db/palette.json":"51fc59a676fa15de8a94dad96942d2ba1837f08bcfbe5158248a3a26e7b8c867"}},"db/pattern.json":{"size":4111,"mtime_ns":1794267054112010144,"indexed_at_ns":1794270646545205657,"word_count":499,"hashes":{"db/pattern.json":"bc4cd267b2a53018ecd2254967f7e0af64f120394656089d184956b684c970a4"}},"db/preset.json":{"size":1547,"mtime_ns":1794192230145924224,"indexed_at_ns":1794192255641306971,"word_count":2,"hashes":{"db/preset.json":"b787780a60fb5de5ab1ae5e95e28c56209c07e76167bf6f7d54a23098de393f1"}},"db/profile.json":{"size":103,"mtime_ns":1793777185742698915,"indexed_at_ns":1793777223756285988,"word_count":13,"hashes":{"db/profile.json":"0c884cad9c2d30151e71adcf2c73c922accc2adc1ec7e3a5f2557f65348ab16d"}},"db/scene.json":{"size":2,"mtime_ns":1793777185743064106,"indexed_at_ns":1793777223756521395,"word_count":1,"hashes":{"db/scene.json":"3fa068cb49be44a2bca2cc32c266bc67dd33f09a90ca72ff5b7e744f2d6372e4"}},"db/sequence.json":{"size":2,"mtime_ns":1793777185742815256,"indexed_at_ns":1793777223756746197,"word_count":1,"hashes":{"db/sequence.json":"9fe59214947c107acb45669e2f107b00be6b6c6184e12ca597f7fc2b661e341a"}},"db/zone.json":{"size":280,"mtime_ns":1793783703894998088,"indexed_at_ns":1793784223739991976,"word_count":35,"hashes":{"db/zone.json":"cdd502ffa90331dbfa71842351796f0b9317de1d744f644233c2e5537089ff7b"}},"dmx-driver/README.md":{"size":2911,"mtime_ns":1792558116808211795,"indexed_at_ns":1793707658544334791,"word_count":395,"hashes":{"dmx-driver/README.md":"0c5ffe2dffbe102a54487430d3946fadbc65335f06b0f6c79f3c16b82f56ab0b"}},"dmx-driver/dev.py":{"size":2240,"mtime_ns":1792558116805211784,"indexed_at_ns":1793707658877667616,"word_count":194,"hashes":{"dmx-driver/dev.py":"284307111b0bcc67200ad58aa46b1a9f4f909b1f565a4867b3ef4bf4bbaec012"}},"dmx-driver/lib/artnet.py":{"size":10536,"mtime_ns":1792558116801446799,"indexed_at_ns":1793707658877956591,"word_count":1079,"hashes":{"dmx-driver/lib/artnet.py":"3aac26e5fc30ac42944e6c70446b999b5d527d088aa82ff47287f89ae6c1fac5"}},"dmx-driver/lib/dmx.py":{"size":930,"mtime_ns":1792558116819211832,"indexed_at_ns":1793707658878446873,"word_count":106,"hashes":{"dmx-driver/lib/dmx.py":"6c9934df04c6685364a31ddf7efc87d2502ce582d7a8f1c3ddcd42483e99c67e"}},"dmx-driver/lib/microdot/__init__.py":{"size":105,"mtime_ns":1790587714329195337,"indexed_at_ns":1793707658878927267,"word_count":13,"hashes":{"dmx-driver/lib/microdot/__init__.py":"ec3f822838066330dbdfa6a24ca7fd3e059ef19aabaccc322e70ef6a7da55aac"}},"dmx-driver/lib/microdot/helpers.py":{"size":232,"mtime_ns":1790587714329195337,"indexed_at_ns":1793707658879255364,"word_count":26,"hashes":{"dmx-driver/lib/microdot/helpers.py":"6b2e71d9786d2c149801eb943b8b873d07601bf9ae1bf9c413114941b32163c2"}},"dmx-driver/lib/microdot/microdot.py":{"size":53202,"mtime_ns":1790587714329195337,"indexed_at_ns":1793707658879562246,"word_count":5131,"hashes":{"dmx-driver/lib/microdot/microdot.py":"4402b84a5214da121fad794ab9bcb59a355d4c98647d3a53953cf3bc78291688"}},"dmx-driver/lib/microdot/utemplate.py":{"size":2543,"mtime_ns":1790587714329195337,"indexed_at_ns":1793707658879958078,"word_count":233,"hashes":{"dmx-driver/lib/microdot/utemplate.py":"d248495f0d973d0a0c0d0121b837e9ffLine truncated
+4 -4
View File
@@ -94,12 +94,12 @@
</div>
<div id="legend"></div>
</div>
<div id="stats">4727 nodes &middot; 13754 edges &middot; 219 communities</div>
<div id="stats">4731 nodes &middot; 13767 edges &middot; 216 communities</div>
</div>
<script>
const RAW_NODES = [{"id": "led_driver_main_ctrl_msg_keyname", "label": "KeyName", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 10.5, "font": {"size": 0, "color": "#ffffff"}, "title": "KeyName", "community": 26, "community_name": "ctrl_msg.cpp", "source_file": "led-driver/main/ctrl_msg.cpp", "file_type": "code", "degree": 4}, {"id": "led_driver_main_ctrl_msg_rd", "label": "Rd", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 11.3, "font": {"size": 0, "color": "#ffffff"}, "title": "Rd", "community": 26, "community_name": "ctrl_msg.cpp", "source_file": "led-driver/main/ctrl_msg.cpp", "file_type": "code", "degree": 11}, {"id": "led_driver_main_espnow_link_asm", "label": "Asm", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 11.5, "font": {"size": 0, "color": "#ffffff"}, "title": "Asm", "community": 77, "community_name": "espnow_link.cpp", "source_file": "led-driver/main/espnow_link.cpp", "file_type": "code", "degree": 13}, {"id": "led_driver_main_espnow_link_done", "label": "Done", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 10.4, "font": {"size": 0, "color": "#ffffff"}, "title": "Done", "community": 77, "community_name": "espnow_link.cpp", "source_file": "led-driver/main/espnow_link.cpp", "file_type": "code", "degree": 3}, {"id": "led_driver_main_espnow_link_frame", "label": "Frame", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 10.6, "font": {"size": 0, "color": "#ffffff"}, "title": "Frame", "community": 77, "community_name": "espnow_link.cpp", "source_file": "led-driver/main/espnow_link.cpp", "file_type": "code", "degree": 5}, {"id": "sim_driver_src_nvs_sim_type", "label": "Type", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 11.2, "font": {"size": 0, "color": "#ffffff"}, "title": "Type", "community": 94, "community_name": "Type", "source_file": "sim-driver/src/nvs_sim.cpp", "file_type": "code", "degree": 10}, {"id": "sim_driver_src_nvs_sim_value", "label": "Value", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 10.8, "font": {"size": 0, "color": "#ffffff"}, "title": "Value", "community": 94, "community_name": "Type", "source_file": "sim-driver/src/nvs_sim.cpp", "file_type": "code", "degree": 7}, {"id": "led_driver_main_ws2812_ws2812", "label": "WS2812", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 13.0, "font": {"size": 0, "color": "#ffffff"}, "title": "WS2812", "community": 41, "community_name": "WS2812", "source_file": "led-driver/main/ws2812.h", "file_type": "code", "degree": 26}, {"id": "led_driver_main_web_api_call_t", "label": "api_call_t", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.7, "font": {"size": 0, "color": "#ffffff"}, "title": "api_call_t", "community": 89, "community_name": "api_call_t", "source_file": "led-driver/main/web.cpp", "file_type": "code", "degree": 6}, {"id": "desktop_third_party_cjson_cjson_cjson", "label": "cJSON", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 40.0, "font": {"size": 12, "color": "#ffffff"}, "title": "cJSON", "community": 23, "community_name": "cJSON_IsString", "source_file": "desktop/third_party/cjson/cJSON.h", "file_type": "code", "degree": 257}, {"id": "desktop_third_party_cjson_cjson_cjson_hooks", "label": "cJSON_Hooks", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 10.2, "font": {"size": 0, "color": "#ffffff"}, "title": "cJSON_Hooks", "community": 177, "community_name": "espnow_tx.c", "source_file": "desktop/third_party/cjson/cJSON.h", "file_type": "code", "degree": 2}, {"id": "desktop_third_party_http_parser_http_parser_flags", "label": "flags", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 11.1, "font": {"size": 0, "color": "#ffffff"}, "title": "flags", "community": 131, "community_name": "flags", "source_file": "desktop/third_party/http_parser/http_parser.h", "file_type": "code", "degree": 9}, {"id": "desktop_third_party_http_parser_http_parser_http_errno", "label": "http_errno", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 10.2, "font": {"size": 0, "color": "#ffffff"}, "title": "http_errno", "community": 45, "community_name": "hLine truncated
const RAW_EDGES = [{"from": "led_driver_main_ctrl_msg_keyname", "to": "led_driver_main_ctrl_msg_keyname_shortk", "label": "defines", "title": "defines [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "led_driver_main_ctrl_msg_keyname", "to": "led_driver_main_ctrl_msg_keyname_longk", "label": "defines", "title": "defines [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "led_driver_main_ctrl_msg_long_name", "to": "led_driver_main_ctrl_msg_keyname", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "led_driver_main_ctrl_msg_cpp_led_driver_main_ctrl_msg", "to": "led_driver_main_ctrl_msg_keyname", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "led_driver_main_ctrl_msg_rd", "to": "led_driver_main_ctrl_msg_rd_p", "label": "defines", "title": "defines [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "led_driver_main_ctrl_msg_rd", "to": "led_driver_main_ctrl_msg_rd_n", "label": "defines", "title": "defines [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "led_driver_main_ctrl_msg_rd", "to": "led_driver_main_ctrl_msg_rd_off", "label": "defines", "title": "defines [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "led_driver_main_ctrl_msg_rd", "to": "led_driver_main_ctrl_msg_rd_ok", "label": "defines", "title": "defines [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "led_driver_main_ctrl_msg_decode_default", "to": "led_driver_main_ctrl_msg_rd", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "led_driver_main_ctrl_msg_decode_presets", "to": "led_driver_main_ctrl_msg_rd", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "led_driver_main_ctrl_msg_decode_select", "to": "led_driver_main_ctrl_msg_rd", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "led_driver_main_ctrl_msg_cpp_led_driver_main_ctrl_msg", "to": "led_driver_main_ctrl_msg_rd", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "led_driver_main_ctrl_msg_rd", "to": "led_driver_main_ctrl_msg_rd_bytes", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "led_driver_main_ctrl_msg_rd", "to": "led_driver_main_ctrl_msg_rd_u8", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "led_driver_main_ctrl_msg_rd", "to": "led_driver_main_ctrl_msg_rd_u16", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "led_driver_main_espnow_link_asm", "to": "led_driver_main_espnow_link_asm_used", "label": "defines", "title": "defines [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "led_driver_main_espnow_link_asm", "to": "led_driver_main_espnow_link_asm_mac", "label": "defines", "title": "defines [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "led_driver_main_espnow_link_asm", "to": "led_driver_main_espnow_link_asm_seq", "label": "defines", "title": "defines [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "led_driver_main_espnow_link_asm", "to": "led_driver_main_espnow_link_asm_cnt", "label": "defines", "title": "defines [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "led_driver_main_espnow_link_asm", "to": "led_driver_main_espnow_link_asm_flags", "label": "defines", "title": "defines [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "led_driver_main_espnow_link_asm", "to": "led_driver_main_espnow_link_asm_ver", "label": "defines", "title": "defines [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "led_driver_main_espnow_link_asm", "to": "led_driver_main_espnow_link_asm_mask", "label": "defines", "title": "defines [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "led_driver_maLine truncated
const LEGEND = [{"cid": 0, "color": "#4E79A7", "label": "IdfDevice", "count": 35}, {"cid": 1, "color": "#F28E2B", "label": "htmx Library", "count": 104}, {"cid": 2, "color": "#E15759", "label": "machine.py", "count": 22}, {"cid": 3, "color": "#76B7B2", "label": "Browser Tests &amp; Mockup Images", "count": 70}, {"cid": 4, "color": "#59A14F", "label": "Audio UI (JS)", "count": 59}, {"cid": 5, "color": "#EDC948", "label": "cJSON", "count": 74}, {"cid": 6, "color": "#B07AA1", "label": "create_app", "count": 24}, {"cid": 7, "color": "#FF9DA7", "label": "led-tool Device CLI", "count": 66}, {"cid": 8, "color": "#9C755F", "label": "ab", "count": 102}, {"cid": 9, "color": "#BAB0AC", "label": "Compiler", "count": 42}, {"cid": 10, "color": "#4E79A7", "label": "Spec: Pi Animation Engine", "count": 47}, {"cid": 11, "color": "#F28E2B", "label": "seq_timeline.js", "count": 60}, {"cid": 12, "color": "#E15759", "label": "Presets UI (JS)", "count": 47}, {"cid": 13, "color": "#76B7B2", "label": "Zones UI (JS)", "count": 46}, {"cid": 14, "color": "#59A14F", "label": "sim_rig.c", "count": 47}, {"cid": 15, "color": "#EDC948", "label": "new_id", "count": 30}, {"cid": 16, "color": "#B07AA1", "label": "Sequences UI (JS)", "count": 41}, {"cid": 17, "color": "#FF9DA7", "label": "SerialTransport", "count": 37}, {"cid": 18, "color": "#9C755F", "label": "esp_err.h", "count": 146}, {"cid": 19, "color": "#BAB0AC", "label": "led_strip Component Docs", "count": 39}, {"cid": 20, "color": "#4E79A7", "label": "Art-Net Output", "count": 37}, {"cid": 21, "color": "#F28E2B", "label": "freertos.c", "count": 74}, {"cid": 22, "color": "#E15759", "label": "LedSimulatorApp", "count": 24}, {"cid": 23, "color": "#76B7B2", "label": "cJSON_IsString", "count": 98}, {"cid": 24, "color": "#59A14F", "label": "cJSON_Delete", "count": 47}, {"cid": 25, "color": "#EDC948", "label": "Microdot", "count": 34}, {"cid": 26, "color": "#B07AA1", "label": "ctrl_msg.cpp", "count": 28}, {"cid": 27, "color": "#FF9DA7", "label": "seqplay.c", "count": 49}, {"cid": 28, "color": "#9C755F", "label": "Devices UI (JS)", "count": 36}, {"cid": 29, "color": "#BAB0AC", "label": "binary_envelope.py", "count": 30}, {"cid": 30, "color": "#4E79A7", "label": "Colour Picker Mockups", "count": 29}, {"cid": 31, "color": "#F28E2B", "label": "PyboardCommand", "count": 26}, {"cid": 32, "color": "#E15759", "label": "cJSON_CreateObject", "count": 73}, {"cid": 33, "color": "#76B7B2", "label": "httpd_parse.c", "count": 28}, {"cid": 34, "color": "#59A14F", "label": "test_sequences.py", "count": 29}, {"cid": 35, "color": "#EDC948", "label": "cJSON_Delete", "count": 52}, {"cid": 36, "color": "#B07AA1", "label": "API Docs: Outputs &amp; Audio", "count": 24}, {"cid": 37, "color": "#FF9DA7", "label": "http_parser", "count": 21}, {"cid": 38, "color": "#9C755F", "label": "socket", "count": 25}, {"cid": 39, "color": "#BAB0AC", "label": "Beat Detection DSP (C)", "count": 19}, {"cid": 40, "color": "#4E79A7", "label": "xSemaphoreGive", "count": 110}, {"cid": 41, "color": "#F28E2B", "label": "WS2812", "count": 47}, {"cid": 42, "color": "#E15759", "label": "run_all", "count": 21}, {"cid": 43, "color": "#76B7B2", "label": "usb_cfg.cpp", "count": 51}, {"cid": 44, "color": "#59A14F", "label": "httpd_handle_t", "count": 27}, {"cid": 45, "color": "#EDC948", "label": "http_parser.h", "count": 23}, {"cid": 46, "color": "#B07AA1", "label": "http_parser.c", "count": 17}, {"cid": 47, "color": "#FF9DA7", "label": "USB Latency Tools", "count": 21}, {"cid": 48, "color": "#9C755F", "label": "Colour Picker JS", "count": 23}, {"cid": 49, "color": "#BAB0AC", "label": "Chromium Colour Picker JS", "count": 23}, {"cid": 50, "color": "#4E79A7", "label": "exchange", "count": 26}, {"cid": 51, "color": "#F28E2B", "label": "API Tests: Devices", "count": 27}, {"cid": 52, "color": "#E15759", "label": "sys", "count": 31}, {"cid": 53, "color": "#76B7B2", "label": "mpremote Transport", "count": 22}, {"cid": 54, "color": "#59A14F", "label": "httpd_sess.c", "count": 27}, {"cid": 56, "color": "#B07AA1", "label": "test_outputs.py", "count": 10}, {"cid": 57, "color": "#FF9DA7", "label": "httpd_config", "count": 31}, {"cid": 58, "color": "#9C755F", "label": "gallery.js", "count": 17}, {"cid": 59, "color": "#BAB0AC", "label": "mic_alsa.c", "count": 33}, {"cid": 60, "color": "#4E79A7", "label": "nvs_sim.cpp", "count": 37}, {"cid": 61, "color": "#F28E2B", "label": "API Test Fixtures &amp; Audio", "count": 20}, {"cid": 62, "color": "#E15759", "label": "Microdot Request (dmx)", "count": 17}, {"cid": 63, "color": "#76B7B2", "label": "Help: Zones &amp; Palette", "count": 20}, {"cid": 64, "color": "#59A14F", "label": "ddp_test.py", "count": 42}, {"cid": 65, "color": "#EDC948", "label": "ESPNow", "count": 14}, {"cid": 66, "color": "#B07AA1", "label": "httpd_handle_t", "count": 33}, {"cid": 67, "color": "#FF9DA7", "label": "BridgeSim", "count": 26}, {"cid": 68, "color": "#9C755F", "label": "httpd_uri.c", "count": 24}, {"cid": 69, "color": "#BAB0AC", "labelLine truncated
const RAW_NODES = [{"id": "led_driver_main_ctrl_msg_keyname", "label": "KeyName", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 10.5, "font": {"size": 0, "color": "#ffffff"}, "title": "KeyName", "community": 26, "community_name": "KeyName", "source_file": "led-driver/main/ctrl_msg.cpp", "file_type": "code", "degree": 4}, {"id": "led_driver_main_ctrl_msg_rd", "label": "Rd", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 11.3, "font": {"size": 0, "color": "#ffffff"}, "title": "Rd", "community": 32, "community_name": "cJSON_CreateObject", "source_file": "led-driver/main/ctrl_msg.cpp", "file_type": "code", "degree": 11}, {"id": "sim_driver_src_nvs_sim_type", "label": "Type", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 11.2, "font": {"size": 0, "color": "#ffffff"}, "title": "Type", "community": 60, "community_name": "nvs_sim.cpp", "source_file": "sim-driver/src/nvs_sim.cpp", "file_type": "code", "degree": 10}, {"id": "sim_driver_src_nvs_sim_value", "label": "Value", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 10.8, "font": {"size": 0, "color": "#ffffff"}, "title": "Value", "community": 60, "community_name": "nvs_sim.cpp", "source_file": "sim-driver/src/nvs_sim.cpp", "file_type": "code", "degree": 7}, {"id": "led_driver_main_espnow_link_asm", "label": "Asm", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 11.5, "font": {"size": 0, "color": "#ffffff"}, "title": "Asm", "community": 77, "community_name": "espnow_link.cpp", "source_file": "led-driver/main/espnow_link.cpp", "file_type": "code", "degree": 13}, {"id": "led_driver_main_espnow_link_done", "label": "Done", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 10.4, "font": {"size": 0, "color": "#ffffff"}, "title": "Done", "community": 77, "community_name": "espnow_link.cpp", "source_file": "led-driver/main/espnow_link.cpp", "file_type": "code", "degree": 3}, {"id": "led_driver_main_espnow_link_frame", "label": "Frame", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 10.6, "font": {"size": 0, "color": "#ffffff"}, "title": "Frame", "community": 77, "community_name": "espnow_link.cpp", "source_file": "led-driver/main/espnow_link.cpp", "file_type": "code", "degree": 5}, {"id": "led_driver_main_ws2812_ws2812", "label": "WS2812", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 13.0, "font": {"size": 0, "color": "#ffffff"}, "title": "WS2812", "community": 41, "community_name": "WS2812", "source_file": "led-driver/main/ws2812.h", "file_type": "code", "degree": 26}, {"id": "led_driver_main_web_api_call_t", "label": "api_call_t", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 10.7, "font": {"size": 0, "color": "#ffffff"}, "title": "api_call_t", "community": 89, "community_name": "api_call_t", "source_file": "led-driver/main/web.cpp", "file_type": "code", "degree": 6}, {"id": "desktop_third_party_cjson_cjson_cjson", "label": "cJSON", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 40.0, "font": {"size": 12, "color": "#ffffff"}, "title": "cJSON", "community": 23, "community_name": "cJSON_IsString", "source_file": "desktop/third_party/cjson/cJSON.h", "file_type": "code", "degree": 257}, {"id": "desktop_third_party_cjson_cjson_cjson_hooks", "label": "cJSON_Hooks", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 10.2, "font": {"size": 0, "color": "#ffffff"}, "title": "cJSON_Hooks", "community": 126, "community_name": "app_main", "source_file": "desktop/third_party/cjson/cJSON.h", "file_type": "code", "degree": 2}, {"id": "desktop_third_party_http_parser_http_parser_flags", "label": "flags", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 11.1, "font": {"size": 0, "color": "#ffffff"}, "title": "flags", "community": 45, "community_name": "http_parser.h", "source_file": "desktop/third_party/http_parser/http_parser.h", "file_type": "code", "degree": 9}, {"id": "desktop_third_party_http_parser_http_parser_http_errno", "label": "http_errno", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 10.2, "font": {"size": 0, "color": "#ffffff"}, "title": "http_errno", "community": 45, "Line truncated
const RAW_EDGES = [{"from": "led_driver_main_ctrl_msg_keyname", "to": "led_driver_main_ctrl_msg_keyname_shortk", "label": "defines", "title": "defines [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "led_driver_main_ctrl_msg_keyname", "to": "led_driver_main_ctrl_msg_keyname_longk", "label": "defines", "title": "defines [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "led_driver_main_ctrl_msg_long_name", "to": "led_driver_main_ctrl_msg_keyname", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "led_driver_main_ctrl_msg_cpp_led_driver_main_ctrl_msg", "to": "led_driver_main_ctrl_msg_keyname", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "led_driver_main_ctrl_msg_rd", "to": "led_driver_main_ctrl_msg_rd_p", "label": "defines", "title": "defines [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "led_driver_main_ctrl_msg_rd", "to": "led_driver_main_ctrl_msg_rd_n", "label": "defines", "title": "defines [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "led_driver_main_ctrl_msg_rd", "to": "led_driver_main_ctrl_msg_rd_off", "label": "defines", "title": "defines [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "led_driver_main_ctrl_msg_rd", "to": "led_driver_main_ctrl_msg_rd_ok", "label": "defines", "title": "defines [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "led_driver_main_ctrl_msg_decode_default", "to": "led_driver_main_ctrl_msg_rd", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "led_driver_main_ctrl_msg_decode_presets", "to": "led_driver_main_ctrl_msg_rd", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "led_driver_main_ctrl_msg_decode_select", "to": "led_driver_main_ctrl_msg_rd", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "led_driver_main_ctrl_msg_cpp_led_driver_main_ctrl_msg", "to": "led_driver_main_ctrl_msg_rd", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "led_driver_main_ctrl_msg_rd", "to": "led_driver_main_ctrl_msg_rd_bytes", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "led_driver_main_ctrl_msg_rd", "to": "led_driver_main_ctrl_msg_rd_u8", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "led_driver_main_ctrl_msg_rd", "to": "led_driver_main_ctrl_msg_rd_u16", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "sim_driver_src_nvs_sim_value", "to": "sim_driver_src_nvs_sim_type", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "sim_driver_src_nvs_sim_get_bytes", "to": "sim_driver_src_nvs_sim_type", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "sim_driver_src_nvs_sim_get_num", "to": "sim_driver_src_nvs_sim_type", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "sim_driver_src_nvs_sim_type", "to": "sim_driver_src_nvs_sim_type_t_blob", "label": "case_of", "title": "case_of [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "sim_driver_src_nvs_sim_type", "to": "sim_driver_src_nvs_sim_type_t_i32", "label": "case_of", "title": "case_of [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "sim_driver_src_nvs_sim_type", "to": "sim_driver_src_nvs_sim_type_t_i64", "label": "case_of", "title": "case_of [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "sim_driver_src_nvs_sim_type", "to": "sim_driver_src_nvs_sim_type_t_str", "label": "case_of", "title": "case_of [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "sim_driver_src_nvs_sim_type", "to": "sim_driver_sLine truncated
const LEGEND = [{"cid": 0, "color": "#4E79A7", "label": "IdfDevice", "count": 33}, {"cid": 1, "color": "#F28E2B", "label": "htmx Library", "count": 104}, {"cid": 2, "color": "#E15759", "label": "Pin", "count": 11}, {"cid": 3, "color": "#76B7B2", "label": "Browser Tests &amp; Mockup Images", "count": 70}, {"cid": 4, "color": "#59A14F", "label": "Audio UI (JS)", "count": 59}, {"cid": 5, "color": "#EDC948", "label": "cJSON", "count": 76}, {"cid": 6, "color": "#B07AA1", "label": "create_app", "count": 24}, {"cid": 7, "color": "#FF9DA7", "label": "led-tool Device CLI", "count": 70}, {"cid": 8, "color": "#9C755F", "label": "ab", "count": 102}, {"cid": 9, "color": "#BAB0AC", "label": "Compiler", "count": 42}, {"cid": 10, "color": "#4E79A7", "label": "Spec: Pi Animation Engine", "count": 47}, {"cid": 11, "color": "#F28E2B", "label": "seq_timeline.js", "count": 62}, {"cid": 12, "color": "#E15759", "label": "Presets UI (JS)", "count": 47}, {"cid": 13, "color": "#76B7B2", "label": "Zones UI (JS)", "count": 46}, {"cid": 14, "color": "#59A14F", "label": "sim_rig.c", "count": 44}, {"cid": 15, "color": "#EDC948", "label": "new_id", "count": 32}, {"cid": 16, "color": "#B07AA1", "label": "Sequences UI (JS)", "count": 41}, {"cid": 17, "color": "#FF9DA7", "label": "SerialTransport", "count": 27}, {"cid": 18, "color": "#9C755F", "label": "esp_err.h", "count": 60}, {"cid": 19, "color": "#BAB0AC", "label": "led_strip Component Docs", "count": 39}, {"cid": 20, "color": "#4E79A7", "label": "Art-Net Output", "count": 39}, {"cid": 21, "color": "#F28E2B", "label": "freertos.c", "count": 76}, {"cid": 22, "color": "#E15759", "label": "bridge.c", "count": 33}, {"cid": 23, "color": "#76B7B2", "label": "cJSON_IsString", "count": 111}, {"cid": 24, "color": "#59A14F", "label": "cJSON_Delete", "count": 49}, {"cid": 25, "color": "#EDC948", "label": "Microdot", "count": 34}, {"cid": 26, "color": "#B07AA1", "label": "KeyName", "count": 4}, {"cid": 27, "color": "#FF9DA7", "label": "seqplay.c", "count": 68}, {"cid": 28, "color": "#9C755F", "label": "Devices UI (JS)", "count": 36}, {"cid": 29, "color": "#BAB0AC", "label": "binary_envelope.py", "count": 30}, {"cid": 30, "color": "#4E79A7", "label": "Colour Picker Mockups", "count": 29}, {"cid": 31, "color": "#F28E2B", "label": "PyboardCommand", "count": 26}, {"cid": 32, "color": "#E15759", "label": "cJSON_CreateObject", "count": 99}, {"cid": 33, "color": "#76B7B2", "label": "httpd_parse.c", "count": 70}, {"cid": 34, "color": "#59A14F", "label": "test_sequences.py", "count": 29}, {"cid": 35, "color": "#EDC948", "label": "cJSON_Delete", "count": 37}, {"cid": 36, "color": "#B07AA1", "label": "API Docs: Outputs &amp; Audio", "count": 23}, {"cid": 37, "color": "#FF9DA7", "label": "stdio", "count": 28}, {"cid": 38, "color": "#9C755F", "label": "socket", "count": 16}, {"cid": 39, "color": "#BAB0AC", "label": "Beat Detection DSP (C)", "count": 21}, {"cid": 40, "color": "#4E79A7", "label": "xSemaphoreGive", "count": 68}, {"cid": 41, "color": "#F28E2B", "label": "WS2812", "count": 45}, {"cid": 42, "color": "#E15759", "label": "run_all", "count": 21}, {"cid": 43, "color": "#76B7B2", "label": "usb_cfg.cpp", "count": 38}, {"cid": 44, "color": "#59A14F", "label": "httpd_handle_t", "count": 31}, {"cid": 45, "color": "#EDC948", "label": "http_parser.h", "count": 45}, {"cid": 46, "color": "#B07AA1", "label": "bench.c", "count": 22}, {"cid": 47, "color": "#FF9DA7", "label": "USB Latency Tools", "count": 29}, {"cid": 48, "color": "#9C755F", "label": "Colour Picker JS", "count": 23}, {"cid": 49, "color": "#BAB0AC", "label": "Chromium Colour Picker JS", "count": 23}, {"cid": 50, "color": "#4E79A7", "label": "esp_glue.c", "count": 24}, {"cid": 51, "color": "#F28E2B", "label": "API Tests: Devices", "count": 27}, {"cid": 52, "color": "#E15759", "label": "sys", "count": 36}, {"cid": 53, "color": "#76B7B2", "label": "mpremote Transport", "count": 22}, {"cid": 54, "color": "#59A14F", "label": "httpd_sess.c", "count": 30}, {"cid": 55, "color": "#EDC948", "label": "sim_glue.c", "count": 20}, {"cid": 56, "color": "#B07AA1", "label": "test_outputs.py", "count": 10}, {"cid": 57, "color": "#FF9DA7", "label": "httpd_config", "count": 34}, {"cid": 58, "color": "#9C755F", "label": "gallery.js", "count": 17}, {"cid": 59, "color": "#BAB0AC", "label": "mic_alsa.c", "count": 26}, {"cid": 60, "color": "#4E79A7", "label": "nvs_sim.cpp", "count": 39}, {"cid": 61, "color": "#F28E2B", "label": "API Test Fixtures &amp; Audio", "count": 15}, {"cid": 62, "color": "#E15759", "label": "Microdot Request (dmx)", "count": 17}, {"cid": 63, "color": "#76B7B2", "label": "Help: Zones &amp; Palette", "count": 20}, {"cid": 64, "color": "#59A14F", "label": "ddp_test.py", "count": 42}, {"cid": 65, "color": "#EDC948", "label": "ESPNow", "count": 28}, {"cid": 66, "color": "#B07AA1", "label": "httpd_handle_t", "count": 22}, {"cid": 67, "color": "#FF9DA7", "label": "status_get_handler", "count": 18}, {"cid": 68, "color": "#9C755F", "label": "httpd_uri.c", "counLine truncated
// HTML-escape helper — prevents XSS when injecting graph data into innerHTML
function esc(s) {
+1 -1
View File
@@ -1 +1 @@
{"directed":false,"multigraph":false,"graph":{"hyperedges":[{"id":"audio_page_endpoints","label":"Audio page live endpoints","nodes":["web_audio_status","web_audio_beats","web_audio_audio_wav","web_audio_time","web_audio_tap_ep"],"relation":"participate_in","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"web/audio.html"},{"id":"beat_latency_measurement","label":"Beat latency measurement methods","nodes":["docs_api_bench_endpoints","docs_bench_test_usb_latency","docs_bench_test_logic_analyzer","docs_bench_test_beat_lead"],"relation":"participate_in","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/BENCH_TEST.md"},{"id":"brightness_combination","label":"Combined brightness factors","nodes":["docs_api_combined_brightness","docs_api_settings","docs_api_groups","docs_api_devices","docs_api_zones"],"relation":"participate_in","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/API.md"},{"id":"color_picker_feature_set","label":"Color picker feature set","nodes":["docs_mockups_images_color_picker_demo_hsb_color_model","docs_mockups_images_color_picker_demo_hex_rgb_input","docs_mockups_images_color_picker_demo_keyboard_accessibility","docs_mockups_images_color_picker_demo_cross_platform_consistency"],"relation":"form","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/mockups/images/color-picker-demo.png"},{"id":"docs_help_edit_mode_management","label":"Edit-mode-only management features","nodes":["docs_help_edit_mode","docs_help_zones_modal","docs_help_send_presets","docs_help_patterns_dialog","docs_help_colour_palette","docs_help_presets_list"],"relation":"participate_in","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/help.pdf"},{"id":"docs_help_preset_editor_actions","label":"Preset editor actions (Try, Default, Save & Send, Remove from zone)","nodes":["docs_help_try_action","docs_help_default_preset","docs_help_save_and_send","docs_help_remove_from_zone"],"relation":"form","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/help.pdf"},{"id":"docs_images_help_mobile_menu_header_actions","label":"Header actions aggregated in mobile Menu","nodes":["docs_images_help_mobile_menu_run_mode","docs_images_help_mobile_menu_profiles","docs_images_help_mobile_menu_tabs","docs_images_help_mobile_menu_presets","docs_images_help_mobile_menu_help"],"relation":"form","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/images/help/mobile-menu.svg"},{"id":"docs_mockups_device_modal_flow","label":"Device/Group Modal Flow","nodes":["docs_mockups_device_management_showadddevicemodal","docs_mockups_device_management_showaddgroupmodal","docs_mockups_device_management_closemodal","docs_mockups_device_management_savedevice"],"relation":"participate_in","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/mockups/device-management.html"},{"id":"docs_mockups_images_index_ui_mockup_set","label":"LED Driver UI Mockup Set","nodes":["docs_mockups_images_index_dashboard_mockup","docs_mockups_images_index_pattern_selector_mockup","docs_mockups_images_index_device_management_mockup","docs_mockups_images_index_settings_mockup","docs_mockups_images_index_presets_mockup"],"relation":"form","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/mockups/images/index.png"},{"id":"docs_mockups_images_pattern_selector_led_patterns","label":"Selectable LED Patterns","nodes":["docs_mockups_images_pattern_selector_on","docs_mockups_images_pattern_selector_off","docs_mockups_images_pattern_selector_blink","docs_mockups_images_pattern_selector_chase","docs_mockups_images_pattern_selector_circle","docs_mockups_images_pattern_selector_pulse","docs_mockups_images_pattern_selector_rainbow","docs_mockups_images_pattern_selector_transition"],"relation":"form","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/mockups/images/pattern-selector.png"},{"id":"docs_mockups_preset_schema","label":"Preset/pattern configuration schema (pattern, colors, delay, step increment, N1-N8)","nodes":["docs_mockups_presets_led_patterns","docs_mockups_presets_delay","docs_mockups_presets_step_increment","docs_mockups_presets_n_parameters","docs_mockups_presets_step_offset"],"relation":"form","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/mockups/presets.html"},{"id":"docs_mockups_settings_sections","label":"Device settings sections","nodes":["docs_mockups_settings_basic_settings","docs_mockups_settings_pattern_settings","docs_mockups_settings_advanced_settings","docs_mockups_settings_network_settings"],"relation":"form","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/mockups/settings.html"},{"id":"docs_mockups_ui_mockup_suite","label":"LED Driver UI Mockup Suite","nodes":["docs_mockups_index","docs_mockups_dashboard","docs_mockups_pattern_selector","docs_mockups_device_management","docs_mockups_readme_settings_mockup","docs_mockups_color_picker_readme_presets_mockup"],"relation":"foLine truncated
{"directed":false,"multigraph":false,"graph":{"hyperedges":[{"id":"audio_page_endpoints","label":"Audio page live endpoints","nodes":["web_audio_status","web_audio_beats","web_audio_audio_wav","web_audio_time","web_audio_tap_ep"],"relation":"participate_in","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"web/audio.html"},{"id":"beat_latency_measurement","label":"Beat latency measurement methods","nodes":["docs_api_bench_endpoints","docs_bench_test_usb_latency","docs_bench_test_logic_analyzer","docs_bench_test_beat_lead"],"relation":"participate_in","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/BENCH_TEST.md"},{"id":"brightness_combination","label":"Combined brightness factors","nodes":["docs_api_combined_brightness","docs_api_settings","docs_api_groups","docs_api_devices","docs_api_zones"],"relation":"participate_in","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/API.md"},{"id":"color_picker_feature_set","label":"Color picker feature set","nodes":["docs_mockups_images_color_picker_demo_hsb_color_model","docs_mockups_images_color_picker_demo_hex_rgb_input","docs_mockups_images_color_picker_demo_keyboard_accessibility","docs_mockups_images_color_picker_demo_cross_platform_consistency"],"relation":"form","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/mockups/images/color-picker-demo.png"},{"id":"docs_help_edit_mode_management","label":"Edit-mode-only management features","nodes":["docs_help_edit_mode","docs_help_zones_modal","docs_help_send_presets","docs_help_patterns_dialog","docs_help_colour_palette","docs_help_presets_list"],"relation":"participate_in","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/help.pdf"},{"id":"docs_help_preset_editor_actions","label":"Preset editor actions (Try, Default, Save & Send, Remove from zone)","nodes":["docs_help_try_action","docs_help_default_preset","docs_help_save_and_send","docs_help_remove_from_zone"],"relation":"form","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/help.pdf"},{"id":"docs_images_help_mobile_menu_header_actions","label":"Header actions aggregated in mobile Menu","nodes":["docs_images_help_mobile_menu_run_mode","docs_images_help_mobile_menu_profiles","docs_images_help_mobile_menu_tabs","docs_images_help_mobile_menu_presets","docs_images_help_mobile_menu_help"],"relation":"form","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/images/help/mobile-menu.svg"},{"id":"docs_mockups_device_modal_flow","label":"Device/Group Modal Flow","nodes":["docs_mockups_device_management_showadddevicemodal","docs_mockups_device_management_showaddgroupmodal","docs_mockups_device_management_closemodal","docs_mockups_device_management_savedevice"],"relation":"participate_in","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/mockups/device-management.html"},{"id":"docs_mockups_images_index_ui_mockup_set","label":"LED Driver UI Mockup Set","nodes":["docs_mockups_images_index_dashboard_mockup","docs_mockups_images_index_pattern_selector_mockup","docs_mockups_images_index_device_management_mockup","docs_mockups_images_index_settings_mockup","docs_mockups_images_index_presets_mockup"],"relation":"form","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/mockups/images/index.png"},{"id":"docs_mockups_images_pattern_selector_led_patterns","label":"Selectable LED Patterns","nodes":["docs_mockups_images_pattern_selector_on","docs_mockups_images_pattern_selector_off","docs_mockups_images_pattern_selector_blink","docs_mockups_images_pattern_selector_chase","docs_mockups_images_pattern_selector_circle","docs_mockups_images_pattern_selector_pulse","docs_mockups_images_pattern_selector_rainbow","docs_mockups_images_pattern_selector_transition"],"relation":"form","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/mockups/images/pattern-selector.png"},{"id":"docs_mockups_preset_schema","label":"Preset/pattern configuration schema (pattern, colors, delay, step increment, N1-N8)","nodes":["docs_mockups_presets_led_patterns","docs_mockups_presets_delay","docs_mockups_presets_step_increment","docs_mockups_presets_n_parameters","docs_mockups_presets_step_offset"],"relation":"form","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/mockups/presets.html"},{"id":"docs_mockups_settings_sections","label":"Device settings sections","nodes":["docs_mockups_settings_basic_settings","docs_mockups_settings_pattern_settings","docs_mockups_settings_advanced_settings","docs_mockups_settings_network_settings"],"relation":"form","confidence":"EXTRACTED","confidence_score":1.0,"source_file":"docs/mockups/settings.html"},{"id":"docs_mockups_ui_mockup_suite","label":"LED Driver UI Mockup Suite","nodes":["docs_mockups_index","docs_mockups_dashboard","docs_mockups_pattern_selector","docs_mockups_device_management","docs_mockups_readme_settings_mockup","docs_mockups_color_picker_readme_presets_mockup"],"relation":"foLine truncated
+12 -12
View File
@@ -582,9 +582,9 @@
"semantic_hash": ""
},
"main/seqplay.c": {
"mtime": 1794744220.522299,
"seen": 1794744331.1243594,
"ast_hash": "b8eed0ae06c276c63e91a12f64a366a4",
"mtime": 1794811284.3836346,
"seen": 1794811340.2405632,
"ast_hash": "df53d600b82e177531b2fab2f1c5c071",
"semantic_hash": ""
},
"main/seqplay.h": {
@@ -828,9 +828,9 @@
"semantic_hash": ""
},
"test/api/test_sequences.py": {
"mtime": 1794744234.6046643,
"seen": 1794744331.125877,
"ast_hash": "7307bab1ca43268afb9998479c3c98e3",
"mtime": 1794811321.6382563,
"seen": 1794811340.2433476,
"ast_hash": "019941b581ec786d670e9c267f117533",
"semantic_hash": ""
},
"test/api/test_settings.py": {
@@ -984,9 +984,9 @@
"semantic_hash": "affb16a725a7bb69dda0b7488068666a"
},
"web/static/sequences.js": {
"mtime": 1794744220.5228508,
"seen": 1794744331.1266494,
"ast_hash": "e813e7d3726d38fc90be02b1d3ad69c6",
"mtime": 1794811284.328768,
"seen": 1794811340.2443218,
"ast_hash": "bf4e48445d1d2f1d91ef44c883eae419",
"semantic_hash": ""
},
"web/static/zone-devices-panel.js": {
@@ -2442,9 +2442,9 @@
"semantic_hash": ""
},
"web/static/seq_timeline.js": {
"mtime": 1794744220.5226705,
"seen": 1794744331.1266475,
"ast_hash": "bf189faf39c8de35a88c0b40221d36a3",
"mtime": 1794811292.3481793,
"seen": 1794811340.2443202,
"ast_hash": "0345913ae651f3e1085035c865d64778",
"semantic_hash": ""
},
".claude/launch.json": {
+30 -1
View File
@@ -342,9 +342,11 @@ static bool wifi_selected(const cJSON *dev, const char *id, const cJSON *targets
{
if (cJSON_IsArray(targets) && cJSON_GetArraySize(targets) > 0) {
const cJSON *t;
// A Wi-Fi driver is named by its hostname, or by its MAC when the UI resolved the device to one
const cJSON *dmac = cJSON_GetObjectItem(dev, "mac");
cJSON_ArrayForEach(t, targets)
{
if (cJSON_IsString(t) && !strcmp(t->valuestring, id)) {
if (cJSON_IsString(t) && (!strcmp(t->valuestring, id) || (cJSON_IsString(dmac) && !strcasecmp(t->valuestring, dmac->valuestring)))) {
return true;
}
}
@@ -422,6 +424,12 @@ static void wifi_push(const cJSON *m, const cJSON *targets)
cJSON_AddTrueToObject(body, "select"); // a select restarts the pattern and fades in (fade)
wifi_drv_post(id, "/api/pattern", body);
}
// ESP-NOW carries b in the same frame as the select; the Wi-Fi driver takes it in its own call
if (cJSON_IsNumber(b)) {
cJSON *bb = cJSON_CreateObject();
cJSON_AddNumberToObject(bb, "brightness", b->valuedouble);
wifi_drv_post(id, "/api/brightness", bb);
}
}
}
@@ -553,6 +561,27 @@ const char *engine_zone_current(const char *zone_id)
return NULL;
}
int engine_zone_wifi_ids(const char *zone_id, char out[][GROUP_ID_MAX], int max)
{
char t[ZONE_TARGETS_MAX][GROUP_ID_MAX];
int nt = engine_zone_targets(zone_id, t, ZONE_TARGETS_MAX);
int n = 0;
const cJSON *d;
cJSON_ArrayForEach(d, store_coll("device"))
{
if (!d->string || !is_wifi(d)) {
continue;
}
for (int i = 0; i < nt && n < max; i++) {
if (wifi_in_group(d, d->string, t[i])) {
snprintf(out[n++], GROUP_ID_MAX, "%s", d->string);
break;
}
}
}
return n;
}
int engine_group_macs(const char *gid, char out[][13], int max)
{
int n = 0;
+2
View File
@@ -22,6 +22,8 @@ cJSON *engine_preset_payload(const char *preset_id);
// Drivers in group gid (a group id, "z<zone>" or a driver's own "d<mac>"), as 12-hex MACs from the
// device list. Call with the store locked.
int engine_group_macs(const char *gid, char out[][13], int max);
// Wi-Fi drivers (listed by hostname) in the zone's groups. Call with the store locked.
int engine_zone_wifi_ids(const char *zone_id, char out[][GROUP_ID_MAX], int max);
// The preset a zone last played (engine_play / engine_stop), or NULL. Call with the store locked.
const char *engine_zone_current(const char *zone_id);
// Record preset_id as what zone_id plays, when the UI has sent it to the drivers itself
+3 -1
View File
@@ -420,7 +420,9 @@ int api_effective_brightness(const char *mac, int zone_b)
cJSON_ArrayForEach(it, cJSON_GetObjectItem(g, "devices"))
{
char m[13];
if (api_mac(it, m) && !strcmp(m, mac)) {
// A Wi-Fi driver is listed by its hostname, not a MAC
bool same = (api_mac(it, m) && !strcmp(m, mac)) || (cJSON_IsString(it) && !strcmp(it->valuestring, mac));
if (same) {
v *= clamp255(cJSON_GetObjectItem(g, "output_brightness"), 255) / 255.0;
double c = clamp255(cJSON_GetObjectItem(g, "max_brightness"), 255) / 255.0;
if (c < cap) {
+32 -11
View File
@@ -568,7 +568,7 @@ static int load_lanes(player_t *p, const cJSON *seq)
double beats = num(s, "beats", 1);
beats = beats < 0.25 ? 1 : beats;
double secs = num(s, "seconds", 3);
secs = secs < 0.1 ? 0.1 : (secs > 3600 ? 3600 : secs);
secs = secs < 0.05 ? 0.05 : (secs > 3600 ? 3600 : secs);
if (st->anim && str_is(s, "length", "animation")) {
seqplay_length(st->id, &beats, &secs);
}
@@ -617,6 +617,21 @@ static void clear_drivers(const char *zone)
}
}
// One driver's combined brightness, sent as a v1 brightness message (ESP-NOW by MAC, Wi-Fi by hostname)
static void zone_brightness_push(const char *id, int zone_b)
{
cJSON *m = cJSON_CreateObject();
cJSON_AddStringToObject(m, "v", "1");
cJSON_AddNumberToObject(m, "b", api_effective_brightness(id, zone_b));
cJSON_AddTrueToObject(m, "save");
cJSON *messages = cJSON_CreateArray(), *targets = cJSON_CreateArray();
cJSON_AddItemToArray(messages, m);
cJSON_AddItemToArray(targets, cJSON_CreateString(id));
engine_push(messages, targets);
cJSON_Delete(messages);
cJSON_Delete(targets);
}
// Every driver the zone reaches gets its combined brightness with the zone's slider value
static void zone_brightness(const char *zone_id)
{
@@ -635,16 +650,13 @@ static void zone_brightness(const char *zone_id)
}
}
for (int i = 0; i < macs.n; i++) {
cJSON *m = cJSON_CreateObject();
cJSON_AddStringToObject(m, "v", "1");
cJSON_AddNumberToObject(m, "b", api_effective_brightness(macs.m[i], zone_b));
cJSON_AddTrueToObject(m, "save");
cJSON *messages = cJSON_CreateArray(), *targets = cJSON_CreateArray();
cJSON_AddItemToArray(messages, m);
cJSON_AddItemToArray(targets, cJSON_CreateString(macs.m[i]));
engine_push(messages, targets);
cJSON_Delete(messages);
cJSON_Delete(targets);
zone_brightness_push(macs.m[i], zone_b);
}
// Wi-Fi drivers are listed by hostname, so they are not among the MACs above
char w[MACS_MAX][GROUP_ID_MAX];
int nw = engine_zone_wifi_ids(zone_id, w, MACS_MAX);
for (int i = 0; i < nw; i++) {
zone_brightness_push(w[i], zone_b);
}
}
@@ -1246,6 +1258,15 @@ bool seqplay_sync(const char *mode)
void seqplay_length(const char *seq_id, double *beats, double *secs)
{
const cJSON *seq = cJSON_GetObjectItem(store_coll("sequence"), seq_id);
// The window is the sequence's length, whatever its presets run for (the editor pads every lane to it).
// Records saved before windows fall through to the lanes.
const cJSON *wb = cJSON_GetObjectItem(seq, "window_beats");
const cJSON *ws = cJSON_GetObjectItem(seq, "window_seconds");
if (cJSON_IsNumber(wb) && cJSON_IsNumber(ws) && wb->valuedouble > 0 && ws->valuedouble > 0) {
*beats = wb->valuedouble;
*secs = ws->valuedouble;
return;
}
const cJSON *opts = cJSON_GetObjectItem(seq, "lane_opts");
bool seq_timed = seq_oneshot(seq) || str_is(seq, "advance_mode", "time");
double b = 0, s = 0;
+11
View File
@@ -345,3 +345,14 @@ def test_preset_takes_over_from_sequence(c, zone, clock):
st = c.get("/sequences/status").json()
assert st["active"] is False, "a looping preset replaces the zone's looping sequence"
assert st["overlay"]["active"] is True, "the one-shot carries on, then comes back to the preset"
def test_window_is_kept(c, profile):
"""The window is the sequence's length: saved as it is, whatever the presets run for."""
sid = new_id(c.post("/sequences", json={"name": unique("pytest-seq"), "steps": [{"preset_id": "1", "group_ids": []}]}))
resp = c.put(f"/sequences/{sid}", json={"window_beats": 8, "window_seconds": 2.4})
assert resp.status_code == 200
rec = c.get(f"/sequences/{sid}").json()
assert rec["window_beats"] == 8
assert rec["window_seconds"] == 2.4
assert c.delete(f"/sequences/{sid}").status_code == 200
+91 -32
View File
@@ -20,6 +20,7 @@ const seqTl = {
sel: null, // {clip: id} or {track: uid}
ppb: 40, // pixels per beat (or second)
snap: 1,
snapAuto: true, // the Snap menu's Auto: follows the zoom
loopEnd: 0,
loopEndSet: false, // the user moved the end marker
brush: '', // the browser item double-click adds
@@ -28,6 +29,7 @@ const seqTl = {
pollTimer: null,
raf: 0,
drag: null,
hoverX: null, // the pointer's last x over the timeline: where the zoom buttons zoom around
};
/* ------------------------------------------------------------------ basics */
@@ -52,12 +54,12 @@ function tlBpm() {
}
function tlMin() {
return tlTimed() ? 0.1 : 0.25;
return tlTimed() ? 0.05 : 0.25;
}
function tlSnapOptions() {
return tlTimed()
? [['1', '1 s'], ['0.5', '½ s'], ['0.1', '0.1 s']]
? [['1', '1 s'], ['0.5', '½ s'], ['0.25', '¼ s'], ['0.1', '0.1 s'], ['0.05', '0.05 s']]
: [['4', 'Bar'], ['1', 'Beat'], ['0.5', '½ beat'], ['0.25', '¼ beat']];
}
@@ -84,15 +86,30 @@ function tlEnd() {
return seqTl.clips.reduce((m, c) => Math.max(m, c.start + c.len), 0);
}
/** The sequence's window: its length, set by the end marker. Clips never change it; the ones past it are cut on save. */
function tlLoopLen() {
const end = tlEnd();
if (!seqTl.loopEndSet) seqTl.loopEnd = Math.max(TL_BAR, Math.ceil(end / TL_BAR - TL_EPS) * TL_BAR);
return Math.max(seqTl.loopEnd, end);
return Math.max(tlMin(), seqTl.loopEnd);
}
/** The window the record has, in the editor's units; 0 for records saved before windows. */
function tlWindowOf(doc) {
if (!doc) return 0;
const v = tlTimed() ? doc.window_seconds : doc.window_beats;
return typeof v === 'number' && v > 0 ? tlR(v) : 0;
}
/** The window in both units, as saved: the player and older clients read whichever they use. */
function tlWindowFields() {
const w = tlLoopLen();
const beatS = 60 / tlBpm();
return tlTimed()
? { window_beats: tlR(w / beatS), window_seconds: tlR(w) }
: { window_beats: tlR(w), window_seconds: tlR(w * beatS) };
}
/** True when [start, start+len) is free on the track (ignoring one clip, the one being moved). */
function tlFits(uid, start, len, ignoreId) {
if (start < -TL_EPS || len < tlMin() - TL_EPS) return false;
if (start < -TL_EPS || len < tlMin() - TL_EPS || start + len > tlLoopLen() + TL_EPS) return false;
return !seqTl.clips.some(
(c) => c.uid === uid && c.id !== ignoreId && start < c.start + c.len - TL_EPS && c.start < start + len - TL_EPS,
);
@@ -132,6 +149,8 @@ function tlFill(info) {
/** How long a sequence runs once, in the editor's current units. */
function tlSeqLen(doc) {
if (!doc) return TL_BAR;
const win = tlWindowOf(doc);
if (win) return win;
const timed = tlTimed();
const beatS = 60 / tlBpm();
const lanes = normalizeSequenceLanes(doc);
@@ -272,13 +291,13 @@ function tlCommit(r) {
function tlToLanes() {
const timed = tlTimed();
const beatS = 60 / tlBpm();
const total = tlLoop() ? tlLoopLen() : 0;
const total = tlLoopLen(); // every lane runs the whole window, padded with rests
const lanes = [];
const lane_opts = [];
const lanes_group_ids = [];
const map = [];
const len = (v) =>
timed ? { seconds: tlR(Math.max(0.1, v)), beats: tlR(Math.max(0.25, v / beatS)) } : { beats: tlR(Math.max(0.25, v)), seconds: tlR(Math.max(0.1, v * beatS)) };
timed ? { seconds: tlR(Math.max(0.05, v)), beats: tlR(Math.max(0.25, v / beatS)) } : { beats: tlR(Math.max(0.25, v)), seconds: tlR(Math.max(0.05, v * beatS)) };
seqEd.targets.forEach((t, ti) => {
const cs = tlClipsOn(t.uid);
if (!cs.length) return;
@@ -286,14 +305,16 @@ function tlToLanes() {
const starts = [];
let at = 0;
cs.forEach((c) => {
const cl = tlR(Math.min(c.len, total - c.start)); // cut at the window's end
if (cl <= TL_EPS) return;
if (c.start > at + TL_EPS) {
steps.push({ preset_id: '', rest: true, ...len(c.start - at) });
starts.push(at);
}
const st = c.play.startsWith('a:') ? { animation_id: c.play.slice(2) } : { preset_id: c.play.slice(2) };
steps.push({ ...st, ...len(c.len) });
steps.push({ ...st, ...len(cl) });
starts.push(c.start);
at = c.start + c.len;
at = c.start + cl;
});
if (total > at + TL_EPS) {
steps.push({ preset_id: '', rest: true, ...len(total - at) });
@@ -334,6 +355,8 @@ function seqTlOnOpen(doc) {
const lanes = normalizeSequenceLanes(doc || {});
const r = tlFlatten(doc || {}, lanes, Array.isArray(doc && doc.lane_opts) ? doc.lane_opts : []);
tlCommit(r);
const win = tlWindowOf(doc);
if (win) seqTl.loopEnd = win; // the saved window, not the clips' end
// Older sequences can use lane options the timeline doesn't have; it shows their first pass
tlNotice(
r.lossy.length
@@ -359,15 +382,26 @@ function tlHeadWidth() {
return h ? h.offsetWidth : 0;
}
/** Auto snap: the finest step the ruler shows at this zoom (never coarser than 1 beat or second). */
function tlAutoSnap() {
const steps = tlTimed() ? [0.05, 0.1, 0.25, 0.5, 1] : [0.25, 0.5, 1];
return steps.find((s) => s * seqTl.ppb >= 36) || 1;
}
function tlBuildSnap() {
const sel = tlEl('tl-snap');
if (!sel) return;
const opts = tlSnapOptions();
const opts = [['auto', 'Auto (zoom)'], ...tlSnapOptions()];
const was = String(seqTl.snap);
sel.innerHTML = '';
opts.forEach(([v, t]) => sel.appendChild(new Option(t, v)));
sel.value = opts.some(([v]) => v === was) ? was : tlTimed() ? '0.5' : '1';
seqTl.snap = parseFloat(sel.value);
if (seqTl.snapAuto) {
sel.value = 'auto';
seqTl.snap = tlAutoSnap();
} else {
sel.value = opts.some(([v]) => v === was) ? was : tlTimed() ? '0.5' : '1';
seqTl.snap = parseFloat(sel.value);
}
}
/** Select a clip or track without rebuilding the tracks (so double-clicks still land). */
@@ -381,11 +415,13 @@ function tlSelect(sel) {
function tlRender() {
const canvas = tlEl('tl-canvas');
if (!canvas || !seqTl.on) return;
if (seqTl.snapAuto) seqTl.snap = tlAutoSnap(); // Auto follows the zoom, so drags land on the ticks shown
const ppb = seqTl.ppb;
const timed = tlTimed();
const loop = tlLoop();
const loopLen = tlLoopLen();
const units = Math.max(4 * TL_BAR, Math.ceil((Math.max(tlEnd(), loop ? loopLen : 0) + 2 * TL_BAR) / TL_BAR) * TL_BAR);
// The timeline is exactly the window long: nothing past its end is shown or can be placed
const units = loopLen;
const W = units * ppb;
canvas.style.setProperty('--ppb', String(ppb));
canvas.innerHTML = '';
@@ -408,10 +444,19 @@ function tlRender() {
const ruler = document.createElement('div');
ruler.className = 'tl-ruler';
ruler.style.width = `${W}px`;
const every = timed ? (ppb >= 30 ? 1 : ppb >= 12 ? 5 : ppb >= 5 ? 10 : 30) : 1;
// Zoomed out: whole seconds, then every 5/10/30. Zoomed in: the finest step that keeps ~36px between ticks,
// down to a tenth of a second or a quarter of a beat.
let every = timed ? (ppb >= 30 ? 1 : ppb >= 12 ? 5 : ppb >= 5 ? 10 : 30) : 1;
if (ppb >= 30) {
const fine = timed ? [0.05, 0.1, 0.25, 0.5, 1] : [0.25, 0.5, 1];
every = fine.find((s) => s * ppb >= 36) || 1;
}
const barsPerLabel = ppb * TL_BAR >= 28 ? 1 : ppb * TL_BAR >= 14 ? 2 : 4; // zoomed far out
for (let u = 0; u <= units; u += every) {
const bar = !timed && u % (TL_BAR * barsPerLabel) === 0;
const FRAC = { 0.25: '¼', 0.5: '½', 0.75: '¾' };
const n = Math.floor(units / every + TL_EPS);
for (let i = 0; i <= n; i++) {
const u = tlR(i * every);
const bar = !timed && Number.isInteger(u) && u % (TL_BAR * barsPerLabel) === 0;
const major = timed || bar;
if (!major && ppb < 18) continue;
const tick = document.createElement('span');
@@ -419,7 +464,11 @@ function tlRender() {
tick.style.left = `${u * ppb}px`;
if (timed) tick.textContent = `${u}s`;
else if (bar) tick.textContent = String(u / TL_BAR + 1);
else if (ppb >= 44) tick.textContent = `${Math.floor(u / TL_BAR) + 1}.${(u % TL_BAR) + 1}`;
else if (ppb >= 44) {
const beat = Math.floor(u % TL_BAR + TL_EPS);
const frac = tlR(u - Math.floor(u / TL_BAR + TL_EPS) * TL_BAR - beat);
tick.textContent = `${Math.floor(u / TL_BAR + TL_EPS) + 1}.${beat + 1}${FRAC[frac] || ''}`;
}
ruler.appendChild(tick);
}
if (loop) {
@@ -482,7 +531,9 @@ function tlRender() {
if (e.target !== lane) return;
tlAddAt(t.uid, tlQ(tlLaneX(lane, e.clientX) / seqTl.ppb, true), seqTl.brush);
});
tlClipsOn(t.uid).forEach((c) => lane.appendChild(tlClipEl(c)));
tlClipsOn(t.uid).forEach((c) => {
if (c.start < loopLen - TL_EPS) lane.appendChild(tlClipEl(c));
});
row.appendChild(head);
row.appendChild(lane);
canvas.appendChild(row);
@@ -519,7 +570,8 @@ function tlClipEl(c) {
el.className = `tl-clip${info.anim ? ' anim' : ''}${seqTl.sel && seqTl.sel.clip === c.id ? ' sel' : ''}`;
el.dataset.id = String(c.id);
el.style.left = `${c.start * seqTl.ppb}px`;
el.style.width = `${c.len * seqTl.ppb}px`;
// A clip reaching past the window is drawn up to its end
el.style.width = `${Math.min(c.len, tlLoopLen() - c.start) * seqTl.ppb}px`;
const fill = tlFill(info);
if (fill) el.style.setProperty('--clip-fill', fill);
el.title = `${info.name} — ${c.len}${tlTimed() ? ' s' : ' beat(s)'}`;
@@ -898,7 +950,7 @@ function tlSetUnits(timed) {
if (!timed && !tlLoop()) return;
const beatS = 60 / tlBpm();
const k = timed ? beatS : 1 / beatS;
const min = timed ? 0.1 : 0.25;
const min = timed ? 0.05 : 0.25;
const q = (x) => tlR(Math.round((x * k) / min) * min);
seqTl.clips.forEach((c) => {
c.start = q(c.start);
@@ -921,7 +973,7 @@ function tlSetUnits(timed) {
}
const TL_PPB_MIN = 6;
const TL_PPB_MAX = 240;
const TL_PPB_MAX = 800; // 0.05 s comes out at 40px, the finest tick
/**
* Zoom by `f`, keeping the time under `clientX` where it is (the middle of the view without one).
@@ -947,21 +999,21 @@ function tlZoom(f, clientX) {
}
/**
* Wheel over the tracks zooms around the pointer (trackpad pinch too: it arrives as ctrl+wheel).
* The wheel over the track names, Shift+wheel and sideways trackpad swipes still scroll.
* Ctrl+wheel (trackpad pinch arrives as ctrl+wheel) zooms around the pointer. A plain wheel scrolls as
* usual: the timeline, then the page. Shift+wheel and sideways swipes scroll sideways.
* Wheel events come in bursts, so they add up and apply once per frame.
*/
function tlWheel(e) {
if (seqTl.drag) return;
const sc = tlEl('tl-scroll');
if (!sc) return;
const overHeads = e.target.closest && e.target.closest('.tl-head') && !e.ctrlKey;
if (overHeads || (e.shiftKey && !e.ctrlKey) || (Math.abs(e.deltaX) > Math.abs(e.deltaY) && !e.ctrlKey)) return;
if (!e.ctrlKey && !e.metaKey) return;
if (e.target.closest && e.target.closest('.tl-head')) return;
e.preventDefault();
const dy = e.deltaY * (e.deltaMode === 1 ? 16 : e.deltaMode === 2 ? 400 : 1);
const w = seqTl.wheel || (seqTl.wheel = { f: 1, x: 0, raf: 0 });
// About 15% per mouse wheel notch; big deltas (fast wheels, some mice) are capped per event
w.f *= Math.min(1.25, Math.max(0.8, Math.exp(-dy * (e.ctrlKey ? 0.01 : 0.0015))));
w.f *= Math.min(1.25, Math.max(0.8, Math.exp(-dy * 0.01)));
w.x = e.clientX;
if (!w.raf) {
w.raf = requestAnimationFrame(() => {
@@ -1052,7 +1104,7 @@ function tlDragMove(e) {
const ppb = seqTl.ppb;
const dx = dxp / ppb;
if (d.kind === 'loop') {
seqTl.loopEnd = Math.max(tlR(tlEnd()), tlMin(), tlQ(d.base + dx));
seqTl.loopEnd = Math.max(tlMin(), tlQ(d.base + dx));
seqTl.loopEndSet = true;
const brace = document.querySelector('#tl-canvas .tl-loop');
const line = document.querySelector('#tl-canvas .tl-endline');
@@ -1244,12 +1296,19 @@ document.addEventListener('DOMContentLoaded', () => {
tlRender();
});
on('tl-snap', 'change', (e) => {
seqTl.snap = parseFloat(e.target.value) || 1;
seqTl.snapAuto = e.target.value === 'auto';
seqTl.snap = seqTl.snapAuto ? tlAutoSnap() : parseFloat(e.target.value) || 1;
});
on('tl-zoom-in', 'click', () => tlZoom(1.4));
// The buttons zoom around where the pointer last was over the timeline (the middle until it has been)
on('tl-zoom-in', 'click', () => tlZoom(1.4, seqTl.hoverX));
const tlScroll = tlEl('tl-scroll');
if (tlScroll) tlScroll.addEventListener('wheel', tlWheel, { passive: false });
on('tl-zoom-out', 'click', () => tlZoom(1 / 1.4));
if (tlScroll) {
tlScroll.addEventListener('wheel', tlWheel, { passive: false });
tlScroll.addEventListener('pointermove', (e) => {
seqTl.hoverX = e.clientX;
});
}
on('tl-zoom-out', 'click', () => tlZoom(1 / 1.4, seqTl.hoverX));
document.querySelectorAll('#tl-units button').forEach((b) => b.addEventListener('click', () => tlSetUnits(b.dataset.v === 'time')));
on('tl-play', 'click', async () => {
const ok = await saveSequenceEditor();
+2 -1
View File
@@ -190,7 +190,7 @@ function normalizeSequenceLanes(doc) {
length: s.length === 'animation' ? 'animation' : '',
targets: Array.isArray(s.targets) ? s.targets.map((x) => parseInt(String(x), 10)).filter((x) => x >= 0) : [],
beats: Math.max(0.25, parseFloat(String(s.beats != null ? s.beats : 1)) || 1),
seconds: Math.max(0.1, parseFloat(String(s.seconds != null ? s.seconds : 3)) || 3),
seconds: Math.max(0.05, parseFloat(String(s.seconds != null ? s.seconds : 3)) || 3),
group_ids: Array.isArray(s.group_ids)
? s.group_ids.map((x) => String(x).trim()).filter(Boolean)
: [],
@@ -890,6 +890,7 @@ async function saveSequenceEditor() {
// A one-shot (loop off) is always timed in seconds
advance_mode: (modeSel && modeSel.value === 'time') || (loopCb && !loopCb.checked) ? 'time' : 'beats',
loop: loopCb ? !!loopCb.checked : true,
...tlWindowFields(),
steps: nonEmpty.length === 1 ? nonEmpty[0] : [],
};