@@ -816,7 +816,7 @@ inline bool MidiInterface<Transport, Settings, Platform>::read(Channel inChannel
816816 if (channelMatch)
817817 launchCallback ();
818818
819- thruFilter ();
819+ processThru ();
820820
821821 return channelMatch;
822822}
@@ -1397,13 +1397,7 @@ void MidiInterface<Transport, Settings, Platform>::launchCallback()
13971397 */
13981398
13991399template <class Transport , class Settings , class Platform >
1400- inline bool MidiInterface<Transport, Settings, Platform>::getThruState() const
1401- {
1402- return mThruFilterCallback != thruOff;
1403- }
1404-
1405- template <class Transport , class Settings , class Platform >
1406- inline MidiInterface<Transport, Settings, Platform>& MidiInterface<Transport, Settings, Platform>::turnThruOn(ThruFilterCallback fptr)
1400+ inline void MidiInterface<Transport, Settings, Platform>::turnThruOn(ThruFilterCallback fptr)
14071401{
14081402 mThruFilterCallback = fptr;
14091403 return *this ;
@@ -1425,15 +1419,15 @@ inline MidiInterface<Transport, Settings, Platform>& MidiInterface<Transport, Se
14251419// - Channel messages are passed to the output whether their channel
14261420// is matching the input channel and the filter setting
14271421template <class Transport , class Settings , class Platform >
1428- void MidiInterface<Transport, Settings, Platform>::thruFilter ()
1422+ void MidiInterface<Transport, Settings, Platform>::processThru ()
14291423{
14301424 if (!mThruFilterCallback (mMessage ))
14311425 return ;
14321426
14331427 MidiMessage thruMessage = mThruMapCallback (mMessage );
14341428
14351429 // First, check if the received message is Channel
1436- if (mMessage .type >= NoteOff && mMessage .type <= PitchBend)
1430+ if (thruMessage .type >= NoteOff && thruMessage .type <= PitchBend)
14371431 {
14381432 send (thruMessage.type ,
14391433 thruMessage.data1 ,
@@ -1443,7 +1437,7 @@ void MidiInterface<Transport, Settings, Platform>::thruFilter()
14431437 else
14441438 {
14451439 // Send the message to the output
1446- switch (mMessage .type )
1440+ switch (thruMessage .type )
14471441 {
14481442 // Real Time and 1 byte
14491443 case Clock:
@@ -1453,7 +1447,7 @@ void MidiInterface<Transport, Settings, Platform>::thruFilter()
14531447 case ActiveSensing:
14541448 case SystemReset:
14551449 case TuneRequest:
1456- sendRealTime (mMessage .type );
1450+ sendRealTime (thruMessage .type );
14571451 break ;
14581452
14591453 case SystemExclusive:
0 commit comments