Skip to content

Commit

Permalink
mididump(1): Initial revision
Browse files Browse the repository at this point in the history
A new utility which dumps MIDI 1.0 events in real-time.

Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Reviewed by:	dev_submerge.ch
Differential Revision:	https://reviews.freebsd.org/D46418
  • Loading branch information
christosmarg committed Oct 18, 2024
1 parent 9ad2891 commit f57efe9
Show file tree
Hide file tree
Showing 4 changed files with 409 additions and 0 deletions.
1 change: 1 addition & 0 deletions usr.bin/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ SUBDIR= alias \
mandoc \
mdo \
mesg \
mididump \
ministat \
mkdep \
mkfifo \
Expand Down
8 changes: 8 additions & 0 deletions usr.bin/mididump/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.include <src.opts.mk>

PROG= mididump
SRCS= ${PROG}.c
MAN= ${PROG}.1
LDFLAGS+= -lm

.include <bsd.prog.mk>
80 changes: 80 additions & 0 deletions usr.bin/mididump/mididump.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
.\"-
.\" SPDX-License-Identifier: BSD-2-Clause
.\"
.\" Copyright (c) 2024 The FreeBSD Foundation
.\"
.\" Portions of this software were developed by Christos Margiolis
.\" <[email protected]> under sponsorship from the FreeBSD Foundation.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\" notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.Dd September 14, 2024
.Dt MIDIDUMP 1
.Os
.Sh NAME
.Nm mididump
.Nd dump MIDI events
.Sh SYNOPSIS
.Nm
.Op Fl t
.Ar device
.Sh DESCRIPTION
The
.Nm
utility is used to dump MIDI 1.0 events in real-time.
.Pp
The options are as follows:
.Bl -tag -width "-t"
.It Fl t
Print "Timing Clock" events.
These events are not printed by default, as they tend to clutter output.
.El
.Pp
The
.Ar device
argument corresponds to the MIDI device (e.g.
.Pa /dev/umidi0.0 ) .
.Sh SEE ALSO
.Rs
.%T Summary of MIDI 1.0 Messages
.%U https://midi.org/summary-of-midi-1-0-messages
.Re
.Rs
.%T Expanded MIDI 1.0 Messages List (Status Bytes)
.%U https://midi.org/expanded-midi-1-0-messages-list
.Re
.Rs
.%T Standard MIDI-File Format Spec. 1.1, updated
.%U https://www.music.mcgill.ca/~ich/classes/mumt306/StandardMIDIfileformat.html
.Re
.Rs
.%T MIDI CC List for Continuous Controllers
.%U https://anotherproducer.com/online-tools-for-musicians/midi-cc-list/
.Re
.Sh AUTHORS
The
.Nm
utility was implemented by
.An Christos Margiolis Aq Mt [email protected]
under sponsorship from the
.Fx
Foundation.
Loading

0 comments on commit f57efe9

Please sign in to comment.