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

Method is_full

mingus/containers/bar.py:127–136  ·  view source on GitHub ↗

Return False if there is room in this Bar for another NoteContainer, True otherwise.

(self)

Source from the content-addressed store, hash-verified

125 return self.current_beat
126
127 def is_full(self):
128 """Return False if there is room in this Bar for another
129 NoteContainer, True otherwise."""
130 if self.length == 0.0:
131 return False
132 if len(self.bar) == 0:
133 return False
134 if self.current_beat >= self.length - 0.001:
135 return True
136 return False
137
138 def change_note_duration(self, at, to):
139 """Change the note duration at the given index to the given

Callers 2

add_notesMethod · 0.80
test_integrityMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_integrityMethod · 0.64