Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Guitar Pro plugins

These plugins let OxiGuitar open Guitar Pro files, the format most tab collections have been kept in since the late 1990s. Without them OxiGuitar can’t open a .gp5 or a .gp at all: every file format is a plugin. There are five, one for each generation of the format, and the ones for Guitar Pro 5 and for Guitar Pro 7 and 8 can also save.

Plugin fileOpensSaves
gp3.oxpGuitar Pro 3 (.gp3)
gp4.oxpGuitar Pro 4 (.gp4)
gp5.oxpGuitar Pro 5 (.gp5).gp5
gpx.oxpGuitar Pro 6 (.gpx)
gp.oxpGuitar Pro 7 and 8 (.gp).gp

They only read and write files. They make no sound, so you also need a plugin that plays scores and one that sends the sound to your speakers.

Tablature and Guitar Pro

Guitarists mostly read tablature (“tab”): six lines, one for each string, with a number on a line saying which fret to press on that string. It shows where to play a note, which standard notation doesn’t, and it can show what guitarists do with a note: bends, slides, hammer-ons, vibrato, palm mutes. Guitar Pro files hold both at once, the notes in standard notation and the same notes as tab, plus the rhythm, the tempo and every track of the band.

Guitar Pro, by the French company Arobas Music, is the program most of that tab was written in. Because it could play the tab back, guitarists shared its files by the million, and most sites and collections still offer them. Its file format changed with the program:

  • Guitar Pro 3, 4 and 5 (.gp3, .gp4, .gp5) wrote compact binary files, each version adding to the one before.
  • Guitar Pro 6 (.gpx) moved to an XML description of the score, called GPIF, inside a compressed container of Arobas’s own.
  • Guitar Pro 7 and 8 (.gp) keep the GPIF XML, now inside an ordinary ZIP archive.

OxiGuitar opens them all, whatever their extension says: it looks inside the file to decide which generation it is. It saves to .gp5, which Guitar Pro 5 and later and TuxGuitar can read, and to .gp, for Guitar Pro 7 and later.

Guitar Pro is a trademark of Arobas Music. OxiGuitar is not affiliated with it.

How to use it

Check it is installed

Tools → Plugins… lists every plugin OxiGuitar found, with its version, and lets you switch any of them off:

Open and save

  • Open: File → Open… and pick a .gp, .gpx, .gp5, .gp4 or .gp3 file, or double-click one if your system links the file type to OxiGuitar. OxiGuitar looks inside the file to decide which plugin reads it; the extension doesn’t matter.
  • Save: File → Save As… and pick .gp5 or .gp as the format. If the format can’t hold everything in your score, OxiGuitar says what would be lost before it saves, and you can keep the rest in the .oxg file beside it.
  • The import log: anything the Guitar Pro plugins couldn’t bring across is listed in the footer at the bottom of the window when the file opens.

What you can do with it

  • Open an old tab collection. Files from Guitar Pro 3, 4 and 5 open as they are, and so do files from Guitar Pro 6, 7 and 8.
  • Edit a song and save it back in a format other people can open. Saving as .gp5 gives a file that Guitar Pro 5 and later, and TuxGuitar, can read. Saving as .gp gives a file for Guitar Pro 7 and later.
  • Install only the generations you use. Each plugin is a separate file, so a collection that is all .gp5 needs only gp5.oxp.
  • Open a file with the wrong extension. OxiGuitar looks inside the file to decide what it is, so a Guitar Pro 5 file named .gp3 opens as Guitar Pro 5.

When a format can’t hold something you added, OxiGuitar says what would be lost before it saves.

Architecture and strategy

The five plugins are thin. Each one is a small wrapper around a shared library that holds the file format detection, the readers and the writers. A plugin file carries only its own reader, which is why you can leave out the ones you don’t need.

The strategy is to trust the file’s contents over its name, and to check our output against other programs instead of our own tests alone. The repository keeps songs we wrote ourselves in every format, files written for opening in Guitar Pro itself, and checks that alphaTab and MuseScore read what we write the way we mean it. The readers and writers are also fuzzed, since the files come from anywhere.

