void MidiPlugin::openOutput(quint32 output) { qDebug() << "MIDI plugin open output: " << output; MidiOutputDevice* dev = outputDevice(output); if (dev != NULL) dev->open(); }
void MidiPlugin::openOutput(quint32 output) { qDebug() << "MIDI plugin open output: " << output; MidiOutputDevice* dev = outputDevice(output); if (dev == NULL) return; dev->open(); if (dev->midiTemplateName() != "") { qDebug() << "Opening device with Midi template: " << dev->midiTemplateName(); MidiTemplate* templ = midiTemplate(dev->midiTemplateName()); if (templ != NULL) sendSysEx(output, templ->initMessage()); } }