LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 09-04-2007, 01:19 AM   #16
cwizardone
Senior Member
 
Registered: Feb 2007
Distribution: Slackware64-current & "True Multilib." PC-BSD.
Posts: 2,225

Original Poster
Rep: Reputation: 176Reputation: 176

Quote:
Originally Posted by dugan View Post
Okay, people, here's a one-stop solution for getting MIDI to work:

http://www.vcn.bc.ca/~dugan/timidity/ ...
Thank you very much! That worked perfectly.
You did a great job putting that solution together!
Thanks, again.
 
Old 09-04-2007, 11:00 AM   #17
MannyNix
Member
 
Registered: Dec 2005
Location: ~
Distribution: Slackware -current, OpenBSD
Posts: 449

Rep: Reputation: 41
Thanks dugan, Nice job!
I wish there was a TiMidity++.SlackBuild @ slackbuilds.org too, so we could say:
Code:
<program> depends on <program> (mandatory) and TiMidity++ (optional), both of
which are available from slackbuilds.org.
Probably easier for users to download everything from the same place.
Any takers?
 
Old 09-04-2007, 05:37 PM   #18
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,611

Rep: Reputation: 1414Reputation: 1414Reputation: 1414Reputation: 1414Reputation: 1414Reputation: 1414Reputation: 1414Reputation: 1414Reputation: 1414Reputation: 1414
Hey thanks people. Glad it worked!

I don't think my SlackBuild fits SlackBuilds.org's style, so putting a TiMidity++ SlackBuild on SlackBuilds.org is a project I'll leave for someone else.

Last edited by dugan; 09-04-2007 at 05:57 PM.
 
Old 05-02-2009, 06:42 PM   #19
cwizardone
Senior Member
 
Registered: Feb 2007
Distribution: Slackware64-current & "True Multilib." PC-BSD.
Posts: 2,225

Original Poster
Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by dugan View Post
Hey thanks people. Glad it worked!

I don't think my SlackBuild fits SlackBuilds.org's style, so putting a TiMidity++ SlackBuild on SlackBuilds.org is a project I'll leave for someone else.
It has been almost two years and back then Dugan's instructions worked
perfectly, but today I tried it again and wasn't as lucky.
The package appeared to build correct, i.e., I didn't see any errors and there were no errors on installation.
I edited the rc.local file in /etc/rc.d as per the instructions, but upon rebooting I got an error message that the rc.timidity file cannot be found. I looked and that is correct, it doesn't exist.

How do I create the rc.timidity file?

Thanks.
 
Old 05-02-2009, 08:29 PM   #20
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-14.1
Posts: 1,216

Rep: Reputation: 177Reputation: 177
I used timidity for years but lately I have been having more issues with it than successes, plus its hardly updated anymore, in fact nothing major has been updated in years, I recently switched to fluidsynth and it works 100%, the only real difference it relies more on soundfonts but it works pretty much the same as timidity. here is the slackbuilds page

http://slackbuilds.org/repository/12...io/fluidsynth/

After you compile and install all you will need to make it work is a soundfont, think of a soundfont as a regular font but instead you get different "sounds" with each different fonts. A good all purpose soundfont is the one that is supplied by creative for there Soundblaster series of soundcards, here is a link

http://www.alsa-project.org/~james/s...s/8MBGMSFX.SF2

Once you have the soundfont you can now launch fluidsynth. The best way is to run fluidsynth in server mode with the following command

fluidsynth -m alsa_seq /*pathtofont*/Soundfont/8MBGMSFX.SF2

Just like timidity this will assign port 128:0 for midi which you can set in audacious or various other players for midi playback. After you get it working you can then play around with different soundfonts to get different playback with your midis.

GOOD LUCK
 
Old 06-26-2009, 11:59 PM   #21
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,611

Rep: Reputation: 1414Reputation: 1414Reputation: 1414Reputation: 1414Reputation: 1414Reputation: 1414Reputation: 1414Reputation: 1414Reputation: 1414Reputation: 1414
Quote:
Originally Posted by cwizardone View Post
It has been almost two years and back then Dugan's instructions worked perfectly, but today I tried it again and wasn't as lucky. The package appeared to build correct, i.e., I didn't see any errors and there were no errors on installation. I edited the rc.local file in /etc/rc.d as per the instructions, but upon rebooting I got an error message that the rc.timidity file cannot be found. I looked and that is correct, it doesn't exist.
I just saw this. Hence the late reply.

