# Sound in TuxGuitar

First to mention, TuxGuitar is written in Java programming language. There is dedicated layer in Java for MIDI sound, which uses “soundbanks”. In TuxGuitar prior to version 1.0, using the soundbanks was the only way to play the sound, and it was totally independent of your system MIDI settings.

Since the version 1.0 there are some plugins that enable connection between TuxGuitar and the system MIDI devices. You need the plugin depending on your operating system and audio properties:

- Linux (ALSA) - TuxGuitar-alsa
- Linux (OSS) - TuxGuitar-OSS
- MacOS - TuxGuitar-CoreAudio
- Microsoft Windows - integrated in the application

These plugins are included in your distribution package, so there is no need to download them manually. Just be shure that plugins stay enabled in the plugins dialog.

### Java Sound

Java Sound plugin, relying on the soundbanks, is still available in the form of the “Java Sound Api plugin”. You can adjust and change the soundbank with Configure button in the plugins dialog.

If the plugin is enabled, in the Sound tab of the Tools→Settings dialog you can choose “Java Sound Synthesizer” in the Midi Port list. That enables sound output using Java soundbanks.

### Platform-dependant plugins

If you have TuxGuitar-alsa, TuxGuitar-OSS, TuxGuitar-CoreAudio plugin enabled or if you are running TuxGuitar on the Windows platform TuxGuitar detects your system MIDI ports (devices).

So it depends of your system settings, but anyway, if the proper plugin is enabled and working you should see system ports in the Midi Port list in the Sound tab of the Tools→Settings dialog. Choosing the right one enables your native MIDI sound in TuxGuitar.

If you experience problems using your native MIDI output, consult the help of the plugin you are using.

### Sequencer

Beside MIDI Port sound options in the Tools→Settings→Sound tab is also MIDI Sequencer options. In general, you should use “Real Time Sequencer” because it’s faster, but it needs Java Sound plugin to be enabled, which means it requires Sun Java to be installed. In case you use some other JVM, your only choice is “TuxGuitar Sequencer”. Don’t worry, it is not as bad as it sounds. :)