TiMidity is designed as a stand-alone application. To add to this, you should build a new “interface.” It can also be subverted to act as though it is a library that can be called. This chapter explains both ways.
TiMidity Design
TiMidity is designed as a stand-alone application. When it’s built, you get a single executable but do not get a library of functions that can be called, unlike FluidSynth, for example.
What you can do with TiMidity is to add different interfaces. For example, there are ncurses, Xaw, and dumb interfaces that can be invoked at runtime with the following, for example:
timidity -in ...