When I saw it, I immediately retested the SlackBuild (on Slackware 12.2). It worked. The rc.timidity script (which is contained in the SlackBuild) got installed in /etc/rc.d and was executable. Entering /etc/rc.d/rc.timidity start then started TiMidity++ in Alsa server mode.

I don't know what happened when you tried it, but I don't think i will happen again.
 
Old 06-27-2009, 12:28 AM   #22
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-14.1
Posts: 1,216

Rep: Reputation: 177Reputation: 177
Quote:
Originally Posted by dugan View Post
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.
I use Dugan's slackbuild and +1 for tested and works.

However I did try it with current a few months back I was getting alsa errors when using alsa_seq, but today I used the patches from the slackbuilds.org version and manually added them to your buildscript and it started working again, just FYI.
 
Old 06-27-2009, 09:26 PM   #23
cwizardone
Senior Member
 
Registered: Feb 2007
Distribution: Slackware64-current & "True Multilib." PC-BSD.
Posts: 2,225

Original Poster
Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by dugan View Post
I just saw this. Hence the late reply.

When I saw it, I immediately retested the SlackBuild (on Slackware 12.2). It worked. The rc.timidity script (which is contained in the SlackBuild) got installed in /etc/rc.d and was executable. Entering /etc/rc.d/rc.timidity start then started TiMidity++ in Alsa server mode.

I don't know what happened when you tried it, but I don't think i will happen again.
Dugan,
Thanks for taking the time to reply.
I downloaded fresh copies of the SlackBuild and the Source, but regret to report that upon trying again, the results were that same,
that is, the rc.timidity script was not created and, btw, it is not contained in the SlackBuild.
Perhaps, if it isn't too long, you could cut and pasted here?
Thanks for all your help.

Last edited by cwizardone; 06-27-2009 at 09:27 PM.
 
Old 06-27-2009, 10:18 PM   #24
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,611

Rep: Reputation: 1414Reputation: 1414Reputation: 1414Reputation: 1414Reputation: 1414Reputation: 1414Reputation: 1414Reputation: 1414Reputation: 1414Reputation: 1414
Quote:
Originally Posted by cwizardone View Post
I downloaded fresh copies of the SlackBuild and the Source, but regret to report that upon trying again, the results were that same, that is, the rc.timidity script was not created and, btw, it is not contained in the SlackBuild.
I can't fix the problems you're having because I can't reproduce them!

Five minutes ago, I downloaded the SlackBuild again from the first link on my webpage (under the heading of "Download the SlackBuild"). When I untarred it, these are the files it contained:
  • doinst.sh.gz
  • eawpats12_full.tar.gz.sha1
  • rc.timidity
  • README.Slackware
  • slack-desc
  • TiMidity++-2.13.2.tar.bz2.sha1
  • TiMidity++.SlackBuild
  • timidity.csh
  • timidity.sh

And btw, this is the SlackBuild tarball's md5sum:
Code:
7ac1929d6bba4ec9fb6fd5d5914ea2c0 *TiMidity++_SlackBuild.tar.bz2
Quote:
Perhaps, if it isn't too long, you could cut and pasted here?
Thanks for all your help.
Sure. This is the rc.timidity file from the tarball that I just finished downloading from my webpage and extracting:

Code:
#!/bin/sh
# Start/stop/restart the TiMidity++ ALSA server:

TIMIDITY_OPTIONS="-iAD -B2,8 -Os # -EFreverb=0 -EFchorus=0"

#Use the following for an older computer
#TIMIDITY_OPTIONS="-iAD -B2,8 -Os # -EFreverb=0 -EFchorus=0"

if [ "$1" = "stop" ]; then
  echo "Stopping TiMidity++..."
  killall timidity
elif [ "$1" = "restart" ]; then
  echo "Restarting TiMidity++..."
  killall timidity
  sleep 1
  timidity $TIMIDITY_OPTIONS
