Skip to content

Commit 938ed43

Browse files
committed
Change condition from source subproc id = 0 to sample rate = 0 (simpler)
1 parent 5c43958 commit 938ed43

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Plugins/LfpDisplayNode/LfpDisplayNode.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,8 @@ void LfpDisplayNode::handleEvent(const EventChannel* eventInfo, const MidiMessag
271271
const int eventTime = samplePosition;
272272
uint32 eventSourceNodeId = getEventSourceId(eventInfo);
273273

274-
// treat events with no source as occurring on the subprocessor being drawn.
275-
if (eventSourceNodeId == 0)
274+
// treat event channels with sample rate of 0 as occurring on the subprocessor being drawn.
275+
if (eventInfo->getSampleRate() == 0)
276276
{
277277
eventSourceNodeId = subprocessorToDraw;
278278
}

0 commit comments

Comments
 (0)