gengp

command
v0.0.0-...-341f52a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Command gengp writes testdata/fixture_riff.gp: the canonical 4-bar fixture riff (see docs/TEXTFORMAT.md) as a Guitar Pro 7/8-style .gp file — a plain ZIP archive holding Content/score.gpif, the id-referential GPIF XML document. It is the .gp member of the cross-format fixture corpus (ROADMAP Phase 0/3); internal/gpimport is tested against its exact tick content.

The archive holds only the gpif entry. Real Guitar Pro 8 exports also carry sidecar entries (a VERSION marker, binary stylesheets, layout and part configuration) that we cannot reproduce faithfully, so they are omitted rather than faked; the importer ignores non-gpif entries either way, and its tests cover archives with extra entries.

Honesty note: this fixture is self-authored from the publicly documented structure of the format (clean-room, docs/DECISIONS.md D3), so the generator and the importer share one understanding of the format. Files exported by Guitar Pro itself remain the untested gap — see testdata/README-gp.txt.

Bar 4 is authored as two tied half notes, exactly as the .gtab source writes it; score.Events() merging them into one whole-note event is the round-trip invariant the corpus pins down.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL