inheritance tree
MotifIndexMixin
class definition
MotifIndexMixin extends note classes with the parameter motifIndex, in other words the number of the pattern motif to which self belongs. For example, all notes that are part of an instance of the motif which has been declared first have the motif index value 1 and so forth.
NOTE: the pattern motif indices are not implicitly bound to the parameter motifIndex. This has to be done explicitly using the argument indices of UseMotifs. (This is done already by constructors such as Segs.makeCounterpoint_PatternMotifs).
NOTE: for efficiency, the distribution strategy should visit early parameters with info tab 'motifIndex'. Constructors created by MakeIndexConstructor add this info tab to all index parameters.
class MotifIndexMixin (Inheritance-free)
feat !MotifIndexType
attr motifIndex
- getMotifIndex(X)
- getMotifIndexParameter(X)
- initMotifIndexMixin(motifIndex:MI)
end