MCPcopy Create free account
hub / github.com/bspaans/python-mingus / from_Composition

Function from_Composition

mingus/extra/lilypond.py:198–210  ·  view source on GitHub ↗

Return the LilyPond equivalent of a Composition in a string.

(composition)

Source from the content-addressed store, hash-verified

196
197
198def from_Composition(composition):
199 """Return the LilyPond equivalent of a Composition in a string."""
200 # warning Throw exception
201 if not hasattr(composition, "tracks"):
202 return False
203 result = '\\header { title = "%s" composer = "%s" opus = "%s" } ' % (
204 composition.title,
205 composition.author,
206 composition.subtitle,
207 )
208 for track in composition.tracks:
209 result += from_Track(track) + " "
210 return result[:-1]
211
212
213def from_Suite(suite):

Callers

nothing calls this directly

Calls 1

from_TrackFunction · 0.70

Tested by

no test coverage detected