Example #1
0
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);
    }
  }
}
Example #2
0
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;
}
Example #3
0
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;
}