MCPcopy Create free account
hub / github.com/LMMS/lmms / removeNote

Method removeNote

src/tracks/Pattern.cpp:230–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228
229
230void 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

Callers 5

mousePressEventMethod · 0.80
mouseMoveEventMethod · 0.80
cutSelectedNotesMethod · 0.80
deleteSelectedNotesMethod · 0.80
quantizeNotesMethod · 0.80

Calls 5

instrumentTrackFunction · 0.50
lockMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected