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

std::vector< double > csound::Score::getPTV ( size_t  begin,
size_t  end,
double  lowest,
double  range,
size_t  divisionsPerOctave = 12 
) const [virtual]

For the specified segment of the score, return the indexes for the prime chord, its transposition, and their voicing within the specified range. Each of these indexes forms an additive cyclic group.

See: http://ruccas.org/pub/Gogins/music_atoms.pdf

Definition at line 566 of file Score.cpp.

References csound::Voicelead::chordToPTV(), and getPitches().

Referenced by csound::VoiceleadingNode::apply().

    if (begin_ < 0) {
      begin_ = 0;
    if (end_ > size()) {
      end_ = size();
    std::vector<double> ptv(3);
    std::vector<double> chord = getPitches(begin_, end_, divisionsPerOctave_);
    if (chord.size() == 0) {
      return ptv;
    ptv = Voicelead::chordToPTV(chord, lowest, lowest + range, divisionsPerOctave_);
    return ptv;

Generated by  Doxygen 1.6.0   Back to index