void Processor::setBufferLength (PortType type, nframes_t len) { for (int n = 0; n < portCount(); ++n) { Port* p = port(n); if (p->type() == type) { p->setBufferLength(len); } } }
const QSet<Node* const> Lv2Plugin::dependents () const { QSet<Node* const> n; int count = portCount(); for (int i=0; i<count; ++i) { Port* p = port(i); if (p->direction() == Output) { n += p; } } return n; }
const QSet<Node* const> Processor::dependencies () const { QSet<Node* const> n; int count = portCount(); for (int i=0; i<count; ++i) { Port* p = port(i); if (p->direction() == Input) { n += p; } } return n; }