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.
I am talking about playback, not composing using a Midi keyboard.
First I made sure that all my volume controls are at max, except from "Front" which is always at zero (I can't move it). I have a Creative Soundblaster Live (I think it's the "4.1" version). lspci sais:
My first try was with Audacious. But when I open the midi file, the program just pauses and it doesn't close unless I "kill" it.
Then I tried KMid (from KDE). I can see the timeline (the "seek" switch that lets me go back and forward in a music file) progressing but I cannot hear any sound.
My media player of choice under Windows is an old version of WinAMP 2.x and it can play midi files. So, I tried running WinAMP with Wine. WinAMP can playback MP3 files under Wine, but not Midi ones. Again, I see the timeline progressing but I cannot hear the music.
I first noticed this when I tried to play Prboom (a classic Doom1/2 port) and I couldn't hear music.
TexMex's solution might be better than mine, but this is what I did
- it took me a while to figure it out, and I am trying to remember what I did.
I think the important bit was /etc/modprobe.d/modprobe.conf (actually in my case that is a link to /etc/modprobe.conf)
mine looks like this
# ALSA portion
alias char-major-116 snd
alias snd-card-0 snd-emu10k1
# module options should go here
# OSS/Free portion
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0
# card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
reboot I guess here
then in kde you have to go into Settings>Sound and Multimedia>Sound System and select Hardware tab
In the Select Midi device section, I selected SBLive! Platinum [CT4760P] EMU10K1 MPU-401 (UART).......
and it has worked ever since.
You may need to manually modprobe some stuff, I don't seem to need to though
I also don't have the 2GMGSMT.SF2 4GMGSMT.SF2 8MBGMSFX.SF2 files. Are there inside the soundcard's CD? I think I already have lost that. If it's not too much trouble send them over (e-mail or a link to a hosting site, anything that is convenient for you. If you choose e-mail then I would prefer to give you my e-mail address with a PM to avoid spam-bots.)
2)once you have the program installed you need do load a soundfont, I don't really feel like going into detail on what a sound font is, so let me just say you need it, for more detailed explaination go to google, anyway there are MANY different sound fonts you can use to get different sounds, however I prefer the sound font that comes with the creative windows drivers you can get it from here http://webpages.charter.net/daedra/ct4mgm.sf2.
3) load the sound font with this program from the package you installed above - asfxload ct4mgm.sf2. If you get no errors then the sound font should be installed. Now there are many different programs to use to play midi's but im going to assume you have KDE so use the program kmid, just type kmid from the run command.
4)once kmid is up, go to settings/midi setup and you should see a list of available devices like this
Midi Through Midi Through Port-0
Audigy 2 Platinum [SB0240P] Audigy MPU-401 (UART)
Audigy 2 Platinum [SB0240P] Audigy MPU-401 #2
Emu10k1 WaveTable Emu10k1 Port 0
Emu10k1 WaveTable Emu10k1 Port 1
Emu10k1 WaveTable Emu10k1 Port 2
Emu10k1 WaveTable Emu10k1 Port 3
you should be able to use any of the bottom 4, but I personally use "Emu10k1 WaveTable Emu10k1 Port 0". Once you select that select a midi file and you should have sound. Let me know how it goes.
Another choice for software synthesizer would be Timidity++, which is one solution that I've tried. You might also like Alien Bob's build. Haven't tried that last one, but, hey, it's by Alien Bob, so it'll work.
Daedra is right of course, and mentions loading the soundfont into the card, which I omitted.
You can add the asfxload command to your /etc/rc.local and forget about it if you want, (I did!)
I expect the soundfont files mentioned previously by texmex and daedra are better than the ones I got from the creative cd, but I am happy to send them if you wish, just reply to my email.
tobyl
edit: I did some more playing around.
The alsa people link to one of the soundfont files that I used here:
The gumf I told you about the modprobe.conf seems unecessary. I think udev takes care of most of it. In /etc/modprobe.d there is in my case a file called 'sound' which contains
alias snd-card-0 snd-emu10k1
alias sound-slot-0 snd-emu10k1
After that it only seems necessary to do the following:
modprobe snd_seq_midi
modprobe snd_emu10k1_synth
asfxload /etc/midi/8MBGMSFX.SF2 (or whatever soundfont you choose to use).
there is probably a neat way to do the two modprobe commands from that same 'sound' file, but I dont know the syntax.
Another choice for software synthesizer would be Timidity++, which is one solution that I've tried. You might also like Alien Bob's build. Haven't tried that last one, but, hey, it's by Alien Bob, so it'll work.
The error message of prboom mentioned that it couldn't find Timidity. So I eventually compiled it (Alien Bob's package was for version 10.2).
It took several tries till I get it configured. I could playback Midi files with Timidity using an .SF2 file but prboom couldn't playback Midi.
I eventually made Midi work inside prboom! There is a catch though. I have to execute prboom from inside the directory where I have the instruments (for me it's /usr/share/timidity/instruments). Small is the cost for the beauty of having Midi playback while playing Doom :-P
Quote:
Originally Posted by Daedra
3) load the sound font with this program from the package you installed above - asfxload ct4mgm.sf2. If you get no errors then the sound font should be installed. Now there are many different programs to use to play midi's but im going to assume you have KDE so use the program kmid, just type kmid from the run command.
I choose to compile since the linuxpackage.net's package was for version 10.2. Compiled like a charm with the Slackbuild for 12.0.
The file that you linked, ct4mgm.sf2, is not in that URL anymore. I tried with 8MBGMSFX.SF2 and Unison.sf2 and got this error:
Code:
No Emux synth hwdep device is found
So I did as tobyl suggested:
Quote:
Originally Posted by tobyl
modprobe snd_seq_midi
modprobe snd_emu10k1_synth
And after that, asfxload could load any .sf2 file. KMid works and so does Audacious.
Thank you all gyus!
P.S.: I will upgrade In a few weeks, I hope this will work on 12.1 as well :-P
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.