A music programming language for musicians. :notes:
This report summarizes scanner evidence for alda-lang/alda, a Go project with 5,959 GitHub stars. SynthScan examined 40,641 lines of code across 190 source files, recording 64 pattern matches distributed across 3 syntactic categories. The legacy adjusted pattern signal is 1.8 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 64 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 0 finding(s).
Which changes need focused human review? 64 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 64 distinct pattern matches across 3 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | client/main.go | 1 | package main | COMMENT |
| LOW | client/cmd/update.go | 201 | // | COMMENT |
| LOW | client/cmd/update.go | 261 | COMMENT | |
| LOW | client/cmd/play.go | 141 | // Everything in this command is done via parsed CLI options, never | COMMENT |
| LOW | client/cmd/doctor.go | 421 | // | COMMENT |
| LOW | client/cmd/parse.go | 121 | } | COMMENT |
| LOW | client/cmd/root.go | 61 | // Unfortunately, Cobra doesn't give you an easy way to consistently do that. | COMMENT |
| LOW | client/cmd/root.go | 161 | // to override the default UsageFunc with a function that might return an | COMMENT |
| LOW | client/cmd/root.go | 181 | // sure that we print the notice about telemetry first, before the help text | COMMENT |
| LOW | client/cmd/root.go | 301 | COMMENT | |
| LOW | client/cmd/root.go | 321 | // ones without also spawning some implicit ones here. | COMMENT |
| LOW | client/cmd/root.go | 361 | // application will begin with the string "unknown command" and do the special | COMMENT |
| LOW | client/transmitter/osc.go | 261 | // Append tempo messages to the score, based on the tempo changes in the | COMMENT |
| LOW | client/transmitter/osc.go | 281 | // We keep track of the known (audible) length of the score as we iterate | COMMENT |
| LOW | client/transmitter/osc.go | 321 | // back by that amount so that playback starts as if those events were at | COMMENT |
| LOW | client/transmitter/osc.go | 341 | // Guard against negative offsets. These shouldn't occur in practice | COMMENT |
| LOW | client/transmitter/transmitter.go | 21 | // for that part will have the indicated offset subtracted from its offset. | COMMENT |
| LOW | client/interop/musicxml/importer/handlers.go | 21 | // | COMMENT |
| LOW | client/interop/musicxml/importer/importer_test.go | 381 | // t.Errorf("filepath walk error %s", err) | COMMENT |
| LOW | client/interop/musicxml/importer/importer_test.go | 401 | // t.Error(err) | COMMENT |
| LOW | client/color/color.go | 21 | // check for NO_COLOR ourselves and disable color manually if needed. | COMMENT |
| LOW | client/color/color_windows.go | 21 | // | COMMENT |
| LOW | client/wasm/main.go | 1 | //go:build js || wasm | COMMENT |
| LOW | client/repl/server.go | 581 | server.input += strings.TrimSpace(input) + "\n" | COMMENT |
| LOW | client/repl/server.go | 721 | // reset, so we keep track of it here. After we reset the state, we invoke | COMMENT |
| LOW | client/repl/server.go | 741 | // player, and this should generally happen quickly. `server.evalAndPlay` will | COMMENT |
| LOW | client/repl/player_management.go | 81 | // (`system.PlayerState{}`), which means all the struct fields have zero values | COMMENT |
| LOW | client/repl/player_management.go | 101 | } | COMMENT |
| LOW | client/repl/client.go | 601 | COMMENT | |
| LOW | client/repl/client.go | 621 | // NOTE: The nREPL design actually specifies that a server may send more than | COMMENT |
| LOW | client/repl/client.go | 981 | // StartSession starts an nREPL session by sending a "clone" request and keeping | COMMENT |
| LOW | client/parser/ast.go | 221 | COMMENT | |
| LOW | client/parser/parser.go | 721 | sourceContext: p.sourceContext(token), | COMMENT |
| LOW | client/system/sysprocattr_windows.go | 1 | //go:build windows | COMMENT |
| LOW | client/system/process_management.go | 81 | ); err != nil { | COMMENT |
| LOW | client/system/process_management.go | 161 | COMMENT | |
| LOW | client/system/process_management.go | 361 | }, | COMMENT |
| LOW | client/system/process_management.go | 581 | COMMENT | |
| LOW | client/json/interface.go | 1 | package json | COMMENT |
| LOW | client/json/declarative.go | 1 | package json | COMMENT |
| LOW | client/model/lisp.go | 21 | // | COMMENT |
| LOW | client/model/lisp.go | 61 | func (LispSpecialFormQuote) GetSourceContext() AldaSourceContext { | COMMENT |
| LOW | client/model/lisp.go | 181 | // We could represent the signatures here, too, but at some point, we are | COMMENT |
| LOW | client/model/duration.go | 21 | COMMENT | |
| LOW | client/model/cram.go | 81 | // UpdateScore implements ScoreUpdate.UpdateScore by doing the following for | COMMENT |
| LOW | client/model/source_context.go | 41 | // here and instead, unwrapping until we reach the bottom-most AldaSourceError | COMMENT |
| LOW | client/model/score.go | 21 | // DurationMs returns a number of milliseconds representing how long an event | COMMENT |
| LOW | client/model/score.go | 201 | color.Aurora.BrightYellow(reference), | COMMENT |
| LOW | client/model/part.go | 61 | // `midiChannel` will be updated. | COMMENT |
| LOW | client/model/part.go | 401 | // bassoon "baz": | COMMENT |
| LOW | client/model/part.go | 441 | parts = append(parts, part) | COMMENT |
| LOW | client/model/pitch.go | 121 | COMMENT | |
| LOW | player/src/main/kotlin/io/alda/player/MidiEngine.kt | 41 | const val MIDI_REVERB = 91 | COMMENT |
| LOW | player/src/main/kotlin/io/alda/player/MidiEngine.kt | 61 | // | COMMENT |
| LOW | player/src/main/kotlin/io/alda/player/MidiEngine.kt | 121 | // minute (BPM), but in microseconds per quarter note (I'll abbreviate this as | COMMENT |
| LOW | player/src/main/kotlin/io/alda/player/Parser.kt | 81 | // player into the "active" state and prolonging the expiration of the | COMMENT |
| LOW | player/src/main/kotlin/io/alda/player/Player.kt | 101 | // that signals the lookup and scheduling of the pattern's events. | COMMENT |
| LOW | player/src/main/kotlin/io/alda/player/Events.kt | 1 | package io.alda.player | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | client/color/color.go | 26 | // more robust way, something like checking the terminfo/termcap capabilities of | COMMENT |
| MEDIUM | client/color/color_windows.go | 25 | // more robust way, something like checking the terminfo/termcap capabilities of | COMMENT |
| MEDIUM | client/model/lisp.go | 1407 | // This will require a more nuanced API design for the Lisp function | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | doc/implementing-an-alda-library.md | 77 | ### Step 1: Write an `alda` command wrapper function | COMMENT |
| LOW | doc/implementing-an-alda-library.md | 125 | ### Step 2: Come up with an API | COMMENT |
| LOW | doc/implementing-an-alda-library.md | 265 | ### Step 3: Generate Alda code | COMMENT |