Example #1
0
bool MidiPort::setHwCtrlStates(int ch, int ctrl, int val, int lastval)
{
	// This will create a new value list if necessary, otherwise it returns the existing list.
	MidiCtrlValList* vl = addManagedController(ch, ctrl);

	return vl->setHwVals(val, lastval);
}
Example #2
0
MidiPort::MidiPort()
: _state("not configured")
{
    _defaultInChannels = 0;
    _defaultOutChannels = 0;
    _device = 0;
    _instrument = 0;
    _controller = new MidiCtrlValListList();
    _foundInSongFile = false;
    _patchSequences = QList<PatchSequence*>();
    m_portId = create_id();

    //
    // create minimum set of managed controllers
    // to make midi mixer operational
    //
    for (int i = 0; i < kMaxMidiChannels; ++i)
    {
        addManagedController(i, CTRL_PROGRAM);
        addManagedController(i, CTRL_VOLUME);
        addManagedController(i, CTRL_PANPOT);
    }
}
Example #3
0
bool MidiPort::setHwCtrlState(int ch, int ctrl, int val)
{
	MidiCtrlValList* vl = addManagedController(ch, ctrl);

	return vl->setHwVal(val);
}