Return the LilyPond equivalent of a Composition in a string.
(composition)
| 196 | |
| 197 | |
| 198 | def 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 | |
| 213 | def from_Suite(suite): |
nothing calls this directly
no test coverage detected