Improve man page.

This commit is contained in:
augustss 1998-08-13 18:26:36 +00:00
parent e829016cba
commit 15bc968ee1
2 changed files with 21 additions and 31 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: midiplay.1,v 1.2 1998/08/12 21:49:38 augustss Exp $
.\" $NetBSD: midiplay.1,v 1.3 1998/08/13 18:26:36 augustss Exp $
.\" Copyright (c) 1998 The NetBSD Foundation, Inc.
.\" All rights reserved.
.\"
@ -55,37 +55,27 @@ command plays MIDI files using the sequencer device.
If no file name is given it will play from standard input, otherwise
it will play the named files.
.Pp
The
.Fl d
flag gives the number of the MIDI device used for output (as listed
The program accepts the following options:
.Bl -tag -width Fl
.It Fl d Ar devno
specifies the number of the MIDI device used for output (as listed
by the
.Fl l
flag). The default is device 0.
.Pp
The
.Fl f
flag can be used to name the sequencer device.
.Pp
The
.Fl l
flag is used to list the possible devices without playing anything.
.Pp
The
.Fl m
flag will show MIDI file meta events (copyright, lyrics, etc).
.Pp
The
.Fl t
flag can be used to change the tempo of the playing. The default
tempo is 100.
.Pp
The
.Fl v
flag makes the program verbose.
.Pp
The
.Fl x
file will play a small sample sound.
.It Fl f Ar file
specifies the name of the sequencer device.
.It Fl l
list the possible devices without playing anything.
.It Fl m
show MIDI file meta events (copyright, lyrics, etc).
.It Fl q
specifies that the MIDI file should not be played, justed parsed.
.It Fl t Ar tempo
specifies the tempo. The default tempo is 100.
.It Fl v
be verbose. If the flag is repeated the verbosity increases.
.It Fl x
play a small sample sound.
.Sh FILES
.Bl -tag -width /dev/music
.It Pa /dev/music

View File

@ -1,4 +1,4 @@
/* $NetBSD: midiplay.c,v 1.4 1998/08/13 17:20:07 augustss Exp $ */
/* $NetBSD: midiplay.c,v 1.5 1998/08/13 18:26:36 augustss Exp $ */
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -520,7 +520,7 @@ main(argc, argv)
}
midireset();
if (example)
playdata(sample, sizeof sample, "<Sample>");
playdata(sample, sizeof sample, "<Gubben Noa>");
else if (argc == 0)
playfile(stdin, "<stdin>");
else