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

Method __add__

mingus/containers/bar.py:218–223  ·  view source on GitHub ↗

Enable the '+' operator on Bars.

(self, note_container)

Source from the content-addressed store, hash-verified

216 return res
217
218 def __add__(self, note_container):
219 """Enable the '+' operator on Bars."""
220 if self.meter[1] != 0:
221 return self.place_notes(note_container, self.meter[1])
222 else:
223 return self.place_notes(note_container, 4)
224
225 def __getitem__(self, index):
226 """Enable the '[]' notation on Bars to get the item at the index."""

Callers

nothing calls this directly

Calls 1

place_notesMethod · 0.95

Tested by

no test coverage detected