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

void csound::MusicModel::createCsoundScore ( std::string  addToScore = "",
double  extendSeconds = 5.0 
) [virtual]

Translate the generated score to a Csound score and export it for performance. The time given by extendSeconds is used for a concluding e statement.

Definition at line 58 of file MusicModel.cpp.

References cppSound, csound::Score::getCsoundScore(), and csound::System::inform().

Referenced by render().

  {
    System::inform("addToScore.length(): %d\n", addToScore.length());
    if (addToScore.length() > 2) {
      cppSound->removeScore();
      cppSound->addScoreLine(addToScore);
    }
    cppSound->addScoreLine(score.getCsoundScore(tonesPerOctave, conformPitches));
    char buffer[0x100];
    std::sprintf(buffer, "\ns %9.3f", extendSeconds);
    cppSound->addScoreLine(buffer);
    std::sprintf(buffer, "\ne %9.3f", extendSeconds);
    cppSound->addScoreLine(buffer);
    cppSound->exportForPerformance();
  }


Generated by  Doxygen 1.6.0   Back to index