Skip to content

engine: TypeScript API cannot read loop scores by id #507

Open

Description

@bpowers

Owner decision: add loop-score-by-id to the TypeScript engine, or close because pysimlin already covers it.

libsimlin and pysimlin read loop scores by id (r3, pin1) without building internal variable names: Sim.get_loop_score, Sim.get_relative_loop_score, Sim.get_links.
The TypeScript engine (src/engine) does not:

  • internal/analysis.ts binds simlin_analyze_get_relative_loop_score, but nothing calls it, and there is no binding for the raw simlin_analyze_get_loop_score.
  • Sim and Run expose neither.

Path scores and composite link scores through a module have no by-name accessor in any binding.
No caller has asked for them.

Fix

Recommended: close, and delete the unused TypeScript binding; add Sim.getLoopScore / getRelativeLoopScore when the app or a TS user needs them (S).
Alternative: add them now for parity with pysimlin.

Pointers

  • src/engine/src/internal/analysis.ts: simlin_analyze_get_relative_loop_score
  • src/libsimlin/src/analysis.rs: simlin_analyze_get_loop_score, simlin_analyze_get_relative_loop_score
  • src/pysimlin/simlin/sim.py

Activity

  1. added
    ltm
    on May 9, 2026
  2. added
    enhancement
    on Oct 12, 2026
  3. changed the title [-]ltm: surface synthetic variable names via FFI helpers for advanced users[/-] [+]ltm: read loop and link scores by id, not internal variable names[/+] on Oct 12, 2026
  4. changed the title [-]ltm: read loop and link scores by id, not internal variable names[/-] [+]engine: TypeScript API cannot read loop scores by id[/+] on Oct 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementltm

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions