Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/midirecord - this is midirecord(1) not midiorecord(1)



details:   https://anonhg.NetBSD.org/src/rev/216ea277af0a
branches:  trunk
changeset: 335230:216ea277af0a
user:      mrg <mrg%NetBSD.org@localhost>
date:      Tue Dec 30 18:52:47 2014 +0000

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

diffstat:

 usr.bin/midirecord/midirecord.1 |  15 +++++++++++----
 usr.bin/midirecord/midirecord.c |   6 +++---
 2 files changed, 14 insertions(+), 7 deletions(-)

diffs (76 lines):

diff -r 5dd261741989 -r 216ea277af0a usr.bin/midirecord/midirecord.1
--- a/usr.bin/midirecord/midirecord.1   Tue Dec 30 18:29:20 2014 +0000
+++ b/usr.bin/midirecord/midirecord.1   Tue Dec 30 18:52:47 2014 +0000
@@ -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 @@
 .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 @@
 .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
diff -r 5dd261741989 -r 216ea277af0a usr.bin/midirecord/midirecord.c
--- a/usr.bin/midirecord/midirecord.c   Tue Dec 30 18:29:20 2014 +0000
+++ b/usr.bin/midirecord/midirecord.c   Tue Dec 30 18:52:47 2014 +0000
@@ -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 @@
        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++;



Home | Main Index | Thread Index | Old Index