| 1 |
.TH JUKEBOX 1 "27 August 1993" |
| 2 |
.SH NAME |
| 3 |
jukebox \- play a list of sounds (songs) |
| 4 |
.SH SYNOPSIS |
| 5 |
.B jukebox |
| 6 |
[-afhlqrsv] [directory\.\.\.] |
| 7 |
.SH DESCRIPTION |
| 8 |
|
| 9 |
Jukebox is a small program that plays a list of songs on the host of your |
| 10 |
choice, using Mark Boyns' |
| 11 |
.B rplay |
| 12 |
library. This allows you to listen to some background music while you are working or doing anything else. |
| 13 |
|
| 14 |
There are two ways to build a list of songs : you may use the |
| 15 |
.B \-f |
| 16 |
option followed by a file name which contains a list of song |
| 17 |
names (like rplay.conf), or you may simply give the name of a directory. |
| 18 |
All the \.au files in this directory will be added to the list. |
| 19 |
|
| 20 |
While the jukebox is playing, you may skip a song with |
| 21 |
.I Ctrl\-C. |
| 22 |
This will stop the current song and play the next one. You may also use |
| 23 |
.I Ctrl\-Z, |
| 24 |
which will stop both the current song and the jukebox. Once the jukebox |
| 25 |
has been stopped with a |
| 26 |
.I Ctrl\-Z, |
| 27 |
you may continue with the next song : use |
| 28 |
.B fg |
| 29 |
or whatever your shell needs to restart a stopped process. If you want |
| 30 |
to terminate the process, use |
| 31 |
.B kill XXX |
| 32 |
or |
| 33 |
.B kill \-HUP XXX, |
| 34 |
where XXX is the process number of the jukebox. |
| 35 |
.SH OPTIONS |
| 36 |
.TP |
| 37 |
.B \-h hostname[:hostname\.\.\.] |
| 38 |
Play sounds on this or all of these hosts. |
| 39 |
This option will override the default host defined by the |
| 40 |
.B RPLAY_HOST |
| 41 |
environment variable. |
| 42 |
.TP |
| 43 |
.B \-f <name> |
| 44 |
Take a list of sounds from the file |
| 45 |
.B <name>. |
| 46 |
This file should contain one sound name per line. You may supply several |
| 47 |
lists of songs, each one preceded by the \-f flag. |
| 48 |
.TP |
| 49 |
.B \-l |
| 50 |
Loop mode. The jukebox will keep on playing until stopped with a |
| 51 |
Ctrl-Z or another signal. |
| 52 |
.TP |
| 53 |
.B \-a |
| 54 |
Play the songs in alphabetical order (file names). |
| 55 |
This might be useful if the file names begin with the name of |
| 56 |
the artist or group, for example. |
| 57 |
.TP |
| 58 |
.B \-r |
| 59 |
Play the songs in a random order. If the jukebox is in loop mode, |
| 60 |
a new list (in a different order) will be created each time the jukebox |
| 61 |
reaches the last song. |
| 62 |
.TP |
| 63 |
.B \-q |
| 64 |
Quiet mode. Suppresses output except for error messages. |
| 65 |
.TP |
| 66 |
.B \-s <n> |
| 67 |
Sleep between songs ( |
| 68 |
.B <n> |
| 69 |
is in milliseconds and may be negative). |
| 70 |
If you give a negative number, the two songs will be superimposed. |
| 71 |
You may use this option to create a "fade in / fade out" effect (see examples below). |
| 72 |
.TP |
| 73 |
.B \-v <n> |
| 74 |
Change the default play volume. |
| 75 |
.SH EXAMPLES |
| 76 |
.LP |
| 77 |
Suppose you have several directories named "songs/XXX", where "XXX" is |
| 78 |
the name of some artist or group. If you want to play some music on |
| 79 |
"verif1" (replace this with the name of your host), you might type |
| 80 |
something like this : |
| 81 |
.IP |
| 82 |
.B "jukebox -h verif1 -r -s -4000 songs/*" |
| 83 |
.PP |
| 84 |
This will play all the songs from these directories, taken in a random |
| 85 |
order. There is also a "negative delay" of 4 seconds. If all the songs |
| 86 |
begin with a "fade in" and end with a "fade out", you will get a pretty |
| 87 |
good effect. |
| 88 |
|
| 89 |
If you want to play your favourite songs over and over on the default host, |
| 90 |
you could type : |
| 91 |
.IP |
| 92 |
.B "jukebox -l -q songs/kate_bush songs/queen songs/rem ..." |
| 93 |
.PP |
| 94 |
(By the way, it is simpler to go in the "songs" directory to type these |
| 95 |
commands as the paths would be shorter, but this is only an example). |
| 96 |
Here, the |
| 97 |
.B \-q |
| 98 |
option is used to suppress all normal output. You can then use the jukebox |
| 99 |
as a background job if you are short of terminals. |
| 100 |
|
| 101 |
You may also put the names of your favorite songs in a file, and use this |
| 102 |
file with the |
| 103 |
.B \-f |
| 104 |
option. You may even create several files and use them in any |
| 105 |
order, like this : |
| 106 |
.IP |
| 107 |
.B "jukebox -f rock_n_roll -f pop_music songs/rap ..." |
| 108 |
.PP |
| 109 |
In this example, the songs are taken from the files "rock_n_roll" and |
| 110 |
"pop_music", but also from the directory "songs/rap". |
| 111 |
|
| 112 |
.SH "SEE ALSO" |
| 113 |
.BR rplay (1), |
| 114 |
.BR rplayd (1), |
| 115 |
.BR rplay.conf (5) |
| 116 |
.SH AUTHOR |
| 117 |
This program was written by Raphael Quinet (University of Liege, Belgium) |
| 118 |
He can be reached by E-mail as follows: |
| 119 |
.RS |
| 120 |
|
| 121 |
.B [email protected] |
| 122 |
|
| 123 |
.RE |
| 124 |
The |
| 125 |
.B jukebox |
| 126 |
program makes use of Mark Boyns' |
| 127 |
.B rplay |
| 128 |
package which can play multiple sounds on remote machines. |
| 129 |
.br |
| 130 |
He can be reached by E-mail as follows: |
| 131 |
.RS |
| 132 |
|
| 133 |
.B [email protected] |
| 134 |
.RE |
| 135 |
.SH BUGS |
| 136 |
You have to supply the full pathnames in the sound lists. |
| 137 |
|
| 138 |
The program's timer doesn't expect the sounds to be delayed in |
| 139 |
any way while they are playing. This leads to disastrous effects |
| 140 |
if the song has to be fetched from another server or if someone |
| 141 |
pauses the audio device. |
| 142 |
|