# torugo/open-gt1-web-editor architecture

> Architecture diagram of the GitHub repository torugo/open-gt1-web-editor, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/torugo/open-gt1-web-editor
- Repository: https://github.com/torugo/open-gt1-web-editor

## Overview

Open GT-1 Web Editor is a browser-based GT-1 patch editor. The principal workflow is to load device definitions from the user’s BOSS TONE STUDIO files, connect over Web MIDI, edit patches, and exchange them with the unit. The graph also preserves preset import/export, live hardware updates, and simulation. Relationships reflect the README and shown imports/calls; several app internals are only partially excerpted, so uncertain wiring is omitted.

Main entry points: [`app/js/app.js`](https://github.com/torugo/open-gt1-web-editor/blob/main/app/js/app.js) (Editor interface), [`app/js/midi.js`](https://github.com/torugo/open-gt1-web-editor/blob/main/app/js/midi.js) (Web MIDI transport), [`app/js/blocks.js`](https://github.com/torugo/open-gt1-web-editor/blob/main/app/js/blocks.js) (Effect controls), [`app/js/devices/gt1.js`](https://github.com/torugo/open-gt1-web-editor/blob/main/app/js/devices/gt1.js) (GT-1 profile)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_editor["Editor"]
  node_app["Editor interface<br/>[app.js]"]
  node_blocks["Effect controls<br/>[blocks.js]"]
  node_patch["Patch model<br/>[model.js]"]
end

subgraph group_device["Device Support"]
  node_profile["Device selection<br/>[device.js]"]
  node_gt1["GT-1 profile<br/>[gt1.js]"]
  node_hints["Effect hints<br/>[gt1-hints.js]"]
  node_demo_data["Demo definitions<br/>[gt1-demo.js]"]
end

subgraph group_data["Definitions and Storage"]
  node_extract["File extraction<br/>[extract.js]"]
  node_store[("Browser key-value store<br/>[store.js]")]
end

subgraph group_runtime["Hardware and Simulation"]
  node_midi["Web MIDI transport<br/>[midi.js]"]
  node_sim["Simulated unit<br/>[demo.js]"]
end

node_musician(("Editor user"))
node_roland_files["BOSS editor files"]
node_gt1_unit["BOSS GT-1"]

node_musician -->|"edits patches"| node_app
node_app -->|"reads definitions"| node_extract
node_roland_files -->|"supplies tables"| node_extract
node_app -->|"connects over MIDI"| node_midi
node_midi -->|"exchanges SysEx"| node_gt1_unit
node_gt1_unit -->|"sends changes"| node_midi
node_app -->|"edits and exchanges"| node_patch
node_app -->|"renders controls"| node_blocks
node_blocks -->|"reads values"| node_patch
node_blocks -->|"reads block metadata"| node_profile
node_profile -->|"selects profile"| node_gt1
node_gt1 -->|"uses hints"| node_hints
node_gt1 -->|"uses definitions"| node_demo_data
node_app -->|"offers demo mode"| node_sim
node_sim -->|"simulates MIDI replies"| node_midi
node_app --> node_store
node_app -->|"imports and exports TSL"| node_patch

click node_app "https://github.com/torugo/open-gt1-web-editor/blob/main/app/js/app.js"
click node_blocks "https://github.com/torugo/open-gt1-web-editor/blob/main/app/js/blocks.js"
click node_patch "https://github.com/torugo/open-gt1-web-editor/blob/main/app/js/model.js"
click node_extract "https://github.com/torugo/open-gt1-web-editor/blob/main/app/js/extract.js"
click node_profile "https://github.com/torugo/open-gt1-web-editor/blob/main/app/js/device.js"
click node_gt1 "https://github.com/torugo/open-gt1-web-editor/blob/main/app/js/devices/gt1.js"
click node_hints "https://github.com/torugo/open-gt1-web-editor/blob/main/app/js/devices/gt1-hints.js"
click node_demo_data "https://github.com/torugo/open-gt1-web-editor/blob/main/app/js/devices/gt1-demo.js"
click node_midi "https://github.com/torugo/open-gt1-web-editor/blob/main/app/js/midi.js"
click node_sim "https://github.com/torugo/open-gt1-web-editor/blob/main/app/js/demo.js"
click node_store "https://github.com/torugo/open-gt1-web-editor/blob/main/app/js/store.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_blocks,node_patch,node_musician toneBlue
class node_profile,node_gt1,node_hints,node_demo_data toneAmber
class node_extract,node_store toneMint
class node_midi,node_sim toneRose
class node_roland_files,node_gt1_unit toneIndigo
```

## Components

### Editor

- [Editor interface](https://github.com/torugo/open-gt1-web-editor/blob/main/app/js/app.js): `app/js/app.js`
- [Effect controls](https://github.com/torugo/open-gt1-web-editor/blob/main/app/js/blocks.js): `app/js/blocks.js`
- [Patch model](https://github.com/torugo/open-gt1-web-editor/blob/main/app/js/model.js): `app/js/model.js`

### Device Support

- [Device selection](https://github.com/torugo/open-gt1-web-editor/blob/main/app/js/device.js): `app/js/device.js`
- [GT-1 profile](https://github.com/torugo/open-gt1-web-editor/blob/main/app/js/devices/gt1.js): `app/js/devices/gt1.js`
- [Effect hints](https://github.com/torugo/open-gt1-web-editor/blob/main/app/js/devices/gt1-hints.js): `app/js/devices/gt1-hints.js`
- [Demo definitions](https://github.com/torugo/open-gt1-web-editor/blob/main/app/js/devices/gt1-demo.js): `app/js/devices/gt1-demo.js`

### Definitions and Storage

- [File extraction](https://github.com/torugo/open-gt1-web-editor/blob/main/app/js/extract.js): `app/js/extract.js`
- [Browser key-value store](https://github.com/torugo/open-gt1-web-editor/blob/main/app/js/store.js): `app/js/store.js`

### Hardware and Simulation

- [Web MIDI transport](https://github.com/torugo/open-gt1-web-editor/blob/main/app/js/midi.js): `app/js/midi.js`
- [Simulated unit](https://github.com/torugo/open-gt1-web-editor/blob/main/app/js/demo.js): `app/js/demo.js`

### Other components

- **Editor user**
- **BOSS editor files**
- **BOSS GT-1**

## Connections

- Editor user → Editor interface: edits patches (evidence: `README.md`)
- Editor interface → File extraction: reads definitions (evidence: `app/js/app.js`)
- BOSS editor files → File extraction: supplies tables (evidence: `README.md`)
- Editor interface → Web MIDI transport: connects over MIDI (evidence: `README.md`)
- Web MIDI transport → BOSS GT-1: exchanges SysEx (evidence: `README.md`)
- BOSS GT-1 → Web MIDI transport: sends changes (evidence: `README.md`)
- Editor interface → Patch model: edits and exchanges (evidence: `README.md`)
- Editor interface → Effect controls: renders controls (evidence: `app/js/app.js`)
- Effect controls → Patch model: reads values (evidence: `app/js/blocks.js`)
- Effect controls → Device selection: reads block metadata (evidence: `app/js/blocks.js`)
- Device selection → GT-1 profile: selects profile (evidence: `app/js/device.js`)
- GT-1 profile → Effect hints: uses hints (evidence: `app/js/devices/gt1.js`)
- GT-1 profile → Demo definitions: uses definitions (evidence: `app/js/devices/gt1.js`)
- Editor interface → Simulated unit: offers demo mode (evidence: `README.md`)
- Simulated unit → Web MIDI transport: simulates MIDI replies (evidence: `app/js/demo.js`)
- Editor interface → Browser key-value store (evidence: `app/js/app.js`)
- Editor interface → Patch model: imports and exports TSL (evidence: `README.md`)
