mingus.containers.composition

class mingus.containers.composition.Composition[source]
__add__(self, value)[source]

Enable the ‘+’ operator for Compositions.

Notes, note strings, NoteContainers, Bars and Tracks are accepted.

__getitem__(self, index)[source]

Enable the ‘[]’ notation.

__init__(self)[source]
__len__(self)[source]

Enable the len() function.

__repr__(self)[source]

Return a string representing the class.

__setitem__(self, index, value)[source]

Enable the ‘[] =’ notation.

add_note(self, note)[source]

Add a note to the selected tracks.

Everything container.Track supports in __add__ is accepted.

add_track(self, track)[source]

Add a track to the composition.

Raise an UnexpectedObjectError if the argument is not a mingus.containers.Track object.

author

Attribute of type: str ''

description

Attribute of type: str ''

email

Attribute of type: str ''

empty(self)[source]

Remove all the tracks from this class.

reset(self)[source]

Reset the information in this class.

Remove the track and composer information.

selected_tracks

Attribute of type: list []

set_author(self, author=, email=)[source]

Set the title and author of the piece.

set_title(self, title=Untitled, subtitle=)[source]

Set the title and subtitle of the piece.

subtitle

Attribute of type: str ''

title

Attribute of type: str 'Untitled'

tracks

Attribute of type: list []


Back to Index