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

Method index

src/core/NotePlayHandle.cpp:440–458  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

438
439
440int NotePlayHandle::index() const
441{
442 const PlayHandleList & playHandles = Engine::mixer()->playHandles();
443 int idx = 0;
444 for( PlayHandleList::ConstIterator it = playHandles.begin(); it != playHandles.end(); ++it )
445 {
446 const NotePlayHandle * nph = dynamic_cast<const NotePlayHandle *>( *it );
447 if( nph == NULL || nph->m_instrumentTrack != m_instrumentTrack || nph->isReleased() || nph->hasParent() )
448 {
449 continue;
450 }
451 if( nph == this )
452 {
453 return idx;
454 }
455 ++idx;
456 }
457 return -1;
458}
459
460
461

Callers 8

processNoteMethod · 0.80
processAutomationsMethod · 0.80
addBBTrackMethod · 0.80
bbTrackIndexMethod · 0.80
clickedTrackLabelMethod · 0.80
updateSelectionMethod · 0.80
testBBTrackMethod · 0.80

Calls 3

mixerFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by 1

testBBTrackMethod · 0.64