Commit Graph

33 Commits

Author SHA1 Message Date
mrg 2235c7e9bc make a fallthru comment GCC7 compatible. 2019-02-01 08:37:21 +00:00
wiz f3452549f5 Sync usage with manpage. 2018-05-03 05:14:55 +00:00
mrg f2057d54c9 if just parsing don't try to read the uninitialised device name,
or display the unit number.

add a "-s" option that sends an ALL_SOUNDS_OFF midi event.  very
useful after an interrupted midiplay leaves notes on.
2018-05-03 01:12:57 +00:00
mrg 99baa91ed3 if not playing (-q mode), don't call ioctl() or try to use the results.
now -q mode works.
2015-03-22 22:47:43 +00:00
jmcneill 26719ba336 - accept "midi0" as an alias for "0" to the -d flag
- verify that the requested unit exists before playing
- if the verbose flag is set, print the selected device name and unit #
2011-11-25 01:39:47 +00:00
christos d0e87f5f87 - add a SYSEX0 macro that does not override the initializers and use it
- fix whitespace
- make things static and eliminate unused functions
2011-08-14 13:26:23 +00:00
lukem 9e3117efe1 fix sign-compare and cast-qual issues 2009-04-12 14:15:08 +00:00
martin ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
he cb27e76665 Um, pointer differences are ptrdiff_t, and there's already a
printf specifier for it (t), so use it instead.
2006-07-01 11:05:42 +00:00
he 1209c64644 The type for pointer difference varies between ports, on some it's
"long int" and on others "int", so cast via long and use %ld for printing.
2006-07-01 10:58:29 +00:00
chap 80f0cf5785 The rest of merge from chap-midi branch. Version of midiplay that uses the
sequencer API definitions in sys/midiio.h (so there is a use example).
These produce the same (ABI) sequencer events as the OSS macros, but in
a more strongly-typed way; OSS API macros could be built on them and added
to the OSS compatibility header sys/soundcard.h but have not been, yet.
2006-06-30 22:19:32 +00:00
jmmv b635f565e7 Homogenize usage messages: make the 'usage' word all lowercase, as this seems
to be the most common practice in our tree.
2004-01-05 23:23:32 +00:00
itojun 50847da5c5 safer use of realloc 2003-10-16 06:56:17 +00:00
salo 0f5a0c156d netbsd.org->NetBSD.org 2003-07-26 20:34:11 +00:00
agc a8d6388e6f Add NetBSD RCS Ids. 2003-06-23 13:05:47 +00:00
augustss 34592076d4 Make it play RMID files as well. From bin/20388, Quentin Garnier. 2003-02-17 18:00:27 +00:00
itojun f51456c273 err/errx/warn/warnx do not need \n at the end 2002-06-11 06:06:18 +00:00
augustss 70567d1c07 Take the default output unit from env MIDIUNIT. 2002-01-05 00:04:27 +00:00
augustss 4385e5bfc5 Don't open sequencer device if we're not going to play. 2001-11-25 12:29:52 +00:00
augustss a903cfcf86 Make -p select the right program. Fixes PR 14402, from itohy@netbsd.org. 2001-10-30 17:10:50 +00:00
tshiozak a2942d2644 fix a simple, but important bug for system exclusive messages.
(forgot to increase a pointer, if the message has over 6 bytes length.)
2001-04-07 21:03:41 +00:00
cgd a8ec668ddf convert to use getprogname() 2001-02-19 23:03:42 +00:00
augustss da048cb7d7 Cosmetic changes. 2000-08-12 22:24:51 +00:00
augustss 6751cbc746 Add a -p flag to set the MIDI program. From lindroos@nls.fi. 2000-02-18 23:03:05 +00:00
augustss 551f9b0d0c Fix timer reset bug when playing multiple songs. 1999-10-11 12:52:10 +00:00
augustss 9726cfd1fb Make the copyright header conform to the NetBSD template. 1998-11-25 22:17:06 +00:00
augustss 9fe2d0d409 Add f flag to getopt() argument. Fixes PR 6335.
From  Andreas Wrede <andreas@planix.com>
1998-10-20 20:22:09 +00:00
augustss de37abf1ef Handle SYSEX events. 1998-08-13 21:01:53 +00:00
augustss 15bc968ee1 Improve man page. 1998-08-13 18:26:36 +00:00
augustss c0c080ef14 Handle MIDI files with running status correctly. 1998-08-13 17:20:07 +00:00
augustss f99fc37d0a Fix type that prevented program and controller changes. 1998-08-13 15:19:40 +00:00
augustss c22b7aff18 Make user tempo setting more sane. 1998-08-12 21:49:38 +00:00
augustss d6f31170a4 Add a very simple MIDI player. No features, no fluff. 1998-08-12 21:39:11 +00:00