Small daemon to automatically connect MIDI devices to FluidSynth.
This repository has been archived on 2022-11-24. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
  • C 81.1%
  • CMake 15.8%
  • Shell 3.1%
Find a file
2018-12-19 22:13:48 +10:00
cmake Truncate history before public release 2018-12-19 22:04:33 +10:00
CMakeLists.txt Truncate history before public release 2018-12-19 22:04:33 +10:00
COPYING Truncate history before public release 2018-12-19 22:04:33 +10:00
pimidid.c Minor cleanups 2018-12-19 22:13:48 +10:00
pimidid.h Minor cleanups 2018-12-19 22:13:48 +10:00
pimidid.openrc Truncate history before public release 2018-12-19 22:04:33 +10:00
pimididd.c Minor cleanups 2018-12-19 22:13:48 +10:00
README.md Truncate history before public release 2018-12-19 22:04:33 +10:00

pimidid

Small daemon to automatically connect MIDI devices to FluidSynth.

pimidid does the following:

  • At startup, connect all readable ports.
  • When a udev kernel add event from the sound subsystem is received, get the card id and connect all its readable ports.
  • When a SIGHUP is received, connect all readable ports.

Before each of the above conditions, rescan for the FluidSynth port in case its id has changed.

Usage

pimidid

Installation

This has only been used with OpenRC.

  • Make sure you have a FluidSynth daemon running, with the name fluidsynth. Edit pimidid.openrc if you don't.
  • Compile the application and stick it at /usr/sbin/pimidid
  • Copy pimidid.openrc to /etc/init.d/pimidid
  • Add the service: rc-update add pimidid default
  • Start the service: rc-service pimidid start

License

This project is licensed under the GNU General Public License v2.0 only:

Copyright © 2018 Zane van Iperen

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.


This project uses portions of alsa-utils which is licensed under the GNU General Public License v2.0 or later.