When calling ~computeDurs two inputs are given:
pset: a set of three pitches (subpattern), found in
cantus: a pattern of 8 to 12 notes
A pset is a collection of three arbitrary pitches found in cantus. In other words, a pset is a subpattern of cantus.
Therefore pset is also a set of three notes that corresponds to three specific time points, or occurrences, within the pattern cantus. Given any pset, ~computeDurs computes the duration of each note of the subpattern, with respect to the occurences found in cantus.
given a pattern p
and a subpattern sp
first it looks for the occurences of c in p
then it computes the distances (durations) between occurrences
the sum of the distances gives the whole duration of sp