| 228 | |
| 229 | |
| 230 | void Pattern::removeNote( Note * _note_to_del ) |
| 231 | { |
| 232 | instrumentTrack()->lock(); |
| 233 | NoteVector::Iterator it = m_notes.begin(); |
| 234 | while( it != m_notes.end() ) |
| 235 | { |
| 236 | if( *it == _note_to_del ) |
| 237 | { |
| 238 | delete *it; |
| 239 | m_notes.erase( it ); |
| 240 | break; |
| 241 | } |
| 242 | ++it; |
| 243 | } |
| 244 | instrumentTrack()->unlock(); |
| 245 | |
| 246 | checkType(); |
| 247 | updateLength(); |
| 248 | |
| 249 | emit dataChanged(); |
| 250 | } |
| 251 | |
| 252 | |
| 253 | // returns a pointer to the note at specified step, or NULL if note doesn't exist |
no test coverage detected