Tutorial 7 - SuiteΒΆ
The Suite class can be used to store compositions together and will probably not be used as much (if you want to write a symphony, knock yourself out though).
>>> from mingus.containers import Suite
Setting AttributesΒΆ
The following functions will set some useful attributes. Note however that the authors and titles wonβt be reset on the actual compositions, only on the Suite:
>>> s = Suite()
>>> s.set_author('Author', 'author@email.com')
>>> s.set_title('Title', 'Subtitle')
Adding CompositionsΒΆ
>>> c = Composition()
>>> s = Suite()
>>> s.add_composition(c)
List NotationΒΆ
>>> c = Composition()
>>> len(c)
0
>>> c.add_composition(Composition())
>>> c[0] = Composition()
You can learn more about mingus.containers.Suite in the reference section.