ChannelManager


A ChannelManager is an object which decides how to allocate physical MIDI channels. This way, scores can be kept playing on different channels as much as possible, so they don't interfere with each other.

class ChannelManager {
public:
  ChannelManager();
  int checkout(ioref);
  void checkin(ioref, int);
};
ChannelManager()
Creates a new ChannelManager. In general, this is a bad idea; usually you only want to have one ChannelManager for the whole program.
int checkout(ioref n)
Returns the least-used channel of node n.
void checkin(ioref n, channel c)
Tells the ChannelManager that you are done with physcial channel c of node n.

Modified 27 October 1995 pepellet@mit.edu