- led-simulator: the rig runs the C++ led-driver as WebAssembly (sim-driver/), one single-threaded worker per bar, no cross-origin isolation needed. Rooms (one JSON per room) with an on-page editor, and a pattern gallery. The Python server, Pyodide boot and ring buffer are removed. - sim-controller sim_rig.c: serves /sim/ from an embedded pack, the page's WebSocket and the rooms/flash API. The desktop build embeds it too. - bridge.c: a "browser" bridge kind that carries ESP-NOW frames to the page; devices announced through it are marked sim. - UI: Simulator in the Menu, split view with resize and pop-out, swipe between controller and rig on phones; SIM/REAL badges in Devices. - Fades: preset pushes and Wi-Fi driver bodies always carry fade and beat_time, so "off" no longer inherits an earlier fade. - Also the sequences-v2 work in progress: desktop port, bridge firmware, serial bridge, Wi-Fi drivers, sequence timeline, audio and API changes. - led-driver: ESP-NOW link, beat sync, control messages, sim hooks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 line
20 KiB
JSON
1 line
20 KiB
JSON
{"nodes": [{"id": "$graphify-root$_led_driver_main_effects_util_cpp", "label": "effects_util.cpp", "file_type": "code", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L1"}, {"id": "$graphify-root$_led_driver_main_effects_util_clampi", "label": "clampi()", "file_type": "code", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L14", "_callable": true}, {"id": "$graphify-root$_led_driver_main_effects_util_fdiv", "label": "fdiv()", "file_type": "code", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L19", "_callable": true}, {"id": "$graphify-root$_led_driver_main_effects_util_pmod", "label": "pmod()", "file_type": "code", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L28", "_callable": true}, {"id": "$graphify-root$_led_driver_main_effects_util_nz", "label": "nz()", "file_type": "code", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L34", "_callable": true}, {"id": "$graphify-root$_led_driver_main_effects_util_mk", "label": "mk()", "file_type": "code", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L39", "_callable": true}, {"id": "rgb", "label": "rgb", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/led-driver/main/effects_util.cpp"}, {"id": "$graphify-root$_led_driver_main_effects_util_ab", "label": "ab()", "file_type": "code", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L45", "_callable": true}, {"id": "$graphify-root$_led_driver_main_effects_util_mix", "label": "mix()", "file_type": "code", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L51", "_callable": true}, {"id": "$graphify-root$_led_driver_main_effects_util_sgn", "label": "sgn()", "file_type": "code", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L61", "_callable": true}, {"id": "fx_t", "label": "fx_t", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/led-driver/main/effects_util.cpp"}, {"id": "$graphify-root$_led_driver_main_effects_util_led_at", "label": "led_at()", "file_type": "code", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L66", "_callable": true}, {"id": "$graphify-root$_led_driver_main_effects_util_put", "label": "put()", "file_type": "code", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L71", "_callable": true}, {"id": "$graphify-root$_led_driver_main_effects_util_putl", "label": "putl()", "file_type": "code", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L78", "_callable": true}, {"id": "$graphify-root$_led_driver_main_effects_util_fill", "label": "fill()", "file_type": "code", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L83", "_callable": true}, {"id": "$graphify-root$_led_driver_main_effects_util_due", "label": "due()", "file_type": "code", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L90", "_callable": true}, {"id": "$graphify-root$_led_driver_main_effects_util_dur", "label": "dur()", "file_type": "code", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L100", "_callable": true}, {"id": "$graphify-root$_led_driver_main_effects_util_get_colours", "label": "get_colours()", "file_type": "code", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L108", "_callable": true}, {"id": "$graphify-root$_led_driver_main_effects_util_rnd", "label": "rnd()", "file_type": "code", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L123", "_callable": true}, {"id": "$graphify-root$_led_driver_main_effects_util_grad_at", "label": "grad_at()", "file_type": "code", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L131", "_callable": true}, {"id": "$graphify-root$_led_driver_main_effects_util_rig_entry", "label": "rig_entry()", "file_type": "code", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L150", "_callable": true}, {"id": "$graphify-root$_led_driver_main_effects_util_wheel", "label": "wheel()", "file_type": "code", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L166", "_callable": true}], "edges": [{"source": "$graphify-root$_led_driver_main_effects_util_cpp", "target": "cmath", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L7", "weight": 1.0}, {"source": "$graphify-root$_led_driver_main_effects_util_cpp", "target": "cstring", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L8", "weight": 1.0}, {"source": "$graphify-root$_led_driver_main_effects_util_cpp", "target": "esp_random", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L10", "weight": 1.0, "metadata": {"raw_include": "esp_random.h", "include_kind": "quoted"}}, {"source": "$graphify-root$_led_driver_main_effects_util_cpp", "target": "$graphify-root$_led_driver_main_beat_sync_h", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L11", "weight": 1.0, "target_file": "$graphify-root$/led-driver/main/beat_sync.h"}, {"source": "$graphify-root$_led_driver_main_effects_util_cpp", "target": "$graphify-root$_led_driver_main_effects_h", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L12", "weight": 1.0, "target_file": "$graphify-root$/led-driver/main/effects.h"}, {"source": "$graphify-root$_led_driver_main_effects_util_cpp", "target": "$graphify-root$_led_driver_main_effects_util_clampi", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L14", "weight": 1.0}, {"source": "$graphify-root$_led_driver_main_effects_util_cpp", "target": "$graphify-root$_led_driver_main_effects_util_fdiv", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L19", "weight": 1.0}, {"source": "$graphify-root$_led_driver_main_effects_util_cpp", "target": "$graphify-root$_led_driver_main_effects_util_pmod", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L28", "weight": 1.0}, {"source": "$graphify-root$_led_driver_main_effects_util_cpp", "target": "$graphify-root$_led_driver_main_effects_util_nz", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L34", "weight": 1.0}, {"source": "$graphify-root$_led_driver_main_effects_util_cpp", "target": "$graphify-root$_led_driver_main_effects_util_mk", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L39", "weight": 1.0}, {"source": "$graphify-root$_led_driver_main_effects_util_mk", "target": "rgb", "relation": "references", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L39", "weight": 1.0, "context": "return_type"}, {"source": "$graphify-root$_led_driver_main_effects_util_cpp", "target": "$graphify-root$_led_driver_main_effects_util_ab", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L45", "weight": 1.0}, {"source": "$graphify-root$_led_driver_main_effects_util_ab", "target": "rgb", "relation": "references", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L45", "weight": 1.0, "context": "return_type"}, {"source": "$graphify-root$_led_driver_main_effects_util_ab", "target": "rgb", "relation": "references", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L45", "weight": 1.0, "context": "parameter_type"}, {"source": "$graphify-root$_led_driver_main_effects_util_cpp", "target": "$graphify-root$_led_driver_main_effects_util_mix", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L51", "weight": 1.0}, {"source": "$graphify-root$_led_driver_main_effects_util_mix", "target": "rgb", "relation": "references", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L51", "weight": 1.0, "context": "return_type"}, {"source": "$graphify-root$_led_driver_main_effects_util_mix", "target": "rgb", "relation": "references", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L51", "weight": 1.0, "context": "parameter_type"}, {"source": "$graphify-root$_led_driver_main_effects_util_cpp", "target": "$graphify-root$_led_driver_main_effects_util_sgn", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L61", "weight": 1.0}, {"source": "$graphify-root$_led_driver_main_effects_util_sgn", "target": "fx_t", "relation": "references", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L61", "weight": 1.0, "context": "parameter_type"}, {"source": "$graphify-root$_led_driver_main_effects_util_cpp", "target": "$graphify-root$_led_driver_main_effects_util_led_at", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L66", "weight": 1.0}, {"source": "$graphify-root$_led_driver_main_effects_util_led_at", "target": "fx_t", "relation": "references", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L66", "weight": 1.0, "context": "parameter_type"}, {"source": "$graphify-root$_led_driver_main_effects_util_cpp", "target": "$graphify-root$_led_driver_main_effects_util_put", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L71", "weight": 1.0}, {"source": "$graphify-root$_led_driver_main_effects_util_put", "target": "fx_t", "relation": "references", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L71", "weight": 1.0, "context": "parameter_type"}, {"source": "$graphify-root$_led_driver_main_effects_util_put", "target": "rgb", "relation": "references", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L71", "weight": 1.0, "context": "parameter_type"}, {"source": "$graphify-root$_led_driver_main_effects_util_cpp", "target": "$graphify-root$_led_driver_main_effects_util_putl", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L78", "weight": 1.0}, {"source": "$graphify-root$_led_driver_main_effects_util_putl", "target": "fx_t", "relation": "references", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L78", "weight": 1.0, "context": "parameter_type"}, {"source": "$graphify-root$_led_driver_main_effects_util_putl", "target": "rgb", "relation": "references", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L78", "weight": 1.0, "context": "parameter_type"}, {"source": "$graphify-root$_led_driver_main_effects_util_cpp", "target": "$graphify-root$_led_driver_main_effects_util_fill", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L83", "weight": 1.0}, {"source": "$graphify-root$_led_driver_main_effects_util_fill", "target": "fx_t", "relation": "references", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L83", "weight": 1.0, "context": "parameter_type"}, {"source": "$graphify-root$_led_driver_main_effects_util_fill", "target": "rgb", "relation": "references", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L83", "weight": 1.0, "context": "parameter_type"}, {"source": "$graphify-root$_led_driver_main_effects_util_cpp", "target": "$graphify-root$_led_driver_main_effects_util_due", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L90", "weight": 1.0}, {"source": "$graphify-root$_led_driver_main_effects_util_cpp", "target": "$graphify-root$_led_driver_main_effects_util_dur", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L100", "weight": 1.0}, {"source": "$graphify-root$_led_driver_main_effects_util_dur", "target": "fx_t", "relation": "references", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L100", "weight": 1.0, "context": "parameter_type"}, {"source": "$graphify-root$_led_driver_main_effects_util_cpp", "target": "$graphify-root$_led_driver_main_effects_util_get_colours", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L108", "weight": 1.0}, {"source": "$graphify-root$_led_driver_main_effects_util_get_colours", "target": "fx_t", "relation": "references", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L108", "weight": 1.0, "context": "parameter_type"}, {"source": "$graphify-root$_led_driver_main_effects_util_get_colours", "target": "rgb", "relation": "references", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L108", "weight": 1.0, "context": "parameter_type"}, {"source": "$graphify-root$_led_driver_main_effects_util_cpp", "target": "$graphify-root$_led_driver_main_effects_util_rnd", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L123", "weight": 1.0}, {"source": "$graphify-root$_led_driver_main_effects_util_cpp", "target": "$graphify-root$_led_driver_main_effects_util_grad_at", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L131", "weight": 1.0}, {"source": "$graphify-root$_led_driver_main_effects_util_grad_at", "target": "rgb", "relation": "references", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L131", "weight": 1.0, "context": "return_type"}, {"source": "$graphify-root$_led_driver_main_effects_util_grad_at", "target": "rgb", "relation": "references", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L131", "weight": 1.0, "context": "parameter_type"}, {"source": "$graphify-root$_led_driver_main_effects_util_cpp", "target": "$graphify-root$_led_driver_main_effects_util_rig_entry", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L150", "weight": 1.0}, {"source": "$graphify-root$_led_driver_main_effects_util_rig_entry", "target": "rgb", "relation": "references", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L150", "weight": 1.0, "context": "return_type"}, {"source": "$graphify-root$_led_driver_main_effects_util_rig_entry", "target": "fx_t", "relation": "references", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L150", "weight": 1.0, "context": "parameter_type"}, {"source": "$graphify-root$_led_driver_main_effects_util_rig_entry", "target": "rgb", "relation": "references", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L150", "weight": 1.0, "context": "parameter_type"}, {"source": "$graphify-root$_led_driver_main_effects_util_cpp", "target": "$graphify-root$_led_driver_main_effects_util_wheel", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L166", "weight": 1.0}, {"source": "$graphify-root$_led_driver_main_effects_util_wheel", "target": "rgb", "relation": "references", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L166", "weight": 1.0, "context": "return_type"}, {"source": "$graphify-root$_led_driver_main_effects_util_mk", "target": "$graphify-root$_led_driver_main_effects_util_clampi", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L41", "weight": 1.0}, {"source": "$graphify-root$_led_driver_main_effects_util_ab", "target": "$graphify-root$_led_driver_main_effects_util_fdiv", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L47", "weight": 1.0}, {"source": "$graphify-root$_led_driver_main_effects_util_mix", "target": "$graphify-root$_led_driver_main_effects_util_fdiv", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L54", "weight": 1.0}, {"source": "$graphify-root$_led_driver_main_effects_util_putl", "target": "$graphify-root$_led_driver_main_effects_util_put", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L80", "weight": 1.0}, {"source": "$graphify-root$_led_driver_main_effects_util_putl", "target": "$graphify-root$_led_driver_main_effects_util_led_at", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L80", "weight": 1.0}, {"source": "$graphify-root$_led_driver_main_effects_util_get_colours", "target": "$graphify-root$_led_driver_main_effects_util_mk", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L113", "weight": 1.0}, {"source": "$graphify-root$_led_driver_main_effects_util_rig_entry", "target": "$graphify-root$_led_driver_main_effects_util_ab", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L153", "weight": 1.0}, {"source": "$graphify-root$_led_driver_main_effects_util_rig_entry", "target": "$graphify-root$_led_driver_main_effects_util_mk", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L153", "weight": 1.0}, {"source": "$graphify-root$_led_driver_main_effects_util_rig_entry", "target": "$graphify-root$_led_driver_main_effects_util_grad_at", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L154", "weight": 1.0}, {"source": "$graphify-root$_led_driver_main_effects_util_rig_entry", "target": "$graphify-root$_led_driver_main_effects_util_fdiv", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-driver/main/effects_util.cpp", "source_location": "L155", "weight": 1.0}], "raw_calls": [{"caller_nid": "$graphify-root$_led_driver_main_effects_util_dur", "callee": "beat_period_ms", "is_member_call": false, "source_file": "led-driver/main/effects_util.cpp", "source_location": "L105", "receiver": null, "lang": "cpp"}, {"caller_nid": "$graphify-root$_led_driver_main_effects_util_rnd", "callee": "esp_random", "is_member_call": false, "source_file": "led-driver/main/effects_util.cpp", "source_location": "L128", "receiver": null, "lang": "cpp"}], "_cached_target_files": ["$graphify-root$/led-driver/main/beat_sync.h", "$graphify-root$/led-driver/main/effects.h"]} |