Return a list of unique note names in the Bar.
(self)
| 207 | return res |
| 208 | |
| 209 | def get_note_names(self): |
| 210 | """Return a list of unique note names in the Bar.""" |
| 211 | res = [] |
| 212 | for cont in self.bar: |
| 213 | for x in cont[2].get_note_names(): |
| 214 | if x not in res: |
| 215 | res.append(x) |
| 216 | return res |
| 217 | |
| 218 | def __add__(self, note_container): |
| 219 | """Enable the '+' operator on Bars.""" |
no outgoing calls