Exporting and Sharing
Outcome: every way out of TuxGuitar, run for real on the lab's riff and checked afterwards — so you know which export to reach for, and which two checkboxes and quirks to watch.
File > Export is a submenu, and the installed build's list is longer than the help file admits. Everything below was produced from first-riff.tg in the lab, and every output was then examined with a second tool (transcript t06; the corrected set from transcript t08 is what sits in tuxguitar-lab/).
MIDI — the machine-readable song
Export > Export Midi first asks about transposition (leave it at 0 unless you mean it), then writes a standard MIDI file. The lab parsed its file note by note with a small script (kept as tuxguitar-lab/parse_midi.py): format 1, three tracks (a conductor track plus one per guitar), 960 ticks per quarter note, a tempo mark of 500,000 microseconds per quarter — exactly 120 BPM — and the guitar program on each channel. All 28 notes matched the design, string choices aside: MIDI carries pitches and times, not frets, which is what makes it the perfect independent check of a tab (chapter 5's wrong string showed up here as wrong pitches). Send MIDI to anything that plays or imports music: DAWs, notation programs, phone practice apps.
ASCII tab — the song as plain text
Export > Export ASCII writes the oldest format of all: the text tab of chapter 1, saved with a .tab ending. The riff, complete:
Track 1: Track 1
E|---------------------|---------------------|---------------------|-------------|
B|---------------------|---------------------|-0----1----0---------|-------------|
G|---------------------|-----------0----2----|----------------2----|-------------|
D|---------------------|-0----2--------------|---------------------|-------------|
A|-----------0----2----|---------------------|---------------------|-------2-----|
E|-0----3--------------|---------------------|---------------------|-0-----------|
Track 2: Track 2
E|---------------------|---------------------|---------------------|-------------|
B|---------------------|---------------------|---------------------|-------------|
G|---------------------|---------------------|---------------------|-------------|
D|---------------------|---------------------|-----------0----0----|-------------|
A|---------------------|-0----0----0----0----|-2----2--------------|-------------|
E|-0----0----0----0----|---------------------|---------------------|-0-----0-----|
(The blank Title/Artist/Author header lines above it are the lab's own doing — chapter 5 left Song Properties empty.) Text tab carries frets and bar lines but no durations — note how bar 4's two long notes are indistinguishable from short ones. It pastes into an email, a forum post or a text file and will outlive every program in this guide; just don't mistake it for the whole song.
PDF and SVG — for paper and screen
Export > Export PDF opens an options dialog with one trap: "All Tracks" is unticked by default, and an unticked export prints only the track you were editing. Tick it. The lab's file: two pages (one per track's system layout) for the four-bar song, typeset by the iText library the install mentioned, producer string and all. Export SVG is the same idea as a single vector file — 56 KB for the riff — with the same unticked "export all tracks" box to catch. Print either for a lesson, a music stand, or a bandmate without a computer.
LilyPond and MusicXML — for other music software
Export Lilypond writes a .ly score for the LilyPond typesetter: real code, beginning with a helper function for tied notes in tab, a \version "2.14.0" stamp (the dialog's default — set it to your LilyPond's version), and both a notation staff and a TabStaff per track. The lab verified its measures note by note: bar 1 of track 1 reads <e,\6>4 <g,\6>4 <a,\5>4 <b,\5>4 — pitch, string, quarter-note duration — and the tempo line says \tempo 4=120. Export MusicXML writes the interchange standard: two parts named Track 1 and Track 2, 28 note elements, and — the detail that matters — each note carrying its string and fret in the technical annotations, so a notation program receiving it can rebuild the tab, not just the pitches.
Audio — the song as a WAV
Export > Audio File renders the song through the same soundfont as playback and writes a WAV: pick the format in its dialog and it synthesises offline, silence-proof — the lab's machineless ears still got a file. Checking it found this guide's favourite quirk (transcript t06/t08): the file's header declares 15.36 seconds of audio, but only 8.01 seconds are actually in the file — and 8.01 seconds is exactly the song (16 beats at 120 BPM, plus the last note's tail). The sound is all there; the label overstates it, in both renders the lab made, byte-for-byte the same numbers. Most players forgive it; if one truncates or loops oddly, re-encoding the file once with ffmpeg rewrites a truthful header. The lab also FFT-checked its render's pitches — 82 Hz (low E) ruling bar 1, 110 Hz (A) present through bar 2 — because a silent lab verifies everything twice.
Converting in bulk
Tools > File format batch converter walks a folder of songs and converts each to the format you choose — the way to turn a drawer of .gp5 downloads into .tg, or a term's worth of student files into PDFs. It is a window, not a command: the lab inspected the installed program's code and this build offers no headless, scriptable converter — batch work happens in the GUI, one dialog at a time.