# GP Refinger

Personal tool of four Python scripts that unify the fingering of repeated riffs in a Guitar Pro score without changing any pitch. It finds riffs played on different strings and frets, proposes one playable fingering for each in a report, and writes a new score file while the original stays untouched.

- **Facts:** 2026, Personal project, Completed, role: Sole developer
- **What I did:** I wrote the whole tool alone, for my own use.
- **Scope:** backend
- **Domain:** media
- **Stack:** Python, Claude Code
- **Page:** https://sergey-petrinich.vercel.app/work/gp-refinger

Capabilities:

- Real pitch of every note computed from the track tuning and the fret, and checked against the pitch stored in the file
- Repeated riffs found by pitch and rhythm, ignoring the fingering, across a five-track score of 166 bars
- Only riffs with at least two different fingerings reported
- Report of every divergent riff with its bars, a table of the competing fingerings and the proposed result
- Target fingering always taken from the ones the score already uses, chosen by frets, hand shifts and high-fret penalty
- 160+ edits proposed over 16 riffs, with warnings on debatable picks
- Notes with hammer-on, slide, bend, tap, harmonic or tie never moved
- Changed notes cloned in the XML and the beat repointed, so no pitch moves
- New score file written, original kept, all other archive entries copied unchanged
- Check that both files parse, beat counts match and pitches are identical beat by beat

Back to the [work archive](https://sergey-petrinich.vercel.app/work.md) · [CV](https://sergey-petrinich.vercel.app/cv.md) · [all of it in one file](https://sergey-petrinich.vercel.app/llms-full.txt)
