triggerbox: sidechain should only process "its" MIDI buffer when looking for events
This commit is contained in:
parent
a7645022e1
commit
9ac93a4792
@ -2592,10 +2592,11 @@ TriggerBox::note_to_trigger (int midi_note, int channel)
|
||||
void
|
||||
TriggerBox::process_midi_trigger_requests (BufferSet& bufs)
|
||||
{
|
||||
/* check MIDI port input buffers for triggers */
|
||||
/* check MIDI port input buffer for triggers. This is always the last
|
||||
* MIDI buffer of the BufferSet
|
||||
*/
|
||||
|
||||
for (BufferSet::midi_iterator mi = bufs.midi_begin(); mi != bufs.midi_end(); ++mi) {
|
||||
MidiBuffer& mb (*mi);
|
||||
MidiBuffer& mb (bufs.get_midi (bufs.count().n_midi() - 1 /* due to zero-based index*/));
|
||||
|
||||
for (MidiBuffer::iterator ev = mb.begin(); ev != mb.end(); ++ev) {
|
||||
|
||||
@ -2640,7 +2641,6 @@ TriggerBox::process_midi_trigger_requests (BufferSet& bufs)
|
||||
t->unbang ();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user