Slackware This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
08-20-2007, 11:54 AM
|
#1
|
|
Senior Member
Registered: Feb 2007
Distribution: Slackware64-current & "True Multilib."
Posts: 1,752
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.
|
|
|
|
08-20-2007, 12:29 PM
|
#2
|
|
Guru
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131
Rep: 
|
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.
|
|
|
|
08-20-2007, 02:43 PM
|
#3
|
|
Member
Registered: Oct 2003
Location: West Midlands, UK
Distribution: Slackware (current), Mepis on the wifes lappy
Posts: 724
Rep:
|
You might like to try this:-
Add the following to your /etc/rc.d/rc.local file:
Code:
modprobe snd-seq-midi
timidity -iA -B2,8 -Os -EFreverb=0 &
Good luck
|
|
|
|
08-20-2007, 02:56 PM
|
#4
|
|
Member
Registered: Feb 2004
Location: Waimanalo, HI
Distribution: Slackware 10, Fedora 6
Posts: 308
Rep:
|
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).
|
|
|
|
08-20-2007, 07:48 PM
|
#5
|
|
Senior Member
Registered: May 2004
Distribution: Slackware 13.0 32-bit
Posts: 1,973
Rep: 
|
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*
|
|
|
|
08-20-2007, 08:54 PM
|
#6
|
|
Senior Member
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 3,657
|
I hope this isn't considered spamming but...
If you go to the "how to properly set up Slackware Linux" link in my sig, you will find detailed instructions on getting MIDI to work.
|
|
|
|
08-25-2007, 01:08 PM
|
#7
|
|
Senior Member
Registered: Feb 2007
Distribution: Slackware64-current & "True Multilib."
Posts: 1,752
Original Poster
Rep: 
|
Quote:
Originally Posted by vdemuth
You might like to try this:-
Add the following to your /etc/rc.d/rc.local file:
Code:
modprobe snd-seq-midi
timidity -iA -B2,8 -Os -EFreverb=0 &
Good luck
|
Thank you. I tried that and get the message on boot up that,
"cannot execute binary file."
I've checked permissions, etc., and it is marked as executable. Any ideas why it won't execute?
Many Thanks.
|
|
|
|
08-25-2007, 02:48 PM
|
#8
|
|
Senior Member
Registered: Jul 2005
Distribution: Slackware
Posts: 2,006
Rep: 
|
Binary is for the wrong architecture? You can run "file" on the binary and see if what it identifies is what you expect.
|
|
|
|
08-25-2007, 02:58 PM
|
#9
|
|
Senior Member
Registered: Feb 2007
Distribution: Slackware64-current & "True Multilib."
Posts: 1,752
Original Poster
Rep: 
|
When I ran "file" on the binary it reported,
"ELF 64-bit LSB executable, x86-64, version 1 ( SYSV), dynamically linked (uses shared libs), stripped"
?
Thanks.
|
|
|
|
08-25-2007, 04:35 PM
|
#10
|
|
Member
Registered: Dec 2005
Location: ~
Distribution: Slackware -current, OpenBSD
Posts: 448
Rep:
|
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
|
|
|
|
08-25-2007, 06:09 PM
|
#11
|
|
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 4,677
Rep: 
|
Quote:
Originally Posted by mannyslack
|
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.
Eric
|
|
|
|
08-25-2007, 06:42 PM
|
#12
|
|
Senior Member
Registered: Feb 2007
Distribution: Slackware64-current & "True Multilib."
Posts: 1,752
Original Poster
Rep: 
|
Quote:
Originally Posted by cwizardone
When I ran "file" on the binary it reported,
"ELF 64-bit LSB executable, x86-64, version 1 ( SYSV), dynamically linked (uses shared libs), stripped"
?
Thanks.
|
Well the answer was obvious and I downloaded a 32bit version and installed it. It fires up, but midi still doesn't play.... oh, well.......
|
|
|
|
08-25-2007, 09:11 PM
|
#13
|
|
LQ Newbie
Registered: May 2007
Location: Canada
Distribution: Slackware
Posts: 1
Rep:
|
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.
SK
|
|
|
|
08-26-2007, 10:37 AM
|
#14
|
|
Member
Registered: Feb 2004
Location: Waimanalo, HI
Distribution: Slackware 10, Fedora 6
Posts: 308
Rep:
|
Quote:
Originally Posted by scott-k
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...
|
When you use timidity, your card never sees the Soundfont or any midi commands, so all the card has to be able to do is reproduce pcm audio.
|
|
|
|
09-03-2007, 10:19 AM
|
#15
|
|
Senior Member
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 3,657
|
Okay, people, here's a one-stop solution for getting MIDI to work:
http://www.vcn.bc.ca/~dugan/timidity/
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.
Last edited by dugan; 09-03-2007 at 10:30 AM.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:37 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|