SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,095
Rep:
Midi files
In both Slackware 11 and 12, I have not been able to play midi files. KDE installs a midi player. I've fired it up, picked a midi file and the player goes through all the motions of playing the file, but there is no sound.
Other than midi files the sound card works perfectly and I've installed Timidity, but no joy. Is there a "switch" somewhere I need to throw?
Thank you.
If it looks like it's playing, then everything else should be ok but you either have muted the midi device, or you are using the wrong midi device (it could be using a dummy sound device, for example). If you're using ALSA, check alsamixer and make sure there are levels high enough (and unmuted), and if that doesn't help, see what device your player is using.
Maybe you don't have patches. Midi files have notes, but no sounds. Timidity and other midi players are often installed together with the "freepats" patch set, but there are other patch sets around, and you can also use Soundfonts. If you don't know whether you have patches, "locate timidity.cfg" and look in that file with an editor for a list of files with patches (if you have them).
Audacious is in Slackware 12 and it has midi plugins (timidity), still doesn't work. I gave up on midi a long time ago. Its just something that never worked for me under Linux, but at the same time it wasn't crucial at all. *shrug*
Hi, lately i installed prboom on my laptop and i couldn't get the music to play following the directions from the prboom homepage
Quote:
Music
The SDL_mixer library used by PrBoom supports software MIDI music synthesis. If you want to hear the Doom music, you need a set of Timidity instrument patches. Get the timidity.tar.gz from the bottom of the SDL_mixer page, and extract in /usr/local/lib. You may need to symlink /usr/local/lib/timidity/timidity.cfg to /etc/timidity — see the console output from PrBoom to see where it is looking for this file.
But then i came across AlienBob's timidity SlackBuild
Problem solved for me
I'm not sure why it's not on Slackbuilds.org, i guess i'll ask on irc
But then i came across AlienBob's timidity SlackBuild
Problem solved for me
I'm not sure why it's not on Slackbuilds.org, i guess i'll ask on irc
I don't post nor host my own stuff on SlackBuilds.org. I am an admin of SBo and scrutinize the submissions, but I keep my own stuff in my own repository. My SlackBuild scripts do things different than the scripts on SBo in many ways. At SlackBuilds.org we have the goal to keep the SlackBuild scripts as simple as possible.
I had the same problem with an Audigy 4 under Slackware 12. Midi files would appear to play, but no sound was produced... Installing the soundfont fixed the issue.
1. Download and install the awesfx package
2. Copy the soundfont from your Creative CD into /usr/share/sounds/sf2
3. Load the sound font:
# asfxload /usr/share/sounds/sf2/CT8MGM.SF2
4. Find an open port for playing midi:
$ aplaymidi -l
Port Client name Port name
14:0 Midi Through Midi Through Port-0
16:0 Audigy 4 [SB0610] Audigy MPU-401 (UART)
16:32 Audigy 4 [SB0610] Audigy MPU-401 #2
17:0 Emu10k1 WaveTable Emu10k1 Port 0
17:1 Emu10k1 WaveTable Emu10k1 Port 1
17:2 Emu10k1 WaveTable Emu10k1 Port 2
17:3 Emu10k1 WaveTable Emu10k1 Port 3
5. Play your midi file:
$ aplaymidi --port=17:0 pachebel.midi
If it works through aplaymidi, just configure timidity to use the sound font. Here's my /usr/local/share/timidity/timidity.cfg file:
opt -EFresamp=l
opt -EFreverb=G,32 # Set reverb level with a number(0-127)
dir /usr/share/sounds/sf2
soundfont CT8MGM.SF2 order=0
This only works if your card uses soundfonts though... Check out the Gentoo Linux ALSA Guide - I know, it's a Gentoo doc, but it has some really good info on midi and alsa in general.
It's a TiMidity++ SlackBuild that also installs eawpats and adds a TiMidity script to rc.d. Afterwards, you will have a working MIDI port at 128:0. You will also be able to use TiMidity to play MIDI files directly, and hear music in games that use the TiMidity libraries (such as prBoom and Exult).
I've tested it on a fresh full install of Slackware 12.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.