Better sounds
OxiGuitar plays a score with sound sets you choose. This project picks one good, free instrument for each job and gives you an installer that fetches them, so you don’t have to hunt. Hear it plays the same songs with the basic system set and with these, side by side.
Each set is one instrument with no variations to choose between. Pick the set for a track and it sounds right.
The sets are not part of this repository. Each keeps its own licence and comes from its author. The installer and its scripts are GPL-3.0-or-later.
| Set | Sound | Size | Licence |
|---|---|---|---|
black-and-green-guitars | Clean electric guitars | 61 MB | CC0 1.0 |
clean-guitar | Clean electric guitar | 128 MB | CC0 1.0 |
overdriven-guitar | Overdriven electric guitar | 136 MB | CC0 1.0 |
distorted-guitar | Distorted electric guitar | 313 MB | CC0 1.0 |
nylon-guitar | Nylon-string guitar | 5 MB | CC0 1.0 |
steel-guitar | Steel-string acoustic guitar | 13 MB | GPL-3.0-or-later with exception |
ukulele | Ukulele | 3 MB | CC0 1.0 |
bass | Electric bass, plucked | 471 MB | CC0 1.0 |
drums | Drum kit | 347 MB | CC BY 4.0 |
The guitars and the ukulele come from the FreePats project, the bass and the Black and Green Guitars from Karoryfer Samples, and the drum kit from DrumGizmo. Every set is credited in its own oxiguitar-set.json, in a CREDITS.txt the installer writes, and in the licence file kept with it. The drum kit’s licence asks for this credit wherever the sounds are used in a published recording: Drum samples provided by DrumGizmo.org.
Why recorded sets sound so much better
OxiGuitar’s MIDI plugin turns each note into sound by playing a recording from a sound set (its manual explains how). Every computer comes with a basic General MIDI set: one small file holding 128 instruments, so each one gets only a few short recordings, stretched up and down to cover every note. It works, and it sounds like a 1990s keyboard.
The sets here are the opposite: each is one instrument recorded in depth. A real guitar was played string by string and fret by fret, softly and hard, sometimes several times for each note, so the plugin can pick the recording closest to what the score asks for and vary it the way a player does. The drum kit is a full kit recorded in a studio with many microphones and mixed down. The difference is easiest to hear on bends, palm mutes and drums.
The cost is size: about 1.5 GB for everything, against a few megabytes for a system set. That is why they are a separate, optional download, and why you can take only the ones you need.
About the licences
Every set here is free to use, but “free” comes in different shapes:
- CC0 1.0 is no conditions at all: the author gave the recordings to the public domain.
- CC BY 4.0 (the drums) lets you do anything, as long as you credit the author. Wherever you publish something made with the drums, add: Drum samples provided by DrumGizmo.org.
- GPL-3.0-or-later with an exception (the steel-string guitar): the samples are free software, and the exception says that using them in a piece of music doesn’t by itself put that music under the GPL.
Each set’s licence file is installed beside it.
After installing, the MIDI plugin finds the sets by itself: each kind of track uses the matching set from the next time it plays. Plugins → MIDI Sound Sets… shows and changes the choice.
How to use it
- Install the sets: with the package (
oxiguitar-bettersounds-soundfontson Debian, Ubuntu and Fedora), or by running the installer by hand (below). The installer shows what it would download and asks first. - Open a song in OxiGuitar and press Play. Each kind of track picks up its matching set by itself.
- To see or change which set plays what, choose Plugins → MIDI Sound Sets… in OxiGuitar:
With the sets installed, each list offers them by name (Clean Guitar, Distorted Guitar, Bass, Drums and so on) beside any other set you have. This picture shows the dialog before installing, with only the system’s basic set.
What you can do with it
- Get good sounds in one step. Install the package and it downloads the sets, or run the installer by hand on any system.
- Choose what to download.
./install.sh --listshows what is on offer, and--sets bass,drumstakes only those. - Take only the recommended patch of each set, which is the one OxiGuitar plays, or every patch. Some sets hold several instruments, and all of them add about 650 MB.
- Update or remove sets. Run the installer again, and unchanged files are skipped.
--uninstallremoves what it installed.
Running the installer by hand
You need bash and curl on Linux and macOS, or PowerShell on Windows. Download this repository as a zip, or take the zip of a release, unpack it, and run from the unpacked folder.
./install.sh --list # what is on offer
./install.sh # asks which sets, then asks before downloading
./install.sh --sets bass,drums
./install.sh --yes # every set, the recommended patch of each
./install.sh --yes --patches all
On Windows:
.\install.ps1 -List
.\install.ps1
.\install.ps1 -Sets bass,drums
.\install.ps1 -Yes
If Windows refuses to run the script, use powershell -ExecutionPolicy Bypass -File .\install.ps1.
Before anything is downloaded, the installer shows each set’s size, licence, author and the hosts the files come from, and waits for a yes.
Where the sets go
| System | Folder |
|---|---|
| Linux | ~/.local/share/oxiguitar/soundfonts/ |
| macOS | ~/Library/Application Support/OxiGuitar/soundfonts/ |
| Windows | %APPDATA%\OxiGuitar\soundfonts\ |
| Every user on Linux | ./install.sh --system, into /usr/share/oxiguitar/soundfonts/, run as root |
| OxiGuitar’s Flatpak | ~/.var/app/io.github.mateusrdp.OxiGuitar/data/oxiguitar/soundfonts/ |
The Flatpak sees only its own folders, so when it is installed the installer fills its folder too. The files there are hard links to the first copy where both folders are on one disk, so they take no extra room. OXIGUITAR_HOME moves OxiGuitar’s whole data folder, and the installer follows it. --dir DIR picks any other folder.
Each set gets its own folder holding the instrument, its samples, its licence and an oxiguitar-set.json that tells OxiGuitar what the set is and which row it is made for. OxiGuitar then uses each set by itself from the next time it plays. Picking another set for a row in the MIDI plugin’s dialog always wins.
Architecture and strategy
There is no program here, only two installer scripts and a list. sets.in says which instrument belongs to each set. scripts/pin.sh reads it, finds the files each instrument plays in the source repository, downloads them once to compute their checksums, and writes sets.txt. sets.txt lists every file with its address, size and SHA-256. Addresses are pinned to a commit of the source repository, so they don’t change under you.
The strategy is to be honest and boring about downloading:
- Nothing is downloaded until you say yes, and nothing is sent anywhere. There is no telemetry.
- A file that doesn’t match its checksum is thrown away and the install stops.
- The steel-string guitar is published only as one archive, so that set downloads the archive once, checks it, and takes only the listed files out of it.
- The instrument file is renamed, to
Clean Guitar.sfzfor example, so it reads well in OxiGuitar. Nothing inside any file is edited.
On Debian and Ubuntu, the package asks before downloading, and the default answer is yes, so an unattended install downloads the sets. On Fedora, the download happens in the package’s post-install step. A failed download doesn’t fail the installation.
Current limitations
- One instrument per job. There is one set for each kind of track. There is no piano, no keyboard, no strings: tracks of those kinds play with the system’s General MIDI set.
- No pick between several of each. The point is a good default, not a catalogue. Other sets you like work too: put them in the
soundfontsfolder and pick them in the MIDI plugin’s dialog. - The sources can move. The files come straight from their authors’ sites. If one moves a file, its checksum fails and the install stops, until
sets.txtis pinned again. - Big downloads. About 1.5 GB for everything. On a slow or metered connection, take only the sets you need with
--sets.
Left out on purpose
- Hosting the sets ourselves. The files stay with their authors, so the credit and the licence stay with them too, and nobody has to trust a copy.
- Editing the sets. Nothing inside any file is changed. Only the instrument file is renamed, so it reads well in OxiGuitar.
- Downloading from OxiGuitar itself. The app never connects to the internet. The installer is a separate script, or a package step that asks first.
- Sets with licences that restrict use, such as non-commercial ones. Everything here can be used in any music you make.
Where you can help
- Suggest sets. A free, well-recorded piano, organ or string section under CC0 or CC BY would fill the biggest gaps. Open an issue with a link and the licence.
- Listen. Tell us which sets sound wrong in OxiGuitar, and on which notes or techniques.
- Test the installers on Windows and macOS, which the maintainer can’t try by hand.
Requirements and assumptions
Requirements
- About 1.5 GB of disk and a network connection for the download, for every set. A few sets are much smaller.
bashandcurlon Linux and macOS, or PowerShell on Windows.- A sound plugin that plays SFZ and SoundFont sets, such as the MIDI plugin, to use them. See its manual.
Assumptions
- You are happy for the installer to fetch files from the places
sets.txtlists, after it has shown you them and you have said yes. - The sets’ authors keep their files where they are. If one moves, the checksum fails and the install stops rather than using something else.
Installing
There are two ways: a package on Linux, or the installer by hand on any system. The by hand section of the use cases page has the commands for the second.
Linux packages
The package is called oxiguitar-bettersounds-soundfonts. 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-bettersounds-soundfonts
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-bettersounds-soundfonts
Installing the package installs the sets for every user, about 1.5 GB, downloaded from their authors and checked against the checksums in sets.txt. On Debian and Ubuntu it asks first, and yes is the default, so an unattended install downloads them. To answer no ahead of time:
echo 'oxiguitar-bettersounds-soundfonts oxiguitar-bettersounds-soundfonts/download boolean false' | sudo debconf-set-selections
With dnf, set OXIGUITAR_SKIP_SOUNDS=1 in the environment of the install to skip the download. Removing the package removes the sets it installed. If a download fails, the installation still succeeds. Run sudo oxiguitar-install-sounds --system to try again, or to choose which sets any time later.
By hand
This is the only way on Windows and macOS. Take the zip of a release from the releases page, unpack it, and run install.sh (Linux and macOS) or install.ps1 (Windows) from the unpacked folder. The use cases page lists the options.
Hear it
A few of OxiGuitar’s own reference songs, played by OxiGuitar exactly as they sound in the window. They were rendered with oxiguitar-cli play SONG --wav OUT, with no effects or editing afterwards, and then encoded as MP3. Every set heard here is free and listed in the overview.
Recorded guitars, basses and drums
The electric guitars are Karoryfer’s Black and Green Guitars (the green Gretsch, CC0), the basses Karoryfer’s Black and Blue Basses (CC0) and the drums the MuldjordKit by Lars Muldjord and the DrumGizmo team, SFZ by kinwie (CC BY 4.0); the acoustic guitar, piano, strings and voice FluidR3_GM (MIT). All three are SFZ sets, played by the MIDI plugin’s sampler (OxiGuitar 1.0).
A band: the same eight tracks as below, with recorded electric guitars, bass and drums.
Bass: a four-string bass line, alone.
Drums: kick, snare, hi-hat, four toms, crash and ride, written as General MIDI drums.
Guitar techniques: dead notes, ghost notes and palm mutes, with the set’s own recorded articulations.
General MIDI sets
Played by OxiGuitar 0.9: the guitars use FreePats’ Clean electric guitar (CC0) and everything else uses FluidR3_GM (MIT).
A band: three guitars, bass, drums, piano, strings and a voice, each track at its file’s volume and pan.
Bends: full, half and released bends on a guitar, each moving only its own string.
Strums and techniques: strums up and down, slap, pop and tapping.
Drums: General MIDI’s kit.
These songs are short pieces written to test OxiGuitar, not music.
Features and their tests
Every feature of this repository and the tests that check it. This repository
has no Rust code yet: its tests are the stages of tests/suite.json, named
here as stage:NAME. python3 scripts/test-all.py runs every stage your
system can run and checks that each row names a stage that exists. A new
feature comes with its tests and a row here, in the same pull request.
The sets
| Feature | Tests |
|---|---|
sets.txt lists every set of sets.in, each file pinned to a commit, with a well-formed checksum, sizes that add up, one .sfz, a licence and nothing outside its folder | stage:sets list |
The installer
| Feature | Tests |
|---|---|
Lists the sets on offer (--list, -List) | stage:install.sh, stage:install.ps1 |
| Asks before downloading; without a yes nothing is downloaded | stage:install.sh, stage:install.ps1 |
Installs the chosen sets (--sets, -Sets) and refuses an unknown set | stage:install.sh, stage:install.ps1 |
| Checks every download against its checksum, and leaves nothing behind when one doesn’t match | stage:install.sh, stage:install.ps1 |
| Running it again changes nothing; a missing or cut-short file comes back; what is already there is recognised with every address dead | stage:install.sh, stage:install.ps1 |
| Removes what an older version of a set left, and never a folder it didn’t make | stage:install.sh, stage:install.ps1 |
The recommended patch by default, every patch on request (--patches all) or when asked | stage:install.sh, stage:install.ps1 |
| What it makes can be read by everyone, whatever the umask | stage:install.sh |
| One download at a time works the same | stage:install.sh |
| OxiGuitar’s Flatpak gets the sets in its own folder | stage:install.sh |
Removes a set it installed (--uninstall) | stage:install.sh, stage:install.ps1 |
| Runs in Windows PowerShell 5.1 as well as PowerShell 7 | windows:stage:install.ps1 (Windows PowerShell 5.1) |
| Every shell script passes shellcheck | stage:shell lint |
The Linux packages
| Feature | Tests |
|---|---|
The .deb lints clean, asks at priority high with yes as the default, installs the sets after configuring and ships oxiguitar-install-sounds | linux:stage:.deb |
The .rpm installs the sets unless OXIGUITAR_SKIP_SOUNDS is set, removes them with the package and ships oxiguitar-install-sounds | linux:stage:.rpm |
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
On Windows, type python instead of python3 if that’s what you have.
You need:
- git, and Python 3.8 or newer (nothing to install with pip);
- for the sets list stage:
bash. - for the shell lint stage:
bash,shellcheck. - for the install.sh stage:
bash,curl. - for the install.ps1 stage:
pwsh. - for the install.ps1 (Windows PowerShell 5.1) stage:
powershell. - for the .deb stage:
bash,dpkg-deb. - for the .rpm stage:
bash,rpmbuild,rpm.
It runs:
sets.txtchecked againstsets.in(scripts/check-sets.sh);- shellcheck on every shell script;
install.shagainst two made-up sets served from local files, with no network (tests/test-install.sh);install.ps1the same way, in PowerShell 7 (tests/test-install.ps1; needspwsh);- on Windows,
install.ps1in Windows PowerShell 5.1 too; - on Linux, the
.debbuilt and checked without installing it (tests/test-packages.sh deb; lintian too where it is installed); - on Linux, the
.rpmbuilt and checked without installing it (tests/test-packages.sh rpm; needs rpmbuild); - 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.
The stages that build packages need dpkg-deb (the .deb) and rpmbuild and rpm (the .rpm); lintian is used when it is installed. They build each package into a temporary folder and look inside it, and never install it: the Release workflow installs and removes them on its own runners. PowerShell 7 (pwsh) runs install.ps1 on any system, and Windows PowerShell 5.1 too on Windows.
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;
The script exits with 0 when everything passed, 1 when something failed, and 2 when it couldn’t start.
When something fails
- Update to the newest
develop(git checkout develop && git pull) and run it again: it may be fixed already. - Look for an issue about the same test at github.com/mateusrdp/oxiguitar-bettersounds-soundfonts/issues.
- Otherwise open one: call it
test-all: <the first failing test>, paste the wholesummary.md, and attachtest-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, so change anything you’d rather keep private. - You can also give
summary.mdandtest-all.logto 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 thanrust-version(unsupported, but handy).--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
This project is mostly other people’s work: the sounds are theirs, and we only point at them. Thank you, all of you, for recording these instruments and giving them away.
The sounds
| Set | By | Licence |
|---|---|---|
| Black and Green Guitars, Black and Blue Basses | Karoryfer Samples | CC0 1.0 |
| Electric Guitar FSBS (clean, overdriven, distorted), the Spanish classical guitar, FSS Steel String Guitar | The FreePats project | CC0 1.0; the steel-string guitar GPL-3.0-or-later with exception |
| Ukulele | Mateusz Dąbrowski, for FreePats | CC0 1.0 |
| MuldjordKit (the drums) | Lars Muldjord and the DrumGizmo team, SFZ by kinwie | CC BY 4.0 |
Wherever you publish a recording made with the drums, the licence asks for this credit: Drum samples provided by DrumGizmo.org.
Tools the installer uses
| Tool | Use |
|---|---|
| Bash and curl | The installer on Linux and macOS |
| PowerShell | The installer on Windows |
| debconf | The .deb package’s question before downloading |
| mdBook | Builds this manual |
Thanks
To Karoryfer Samples, the FreePats contributors and the DrumGizmo team, who put years into recording instruments well and then gave them to everyone. If you like these sounds, have a look at their sites: they have many more.