Skip to content

Commit

Permalink
Maintenance: changed example documentation
Browse files Browse the repository at this point in the history
The example given is some code used in the (forthcoming) unit test.
  • Loading branch information
mrbannon committed Jan 8, 2015
1 parent 0ce9e84 commit bfd3d3c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions vis/analyzers/indexers/fermata.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,11 @@ def run(self):
**Example:**
>>> the_score = music21.converter.parse('sibelius_5-i.mei')
>>> the_score.parts[5]
(the first clarinet Part)
>>> the_fermatas = FermataIndexer(the_score).run()
>>> the_fermatas['noterest.FermataIndexer']['5']
(the first clarinet Series)
>>> import vis
>>> VIS_PATH = vis.__path__[0]
>>> ind_piece = IndexedPiece(os.path.join(VIS_PATH, 'tests', 'corpus', 'bwv603.xml'))
>>> fermatas = ind_piece.get_data([fermata.FermataIndexer])
>>> print fermatas
"""
combinations = [[x] for x in xrange(len(self._score))] # calculate each voice separately
results = self._do_multiprocessing(combinations)
Expand Down

0 comments on commit bfd3d3c

Please sign in to comment.