LinuxQuestions.org
Review your favorite Linux distribution.
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 01-26-2013, 11:57 PM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,125

Rep: Reputation: 46
The easiest way of playing a MIDI file in a basic Linux system?


Slackware 14.0

Hi: that would be the question. I'd like to think one does not need 3rd-party software to play around with MIDI, precisely because of its old. If the answer is complicated, I can provide further data.

EDIT: as a matter of fact, alsa-utils package provides some support:
Code:
semoi@darkstar:~/sma_/info/clear$ apropos midi
amidi []             (1)  - read from and write to ALSA RawMIDI ports
aplaymidi []         (1)  - play Standard MIDI Files
arecordmidi []       (1)  - record Standard MIDI Files
semoi@darkstar:~/sma_/info/clear$
The great pity is I do not have MPU401 output connector in the machine rear panel.

Last edited by stf92; 01-27-2013 at 12:05 AM.
 
Old 01-27-2013, 12:07 AM   #2
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-14.1
Posts: 1,222

Rep: Reputation: 177Reputation: 177
Your best bet is to check out timidity or fluidsynth. Both are available over at www.slackbuilds.org Yes its 3rd party software, but both are really easy to install and use.
 
1 members found this post helpful.
Old 01-27-2013, 12:09 AM   #3
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,252

Rep: Reputation: 631Reputation: 631Reputation: 631Reputation: 631Reputation: 631Reputation: 631
I use TiMidity++ with eawpats (built using SlackBuilds from slackbuilds.org). Then you can just play MIDI files using `timidity file.mid`. MIDI may be old, but even on Windows systems playing MIDI files without dedicated hardware has always required some work (I don't know about more recent versions of Windows, though).
 
1 members found this post helpful.
Old 01-27-2013, 12:11 AM   #4
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,125

Original Poster
Rep: Reputation: 46
In another computer I do have MPU401 output connector. Do you know a command line, assuming ALSA is correctly installed, for sending a .mid file to the connector?
 
Old 01-27-2013, 12:12 AM   #5
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,125

Original Poster
Rep: Reputation: 46
Quote:
Originally Posted by T3slider View Post
I use TiMidity++ with eawpats (built using SlackBuilds from slackbuilds.org). Then you can just play MIDI files using `timidity file.mid`. MIDI may be old, but even on Windows systems playing MIDI files without dedicated hardware has always required some work (I don't know about more recent versions of Windows, though).
Windows would be no problem for me, as I have an OPL3SA Yamaha card, and the Yamaha software to drive it. But I did not want to fall back on windows. This, on the machine I am not using.

Last edited by stf92; 01-27-2013 at 12:14 AM.
 
Old 01-27-2013, 12:59 AM   #6
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,125

Original Poster
Rep: Reputation: 46
Success: Timidity + eawpats. But I found I must rewrite the file if I want another tempo (speed). I think it plays everything 1 fourth = 120.
 
Old 01-28-2013, 02:35 AM   #7
andrew.46
Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 646

Rep: Reputation: 90
Not exactly part of Slackware but if your copy of vlc is compiled with libfluidsynth and you have access to a soundfont vlc will play midi files well enough. Same for audacious...
 
Old 01-28-2013, 08:20 AM   #8
WiseDraco
Member
 
Registered: Nov 2006
Location: Europe,Latvia,Riga
Distribution: slackware,slax, exMandriva
Posts: 381

Rep: Reputation: 30
what good sound cards work on linux for playing midi ( with patch-sets)? a long time ago i buyed Gravis Ultrasound PnP, put into it 5 Mb of RAM ( 30 pinn SIMM modules, not as easy to get), upload a sound bank and have a very beautiful midi music in duke nukem 3d, doom, etc... whats about something like that now in modern linux? old SB AWE32 / 64, modern creative soundcarts on PCI, who is recommended and work in that manner?
 
  


Reply


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
[SOLVED] SOLVED: No system sounds or midi file playback in Zenwalk 6.4 kamusician Zenwalk 1 01-30-2011 05:03 PM
Playing midi on linux using C/C++ jaristr Programming 1 07-04-2006 07:55 PM
playing a midi file in java linuxmandrake Programming 1 03-18-2006 01:22 PM
What package for playing CD and midi file satimis Linux From Scratch 25 09-30-2005 09:57 PM


All times are GMT -5. The time now is 10:48 PM.

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