uses Transport::thruActivated for initial thru state
This commit is contained in:
parent
2ae9d9e509
commit
6bdb70727f
|
|
@ -91,7 +91,7 @@ void MidiInterface<Transport, Settings, Platform>::begin(Channel inChannel)
|
||||||
mMessage.data2 = 0;
|
mMessage.data2 = 0;
|
||||||
mMessage.length = 0;
|
mMessage.length = 0;
|
||||||
|
|
||||||
mThruFilterCallback = thruOn;
|
mThruFilterCallback = Transport::thruActivated ? thruOn : thruOff;
|
||||||
mThruMapCallback = thruEcho;
|
mThruMapCallback = thruEcho;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1371,7 +1371,7 @@ inline void MidiInterface<Transport, Settings, Platform>::UpdateLastSentTime()
|
||||||
template<class Transport, class Settings, class Platform>
|
template<class Transport, class Settings, class Platform>
|
||||||
void MidiInterface<Transport, Settings, Platform>::processThru()
|
void MidiInterface<Transport, Settings, Platform>::processThru()
|
||||||
{
|
{
|
||||||
if (!mThruFilterCallback(mMessage))
|
if (!Transport::thruActivated || !mThruFilterCallback(mMessage))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
MidiMessage thruMessage = mThruMapCallback(mMessage);
|
MidiMessage thruMessage = mThruMapCallback(mMessage);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue