Melodi Get the app

Wi-Fi MIDI on Linux

Use PipeWire's network MIDI module or rtpmidid to receive Melodi over Wi-Fi.

Melodi sends standard network MIDI (RTP-MIDI). On Linux you can receive it with PipeWire, which most current desktops already run, or with rtpmidid, a small service that creates ALSA ports. Pick one.

  1. 1

    Option A: turn on PipeWire's network MIDI

    Check your version with pipewire --version: you need 1.0 or newer. Then create a config file:

    mkdir -p ~/.config/pipewire/pipewire.conf.d
    nano ~/.config/pipewire/pipewire.conf.d/rtp-midi.conf

    Paste this, save, and restart PipeWire:

    context.modules = [
      { name = libpipewire-module-rtp-session
        args = {
          sess.name = "Melodi"
          sess.media = "midi"
          stream.props = { node.name = "melodi-rtp-midi" }
        }
      }
    ]
    systemctl --user restart pipewire

    PipeWire now announces a session called Melodi on the network and shows a MIDI node with the same name.

  2. 2

    Option B: install rtpmidid

    If you'd rather have plain ALSA ports, install rtpmidid from its releases page (packages for Debian and Ubuntu) or your distribution's repository, then start it:

    sudo systemctl enable --now rtpmidid

    It announces itself on the network as rtpmidid and creates an ALSA sequencer client with the same name.

  3. 3

    Allow the ports through the firewall

    If a firewall is on, open UDP 5004–5005 for MIDI and 5353 for discovery. With ufw:

    sudo ufw allow 5004:5005/udp
    sudo ufw allow 5353/udp
  4. 4

    Connect from Melodi

    In Melodi, switch the top bar from Sound to MIDI. In Sound mode Melodi plays the notes itself; in MIDI mode it sends them out.

    Then tap the connection button next to it (it says Not connected for now). The MIDI connection window opens, with a card for USB and one for Wi-Fi.

    The MIDI connection window in Melodi
    MIDI connection: one card for USB, one for Wi-Fi

    Switch on the Wi-Fi card. Under Or connect to a computer, tap the session you set up (Melodi for PipeWire, rtpmidid for rtpmidid). The top bar shows Connected.

  5. 5

    Turn on the input in your music app

    With PipeWire, connect the Melodi MIDI node to your app's MIDI input in a graph tool such as qpwgraph, or in your app's own routing.

    With rtpmidid, the phone appears as a port of the rtpmidid client. Check with aconnect -l, then pick it in your app's MIDI input settings. To watch notes arrive: aseqdump -p rtpmidid.

  6. 6

    Play test notes

    Tap Play test notes at the bottom of the MIDI connection window. Melodi sends a few notes: if your music app's MIDI meter moves and you hear the instrument, everything works.

    Close the window and play. Every screen sends to the same connection, so you can switch between chord pads, keys and drum pads while you play.

Troubleshooting

The session doesn't appear in Melodi

Discovery needs the Avahi daemon: check it's running with systemctl status avahi-daemon. If it can't run on your network, tap Add by address in Melodi's Wi-Fi card and enter the computer's IP address (ip -4 addr) and port 5004.

Melodi doesn't find the computer

Check that both are on the same network: guest networks and some office or school networks keep devices apart. If you can't see the computer in Melodi's list, use Add by address in the Wi-Fi card: enter the computer's IP address and port 5004.

It connects, then drops after a while

Phones save power by switching Wi-Fi off when the screen is off. Keep the screen on while playing, and turn off battery saver for Melodi in Settings›Apps›Melodi›Battery.

Notes are late or uneven

Wi-Fi adds a few milliseconds, more on a busy network. Move closer to the router, use the 5 GHz band if your router has one, or turn on your computer's hotspot and connect the phone to it directly. For the tightest timing, use USB.

Updated October 25, 2026 · Something not working? Write to contact@melodiapp.com