MIDICAT(1) General Commands Manual MIDICAT(1)

# [NAME](#NAME)

`midicat` — send to or receive from MIDI ports

# [SYNOPSIS](#SYNOPSIS)

`midicat` \[`-d`] \[`-i` `file`] \[`-o` `file`] \[`-q` `port`]

# [DESCRIPTION](#DESCRIPTION)

The `midicat` utility receives MIDI data from the given input MIDI port and/or sends it to the given output MIDI port. The options are as follows:

[`-d`](#d)

Dump transferred data in hex on stderr.

[`-i`](#i) `file`

Read MIDI data from this file instead of receiving it from the MIDI port. If the option argument is ‘-’ then standard input will be used.

[`-o`](#o) `file`

Write MIDI data to this file instead of sending it to the MIDI port. If the option argument is ‘-’ then standard output will be used.

[`-q`](#q) `port`

Use this [sndio(7)](/man/os/sndio/sndio.7) MIDI port for input/output. If the option is used twice, the first one specifies the input port and the second one the output port.

If no files are specified, then `midicat` transfers data from the MIDI input port to the MIDI output port.

# [EXAMPLES](#EXAMPLES)

Send the given file to rmidi/0:

```
$ midicat -i file.syx -q rmidi/0
```

Dump data received from rmidi/0 to stderr:

```
$ midicat -d -q rmidi/0 -o /dev/null
```

Send data from rmidi/0 to midithru/0:

```
$ midicat -q rmidi/0 -q midithru/0
```

# [SEE ALSO](#SEE_ALSO)

[midi(4)](/man/os/sndio/midi.4), [sndio(7)](/man/os/sndio/sndio.7), [sndiod(8)](/man/os/sndio/sndiod.8)

Linux 4.19.0-gvisor

---

Document: midicat(1) from sndio 1.10.0-r10 (Chainguard OS)
Source: https://github.com/ratchov/sndio
