[SuSE Linux] Play Music from Command Line
Hello everyone:-) I've been playing a bit with the 'play' command and have discovered that it can only do .wav files:-( I've got my linux box set up so that it runs in linux during the daylight hours and then around 3:00am it reboots into OS/2. The reason for that is because I have developed a rexx script in os/2 that in essence turns the computer into an alarm clock by randomly playing .wav and .mid files, whereever they may be (a maintenance script locates the files and stores their locations, and then the alarm script just reads the file and selects a file (much like fortunes in linux)). I would like to do the same thing in linux, but have been unable to find anything that can play the .mid files. On the dos/os2 portion of my box, most of the music files are in either .wav or .mid format, and of course, linux seems to have a pretty good selection of .au and .raw files. I can put together something to locating and selecting what files to play, but the play part is what I've been having problems with. Does anybody know of an application that I can use that will play most of the more popular music formats from the commandline? Thanx Loads! -- cya l8r Leon McClatchey leonmcclatchey@homemail.com Linux User 78912 (Win95 Box) - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
Leon, You know that Linux has a REXX interperter also! So you could rewrite those scripts a little and copy wavs and mids to Linux (lots of command line utils to play them). Such as "wavplay" it is on the SuSE CD and under All about Sound in YaST. -- Carl Johnson Sys Admin cjs@cj-solutions.com |_| |_| | |\/--- | |\ | | | \/ | NIKE | | | \| |__| /\ |______| _______________ ____ | OH SHIT IT's | |..| --| LINUX!!! | |__| |_______________| |\/| icro$oft "Watch Linux walk all over Micro$oft" | | /||\ /\ - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
Carl Johnson wrote:
Hmm, thanx, I did see somewhere something about rexx being available for linux and if that version has the same capabilities as the version for OS/2, it would simplify things quite a bit, since in os2 I made use of some library calls to adjust the volumn and play the music rather than using the "play" command from the commandline. If I am able to do that, then that would actually suit my purposes a lot easier as it would give me more control over volumn and determining (as I did in os2) when to exit the script (the library calls returned the effective playtime of the sound) and all I had to do was to maintain a running count until "45 minutes" has been exceeded:-) It also allowed me to generate some statistics as far as play time vs file size:-) I'll have to check into wavplay and see what that is all about:-) Is it also available in Suse 5.1 which I am currently running? I did discover (at least with the play command) that it doesn't really matter where the .wav file is, it will play anyway (I was playing some of the desktop sounds in a hpfs partition:-) Thanx Loads! -- cya l8r Leon McClatchey leonmcclatchey@homemail.com Linux User 78912 (Win95 Box) - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
Hi, On Sat, 12 Dec 1998, Leon McClatchey wrote:
Does anybody know of an application that I can use that will play most of the more popular music formats from the commandline?
Take a look at esd. I know it's associated with an Enlightened desktop, but it will also play things from the command line and can interface with other sound programs. It supports waves natively. Timidity will let you play midi files from the command line. Mpg123 is a good console app for playing mp3 files. If none of these suit you, you might want to try freshmeat search. Later, -M - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
Michael Johnson wrote:
Timidity will let you play midi files from the command line.
I tried to get Timidity, but all the links that I reached on the internet kept heading into a deadend. The message being that it is no longer online? Is there another source I can get it at?
If none of these suit you, you might want to try freshmeat search.
I hate to sound like a newbie:-) But just what is a freshmeat search? I've searched for midiplayers and I've located "playmidi" but it requires a ncurses library and apparently the ncurses library that ships with suse 5.1 doesn't have the correct library? Thanx Loads:-) -- cya l8r Leon McClatchey leonmcclatchey@homemail.com Linux User 78912 (Win95 Box) - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
On Wed, 16 Dec 1998, Leon McClatchey wrote:
I just got a recent one a few days ago. Try <A HREF="http://www.netspace.net.au/~ggt"><A HREF="http://www.netspace.net.au/~ggt</A">http://www.netspace.net.au/~ggt</A</A>>
If none of these suit you, you might want to try freshmeat search. I hate to sound like a newbie:-) But just what is a freshmeat search?
I just meant go to freshmeat at <A HREF="http://www.freshmeat.net"><A HREF="http://www.freshmeat.net</A">http://www.freshmeat.net</A</A>> and use the 'quicksearch' function, i.e, put in a keyword and see what apps it spits out. No doubt you'll find this site indispensable and a real time saver in being alerted of new apps. -M - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
participants (3)
-
cjs@imt.net
-
hekate@intergate.bc.ca
-
leonmcclatchey@homemail.com