Logo Search packages:      
Sourcecode: csound version File versions  Download package

void csound::MusicModel::generate (  )  [virtual]

Generates a score based on a music graph defined by the child nodes of this.

Reimplemented from csound::ScoreModel.

Definition at line 41 of file MusicModel.cpp.

References csound::Node::children, cppSound, csound::Node::getLocalCoordinates(), csound::System::message(), and csound::Node::traverse().

Referenced by render().

  {
    cppSound->removeScore();
    if (children.size()) {
      score.clear();
    }
    traverse(getLocalCoordinates(), score);
    System::message("Generated %d events.\n", score.size());
  }


Generated by  Doxygen 1.6.0   Back to index