Previous topic

music21.test.toggleDebug

Next topic

music21.text

Table Of Contents

Table Of Contents

This Page

music21.test.treeYield

Functions

music21.test.treeYield.testCode()
music21.test.treeYield.testMIDIParse()

TreeYielder

class music21.test.treeYield.TreeYielder(yieldValue=None)

TreeYielder methods

TreeYielder.currentLevel()
TreeYielder.run(obj, memo=None)

traverse all attributes of an object looking for subObjects that meet a certain criteria. yield them.

memo is a dictionary to keep track of objects that have already been seen

The original object is added to the memo and also checked for yieldValue