Current limitations

  • No writers for Guitar Pro 3, 4 and 6. You can open those files, and save as .gp5 or .gp.
  • No automations. Volume, pan and instrument changes in the middle of a song have no place in OxiGuitar before v1.0, so a file’s automations don’t come across.
  • No audio tracks. Guitar Pro 7 and 8 can carry a recorded audio track; OxiGuitar doesn’t play or keep it yet (mateusrdp/oxiguitar#240).
  • Guitar Pro’s own sounds. Its RSE sound settings and sound banks belong to Guitar Pro. OxiGuitar plays each track with its own sound plugins instead, by the track’s General MIDI instrument.
  • Layout. Guitar Pro’s page layout and style settings aren’t copied: OxiGuitar engraves the score its own way.
  • Stem direction overrides are dropped: stems follow the voice (a decision, 19 October 2026).

When a file loses something on the way in, the footer says so; when a save would lose something, OxiGuitar asks first, and can keep it in the song’s .oxg file.

Left out on purpose

  • Anything of Guitar Pro’s. No code, sounds, icons, fonts or sample songs are taken from Guitar Pro. The formats are read from what open projects (alphaTab, PyGuitarPro, TuxGuitar) have documented, and checked against files we wrote ourselves.
  • Writers for the old formats. .gp5 opens in every Guitar Pro from 5 on and in TuxGuitar, and .gp in Guitar Pro 7 and 8, so older writers would add work and help almost nobody.
  • Trusting the extension. Files on the internet are often misnamed; the content decides.

Where you can help

  • Check our files in Guitar Pro. The repository’s fixtures/guitar-pro-check/ holds files we wrote; if you own Guitar Pro 7 or 8, open them and tell us what looks wrong. That is the single most useful check we can’t do ourselves.
  • Files that don’t open, or open wrong. Open an issue with what you see. Attach the file only if you are allowed to share it.
  • Automations, if they come back into scope after v1.0.

Every change needs its tests and a row on the Features page; the Testing page says how to run them.

Requirements and assumptions

Requirements

  • OxiGuitar 0.25 or later. Every plugin asks for plugin interface 3.0. See the OxiGuitar manual.
  • Windows, macOS or Linux. Linux and Windows builds exist for x86_64 and ARM64.
  • To hear a song you also need a plugin that plays scores and an audio output plugin. These plugins don’t make sound.

Assumptions

  • The file really is Guitar Pro. Anything else is not opened.
  • You are allowed to use the files you open. The plugins read what you give them and nothing else.
  • Saving to .gp5 or .gp is enough for your purposes. There is no writer for Guitar Pro 3, 4 or 6.

Installing

You need OxiGuitar first: its manual says how to get it. This page is about the Guitar Pro plugins.

From a release

Each release on the releases page has a zip for each system (Linux, Windows and macOS; Linux and Windows for x86_64 and ARM64), a .deb, an .rpm and a Flatpak for Linux, a setup program for Windows that installs for you alone (no administrator password), a .pkg for macOS that does the same, and a SHA256SUMS file to check the downloads against. Take the file that matches your system.

Copying the file yourself

A plugin is a single file ending in .oxp. Unzip the release for your system and put gp3.oxp, gp4.oxp, gp5.oxp, gpx.oxp and gp.oxp in your plugins folder:

SystemYour plugins folder
Linux~/.local/share/oxiguitar/plugins/
macOS~/Library/Application Support/OxiGuitar/plugins/
Windows%APPDATA%\OxiGuitar\plugins\

Start OxiGuitar again. Tools → Plugins… lists what it found. The same menu switches a plugin off, and deleting the file removes it.

On macOS, a plugin file you downloaded yourself may be refused as coming from an unverified developer. Clear the download mark and start OxiGuitar again:

xattr -d com.apple.quarantine ~/Library/Application\ Support/OxiGuitar/plugins/*.oxp

A plugin installed with the .pkg is not marked this way.

Linux package managers

The package is called oxiguitar-guitarpro. It lives in a signed package repository on GitHub Pages that you add once.

Debian, Ubuntu and relatives:

sudo install -d -m 0755 /etc/apt/keyrings
sudo curl -fsSL https://mateusrdp.github.io/oxiguitar-packages/oxiguitar.gpg -o /etc/apt/keyrings/oxiguitar.gpg
sudo curl -fsSL https://mateusrdp.github.io/oxiguitar-packages/oxiguitar.sources -o /etc/apt/sources.list.d/oxiguitar.sources
sudo apt update
sudo apt install oxiguitar-guitarpro

Fedora and relatives:

sudo curl -fsSL https://mateusrdp.github.io/oxiguitar-packages/oxiguitar.repo -o /etc/yum.repos.d/oxiguitar.repo
sudo dnf install oxiguitar-guitarpro

Normal system updates keep the plugin current from then on.

OxiGuitar’s Flatpak is a sandbox that cannot see the system’s plugin folders, so it needs the plugin as a Flatpak extension. Flathub comes first because Flatpak takes its runtime from there:

flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
flatpak remote-add --if-not-exists oxiguitar https://mateusrdp.github.io/oxiguitar-packages/flatpak/oxiguitar.flatpakrepo
flatpak install oxiguitar io.github.mateusrdp.OxiGuitar.Plugin.guitarpro

flatpak update keeps it current and flatpak remove takes it away.

Features and their tests

Everything the Guitar Pro plugins do, and the tests that check it. The test names are the ones cargo test prints (a name starting with a package, such as oxiguitar-gp5-plugin/, is that plugin’s own test); a stage: is a step of scripts/test-all.py. The script fails when a feature here names no test, or names a test that doesn’t exist, so a new feature gets its row and its tests in the same pull request (the Testing page says how to run them, on your own files too).

The five plugins (gp3, gp4, gp5, gpx, gp) share the readers and writers of the oxiguitar-formats crate. CI also has other programs read what we write (interop.yml: alphaTab and MuseScore 4); that needs those programs, so it isn’t part of the script.

FeatureWhat it doesTests
Recognises Guitar Pro files by their contentsGuitar Pro 3, 4 and 5 by their header, 6 by its BCFZ or BCFS container, 7 and 8 by their ZIP’s contents, whatever the extension says (our corpus has Guitar Pro 5 files named .gp3).detect::tests::guitar_pro_versions, detect::tests::containers_and_text, detect::tests::zip_contents_decide, guitar_pro::format_comes_from_contents
Reads Guitar Pro 3, 4 and 5Every version’s header, tracks, bars and beats, alternate endings, Windows-1252 texts; what the reader reads is what the writer wrote.guitar_pro::reads_each_version, guitar_pro::public_fixtures_match_the_writer, gp::tests::versions, gp::tests::gp3_alternate_endings, binary::tests::guitar_pro_strings, binary::tests::windows_1252_text, binary::tests::reads_little_endian
Reads Guitar Pro 6, 7 and 8The .gpx container (compressed or not) and the .gp ZIP, their score XML, the same music as the Guitar Pro 5 reader where both have it.gpif::reads_gp7_and_gpx, gpif::uncompressed_gpx_reads_too, gpif::agrees_with_the_gp5_reader, gpif::public_fixtures_match_the_writer, container::tests::bcfs_file_system, container::tests::bcfz_literals_and_back_references, container::tests::part_configuration_flags, xml::tests::tree_text_cdata_and_attributes
Notes, effects and marksBends as curves, brushes, tied notes keeping their fret, chord diagrams with their strings and base fret, colours and directions, Guitar Pro’s default rows.gpif::effects::tests::bend_curve_points, gpif::effects::tests::brush_lengths, gpif::tied_notes_keep_their_fret, gpif::tests::chord_diagram_strings_and_base_fret, gpif::tests::colors_and_directions, gpif::tests::guitar_pros_default_rows
ClefsGuitar Pro 3 to 5 store none: the clef comes from the instrument, as Guitar Pro 7 gives it on converting.gp::tests::clefs_come_from_the_instrument, gp5_round_trip::clefs_are_not_stored
Writes Guitar Pro 7 and 8 (.gp)A .gp file reads back exactly and loses nothing; any other file comes back the same in its normal form, unless the writer named a loss. Free time, the palette’s marks, spellings, mixer values, every program’s sound and the kit’s drums, chord spellings Guitar Pro agrees with, as Guitar Pro 7.6 writes them.round_trip::fixtures_round_trip, round_trip::free_time_round_trips, round_trip::the_palette_s_marks_round_trip, round_trip::unchosen_spellings_stay_unchosen_in_every_key, gpif::write::*, gpif::write::chord::*, guitar_pro_7_6_own::*
Writes Guitar Pro 5 (.gp5)A real Guitar Pro 5 file; what it can’t hold is named; beams follow the beat.gp5_round_trip::fixtures_round_trip, gp5_round_trip::the_file_is_a_guitar_pro_5_file, gp::write::tests::beams_follow_the_beat, gp::write::tests::steps_of_the_table, binary::tests::text_is_written_as_windows_1252
Damaged filesErrors naming where, never panics: damaged and truncated bytes, damaged XML, counts bounded.guitar_pro::damaged_bytes_never_panic, guitar_pro::truncated_files_give_errors_not_panics, gpif::damaged_bytes_never_panic, gpif::damaged_gpif_never_panics, gpif::truncated_files_give_errors_not_panics, gpif::not_a_score, xml::tests::errors_do_not_panic, binary::tests::counts_are_bounded, error::tests::error_message_names_position, error::tests::repeated_messages_are_counted
Five plugins, one format eachEach plugin recognises and reads its own format and refuses the others; gp and gp5 also write; a file no plugin recognises gets the right report; format plugins add no views.host::each_plugin_recognises_and_reads_its_own_format_and_nothing_else, host::the_plugins_read_every_file_exactly_as_the_readers_do, host::a_file_no_plugin_recognises_is_refused_with_the_right_report, host::a_disabled_plugin_and_no_plugin_at_all, host::format_plugins_add_no_views_and_hear_no_events, plugin_formats::formats_without_a_reader_are_refused_clearly, tests::its_signatures_recognise_its_fixture_only, tests::reads_its_own_format, oxiguitar-gp-plugin/lib::tests::writes_what_it_reads, oxiguitar-gp5-plugin/lib::tests::writes_what_it_reads
Across the plugin interfaceScores cross the plugin interface (3.0) without loss, a bar in free time too; errors and logs read the same on both sides.wire::fixtures_and_references_cross_without_loss, plugin::tests::a_fixture_crosses_with_its_log, plugin::tests::errors_read_the_same_across_the_interface
Your Guitar Pro filesEvery Guitar Pro file of the corpus reads with a sound structure, round-trips through .gp and .gp5, crosses the interface, and opens through the plugins exactly as in-process; songs of our corpus saved in two formats agree, where they are there.corpus::every_corpus_guitar_pro_file_reads, round_trip::corpus_round_trips, gp5_round_trip::corpus_round_trips, wire::the_corpus_crosses_without_loss, host::the_plugins_read_every_corpus_file_as_the_readers_do, corpus::songs_in_two_formats_agree
Through the newest OxiGuitarEvery Guitar Pro file of the corpus, through the newest OxiGuitar’s oxiguitar-cli and these plugins’ files: recognised, read, written as .gp and .gp5 three times, settling after the first trip.stage:corpus through the core
Working plugin filesEach .oxp file keeps the plugin contract, with this repository’s SDK version and with the newest release of OxiGuitar.contract::the_plugin_file_keeps_the_contract, oxiguitar_plugin_checks::the_manifest_matches_the_plugin, stage:contract (latest core)

Testing

Every test of this repository runs with one command, on your own machine, and anyone can run it. When something fails, it tells you how to report it.

Run everything

python3 scripts/test-all.py --corpus /path/to/your/files

On Windows, type python instead of python3 if that’s what you have.

You need:

  • Rust, from rustup (the version in Cargo.toml’s rust-version or newer);
  • git, and Python 3.8 or newer (nothing to install with pip);
  • on Linux, the libraries a build needs: libasound2-dev, libpipewire-0.3-dev and libclang-dev on Debian and Ubuntu (alsa-lib-devel, pipewire-devel and clang-devel on Fedora);

It runs:

  1. every Rust test of the repository (cargo test over the whole workspace), with a progress bar;
  2. the plugin against the newest release of OxiGuitar: it fetches that release’s source with git (once per release, kept in a cache folder every OxiGuitar repository on your machine shares: ~/.cache/oxiguitar-test-all, ~/Library/Caches/oxiguitar-test-all on macOS, %LOCALAPPDATA%\oxiguitar-test-all on Windows, or OXIGUITAR_TEST_CACHE), builds its oxiguitar-cli and oxiguitar-plugin-test, builds this repository’s plugin file for your system and runs the plugin contract on it;
  3. every corpus file the plugin recognises, through that release’s oxiguitar-cli: recognised, read, written as .gp and .gp5 and read back, a second round trip changing nothing;
  4. a check of the Features page: every feature names a test, and every test it names exists.

It tests the system and processor it runs on, and only those (as Rust sees them: rustc -vV’s host). Tests for other systems are left out and the summary says so; they are not failures.

Your corpus

The corpus is any folder of files you have (searched recursively, hidden files left out): give it with --corpus DIR, or set OXIGUITAR_CORPUS=DIR. Each corpus test takes the files it understands and skips the rest, and only checks what must hold for every file (it opens, nothing panics, a round trip is stable), so your corpus doesn’t have to be ours to pass. Files are never uploaded, and never belong in the repository.

cargo test on its own uses OXIGUITAR_CORPUS too, or the repository’s ignored corpus/files/ folder, and quietly checks nothing when neither is there (that’s how CI runs). --no-corpus runs the script without one.

Other programs reading what we write

CI’s interop.yml has alphaTab and MuseScore 4 read every fixture as we write it. It needs those programs, so the script leaves it out. fixtures/guitar-pro-check/ keeps the writer’s files for checks by hand in Guitar Pro.

What you get

A line per stage while it runs, then the result. In target/test-all/<date>-<time>/:

  • summary.md: the result, your system, what failed and why, short enough to paste into a GitHub issue;
  • test-all.log: everything that happened, every command and its output, and your corpus’s file names, sizes and SHA-256 sums;
  • corpus-*.json: what each corpus test made of each file.

The script exits with 0 when everything passed, 1 when something failed, and 2 when it couldn’t start.

When something fails

  1. Update to the newest develop (git checkout develop && git pull) and run it again: it may be fixed already.
  2. Look for an issue about the same test at github.com/mateusrdp/oxiguitar-guitarpro/issues.
  3. Otherwise open one: call it test-all: <the first failing test>, paste the whole summary.md, and attach test-all.log (drag it onto the text box; zip it first if it’s over 25 MB). Read the log first: it has your folder names and your corpus’s file names, so change anything you’d rather keep private.
  4. Don’t attach corpus files unless they’re yours to share. The summary lists each failing file’s SHA-256, which is often enough for us to find the same file. If a failing file is yours, attaching it helps a lot.
  5. You can also give summary.md and test-all.log to a language model along with this repository and ask it to find the cause.

Options

  • --release: an optimised test build: slower to build, faster corpus tests.
  • --ignore-rust-version: for a Rust older than rust-version (unsupported, but handy).
  • --core DIR: test against a checkout of OxiGuitar you already have, instead of its newest release; --core-version v0.21.5 picks a release.
  • --out DIR: where the results go.

Adding a feature

A new feature comes with its tests and a row on the Features page, in the same pull request; a new corpus test uses tests/support/corpus.rs. The script fails until the row names tests that exist.

Credits

Reading a closed format well is only possible because other people did the hard work of documenting it in the open. Thank you to every project below.

Code we use

ProjectAuthorsWhat it does hereLicence
OxiGuitar’s plugin SDK (oxiguitar-plugin, oxiguitar-plugin-api, oxiguitar-model, and oxiguitar-plugin-test for the tests)Mateus Rocha de Paula and the OxiGuitar contributorsThe plugin interface and the score modelMIT OR Apache-2.0 for the interface and SDK; GPL-3.0-or-later for the model
zipMathijs van de Nes, Marli Frost, Ryan Levick, Chris Hennick and contributorsGuitar Pro 7 and 8 archivesMIT
zlib-rsThe Trifecta Tech FoundationDeflate compression, in pure Rust, under zipZlib
quick-xmlJohann Tuffe, Mingun and contributorsGPIF, the XML inside Guitar Pro 6, 7 and 8 filesMIT
serde_jsonDavid Tolnay, Erick Tryzelaar and contributorsTests and toolsMIT OR Apache-2.0
Rust and its standard libraryThe Rust ProjectEverything elseMIT OR Apache-2.0

The readers and writers are our own code.

Projects we learned the formats from

ProjectAuthorsWhat we tookLicence
alphaTabDanielku15 (CoderLine) and contributorsHow Guitar Pro 6’s container is compressed and laid out, what GPIF’s elements mean, and a second reader to check our files againstMPL-2.0
PyGuitarProSviatoslav Abakumov (Perlence) and contributorsThe byte layout of Guitar Pro 3 to 5, and a cross-check of our readersLGPL-3.0
TuxGuitarJulian Casadesus, helge17 and contributorsIts Guitar Pro readers, to settle what an effect’s bytes meanLGPL-2.1
MuseScore StudioMuse Group and contributorsA second program to check that what we write reads as we mean itGPL-3.0

Each was used as documentation and as an independent check. No code from them is in these plugins.

Tools

ToolUse
cargo-fuzz and libfuzzer-sysFuzzing the readers and writers (fuzz/)
Node.js and PythonThe interoperability checks against alphaTab and MuseScore (scripts/interop/)
mdBookBuilds this manual
cargo-denyChecks the licences of everything we build with

Thanks

To Danielku15 and the alphaTab project, to Perlence and the PyGuitarPro contributors, and to the TuxGuitar team: years of patient reverse engineering, shared with everyone.

Guitar Pro is a trademark of Arobas Music. MuseScore is a trademark of Muse Group. These plugins are not affiliated with either.