Module Name:    src
Committed By:   mrg
Date:           Tue Dec 30 18:52:47 UTC 2014

Modified Files:
        src/usr.bin/midirecord: midirecord.1 midirecord.c

Log Message:
- this is midirecord(1) not midiorecord(1)
- add the -o handling to the getopt() and man page
- bump date


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/usr.bin/midirecord/midirecord.1
cvs rdiff -u -r1.3 -r1.4 src/usr.bin/midirecord/midirecord.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/midirecord/midirecord.1
diff -u src/usr.bin/midirecord/midirecord.1:1.2 src/usr.bin/midirecord/midirecord.1:1.3
--- src/usr.bin/midirecord/midirecord.1:1.2	Tue Dec 30 12:10:07 2014
+++ src/usr.bin/midirecord/midirecord.1	Tue Dec 30 18:52:47 2014
@@ -1,4 +1,4 @@
-.\"	$NetBSD: midirecord.1,v 1.2 2014/12/30 12:10:07 wiz Exp $
+.\"	$NetBSD: midirecord.1,v 1.3 2014/12/30 18:52:47 mrg Exp $
 .\"
 .\" Copyright (c) 1998, 1999, 2001, 2002, 2010 Matthew R. Green
 .\" All rights reserved.
@@ -24,15 +24,15 @@
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
-.Dd December 29, 2014
+.Dd December 30, 2014
 .Dt MIDIRECORD 1
 .Os
 .Sh NAME
-.Nm midiorecord
+.Nm midirecord
 .Nd record midi files
 .Sh SYNOPSIS
 .Nm
-.Op Fl aDfhqV
+.Op Fl aDfhoqV
 .Op Fl B Ar buffersize
 .Op Fl c Ar channels
 .Op Fl d Ar devices
@@ -49,6 +49,10 @@ program converts the sequencer events re
 .Ar sequencerdev
 to the named MIDI SMF output.
 If the file name is \-, output will go to the standard output.
+By default, timing for events begins with the first event.
+The
+.Fl o
+flag may be used to start timing events at the process start up.
 .Sh OPTIONS
 The following options are available:
 .Bl -tag -width XnXnotesperbeatX
@@ -78,6 +82,9 @@ Print a help message.
 .It Fl n Ar notesperbeat
 Sets the MIDI notes (clocks) per beat to
 .Ar notesperbeat .
+.It Fl o
+Start the relative timer at process start up instead of at
+the first event.
 .It Fl q
 Be quiet.
 .It Fl r Ar raw_output

Index: src/usr.bin/midirecord/midirecord.c
diff -u src/usr.bin/midirecord/midirecord.c:1.3 src/usr.bin/midirecord/midirecord.c:1.4
--- src/usr.bin/midirecord/midirecord.c:1.3	Tue Dec 30 12:14:34 2014
+++ src/usr.bin/midirecord/midirecord.c	Tue Dec 30 18:52:47 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: midirecord.c,v 1.3 2014/12/30 12:14:34 wiz Exp $	*/
+/*	$NetBSD: midirecord.c,v 1.4 2014/12/30 18:52:47 mrg Exp $	*/
 
 /*
  * Copyright (c) 2014 Matthew R. Green
@@ -33,7 +33,7 @@
 #include <sys/cdefs.h>
 
 #ifndef lint
-__RCSID("$NetBSD: midirecord.c,v 1.3 2014/12/30 12:14:34 wiz Exp $");
+__RCSID("$NetBSD: midirecord.c,v 1.4 2014/12/30 18:52:47 mrg Exp $");
 #endif
 
 #include <sys/param.h>
@@ -106,7 +106,7 @@ main(int argc, char *argv[])
 	size_t	bufsize = 0;
 	int	ch, no_time_limit = 1;
 
-	while ((ch = getopt(argc, argv, "aB:c:Dd:f:hn:qr:t:T:V")) != -1) {
+	while ((ch = getopt(argc, argv, "aB:c:Dd:f:hn:oqr:t:T:V")) != -1) {
 		switch (ch) {
 		case 'a':
 			aflag++;

Reply via email to