else # assume $1 = start:
  echo "Starting TiMidity++..."
  timidity $TIMIDITY_OPTIONS 
fi

Last edited by dugan; 06-27-2009 at 10:50 PM.
 
Old 06-27-2009, 10:29 PM   #25
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,611

Rep: Reputation: 1414Reputation: 1414Reputation: 1414Reputation: 1414Reputation: 1414Reputation: 1414Reputation: 1414Reputation: 1414Reputation: 1414Reputation: 1414
Argh. Duplicate post.

Last edited by dugan; 06-27-2009 at 10:33 PM.
 
Old 06-28-2009, 12:25 AM   #26
vharishankar
Senior Member
 
Registered: Dec 2003
Posts: 3,142
Blog Entries: 4

Rep: Reputation: 121Reputation: 121
I have got MIDI to work on Linux. I even compose small pieces using Rosegarden.

Here are reasonably detailed instructions for timidity:

http://harishankar.org/blog/entry.ph...-midi-on-linux

If you don't like Timidity you can also use Fluidsynth with Qsynth / Soundfonts. Qsynth is a GUI tool so it's easier for those who don't prefer messing with text files.
http://harishankar.org/blog/entry.ph...synth-in-linux

Last edited by vharishankar; 06-28-2009 at 12:28 AM.
 
Old 06-28-2009, 02:56 PM   #27
cwizardone
Senior Member
 
Registered: Feb 2007
Distribution: Slackware64-current & "True Multilib." PC-BSD.
Posts: 2,225

Original Poster
Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by dugan View Post
Five minutes ago, I downloaded the SlackBuild again from the first link on my webpage (under the heading of "Download the SlackBuild")....
Upon reading the above I realized my mistake. I wasn't using YOUR SlackBuild script, I was using the one from SlackBuild.org.
I tried again using your script and, Bingo, it worked.
Thanks very much!

Now, if I can get Firefox and/or Opera to use mozplugger. The plugin is installed but neither browser sees it for whatever reasons.
Thanks, again.

Last edited by cwizardone; 06-28-2009 at 02:57 PM.
 
Old 06-28-2009, 02:59 PM   #28
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,611

Rep: Reputation: 1414Reputation: 1414Reputation: 1414Reputation: 1414Reputation: 1414Reputation: 1414Reputation: 1414Reputation: 1414Reputation: 1414Reputation: 1414
I actually haven't tested Mozplugger since Firefox 2, but did you remember to delete Firefox's pluginreg.dat file?
 
Old 06-29-2009, 05:39 PM   #29
cwizardone
Senior Member
 
Registered: Feb 2007
Distribution: Slackware64-current & "True Multilib." PC-BSD.
Posts: 2,225

Original Poster
Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by dugan View Post
I actually haven't tested Mozplugger since Firefox 2, but did you remember to delete Firefox's pluginreg.dat file?
I did, but it didn't make a difference.

Last edited by cwizardone; 06-29-2009 at 10:46 PM.
 
Old 06-29-2009, 09:36 PM   #30
Erik_FL
Member
 
Registered: Sep 2005
Location: Boynton Beach, FL
Distribution: Slackware
Posts: 797

Rep: Reputation: 247Reputation: 247Reputation: 247
I was able to get Dugan's package to work, once. As soon as I rebooted the synthesizer would not play anything (no sound). I manually stopped and restarted timidity and still no sound. The player seems to be playing and has the timidity channel 0 selected.

I'm using an ASUS P6T with a Core i7 CPU at 3.65 GHz. It took me a while to get the audio working. The Mixer is still not quite right. I'm wondering if the codec is just not supported by timidity.
 
  


Reply

Tags
midi


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot play MIDI files! koolgentoo Linux - Hardware 2 07-24-2005 07:26 AM
How to play MIDI files: needed a MIDI mapper? vharishankar Linux - General 3 12-30-2004 12:12 AM
midi files Mark_Grieveson Linux - Newbie 5 11-05-2004 06:25 PM
Reading midi files. gbowden Programming 2 08-07-2004 02:42 PM
Playing MIDI files rajan_kanwar Linux - Software 1 02-05-2004 04:46 AM


All times are GMT -5. The time now is 06:15 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration