本文整理汇总了C++中BasePlugin::clearMidiOutputFilter方法的典型用法代码示例。如果您正苦于以下问题:C++ BasePlugin::clearMidiOutputFilter方法的具体用法?C++ BasePlugin::clearMidiOutputFilter怎么用?C++ BasePlugin::clearMidiOutputFilter使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BasePlugin
的用法示例。
在下文中一共展示了BasePlugin::clearMidiOutputFilter方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: nodePopupMenuSelected
//.........这里部分代码省略.........
if (inputLinks > 0)
menu.addItem (9, "Disconnect inputs");
if (outputLinks > 0)
menu.addItem (10, "Disconnect outputs");
menu.addItem (11, String("Rename \"") + plugin->getInstanceName() + String("\""));
menu.addItem (12, "Render stem", true, plugin->getBoolValue(PROP_RENDERSTEM, false)); // only allow changing this if stems aren't rendering right now (i.e. files aren't opened)
const int result = menu.show();
switch (result)
{
case 1: // Open editor
{
owner->openPluginEditorWindow (plugin);
break;
}
case 2: // set preferred editor
plugin->setValue(PROP_WINDOWPREFERGENERIC, !plugin->getBoolValue(PROP_WINDOWPREFERGENERIC, false));
break;
case 12: // set stem render option
plugin->setValue(PROP_RENDERSTEM, !plugin->getBoolValue(PROP_RENDERSTEM, false));
break;
case 3: // Close
{
if (owner->isPluginEditorWindowOpen (plugin))
owner->closePluginEditorWindow (plugin);
if (plugin)
{
host->closePlugin (plugin);
selectedNodes.deselect (node);
deletePluginNode (node);
graphChanged ();
}
break;
}
case 4: // Lock / unlock
{
bool lockedState = ! node->isLocked ();
if (plugin)
plugin->setValue (PROP_GRAPHLOCKED, lockedState);
node->setLocked (lockedState);
node->repaint ();
}
break;
case 5: // Mute
{
if (plugin)
plugin->setMuted (! plugin->isMuted());
}
break;
case 6: // Bypass
{
if (plugin)
plugin->setBypass (! plugin->isBypass());
}
break;
case 7: // Solo (TODO)
break;
case 8: // Disconnect all
node->breakAllLinks();
break;
case 9: // Disconnect inputs
node->breakInputLinks();
break;
case 10: // Disconnect outputs
node->breakOutputLinks();
break;
case 11: // Rename instance
{
TextEditor instanceName(String("renamePluginInstance"));
instanceName.setSize(400, 30);
instanceName.setText(plugin->getInstanceName());
DialogWindow::showModalDialog(String("Rename " + plugin->getInstanceName()), &instanceName, node, Colours::yellow, true);
String newName = instanceName.getText();
if (newName.isNotEmpty())
setNodeDisplayName(plugin, node, newName);
}
break;
case 1020:
plugin->clearMidiOutputFilter();
break;
case 2020:
plugin->clearSynthInputFilter();
break;
default:
if (result >= 1001 && result <= 1016)
plugin->setMidiOutputChannelFilter(result - 1000);
if (result >= 2001 && result <= 2016)
plugin->setSynthInputChannelFilter(result - 2000);
break;
}
currentClickedNode = 0;
}