@@ -816,7 +816,7 @@ inline bool MidiInterface<Transport, Settings, Platform>::read(Channel inChannel
816
816
if (channelMatch)
817
817
launchCallback ();
818
818
819
- thruFilter ();
819
+ processThru ();
820
820
821
821
return channelMatch;
822
822
}
@@ -1397,13 +1397,7 @@ void MidiInterface<Transport, Settings, Platform>::launchCallback()
1397
1397
*/
1398
1398
1399
1399
template <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)
1407
1401
{
1408
1402
mThruFilterCallback = fptr;
1409
1403
return *this ;
@@ -1425,15 +1419,15 @@ inline MidiInterface<Transport, Settings, Platform>& MidiInterface<Transport, Se
1425
1419
// - Channel messages are passed to the output whether their channel
1426
1420
// is matching the input channel and the filter setting
1427
1421
template <class Transport , class Settings , class Platform >
1428
- void MidiInterface<Transport, Settings, Platform>::thruFilter ()
1422
+ void MidiInterface<Transport, Settings, Platform>::processThru ()
1429
1423
{
1430
1424
if (!mThruFilterCallback (mMessage ))
1431
1425
return ;
1432
1426
1433
1427
MidiMessage thruMessage = mThruMapCallback (mMessage );
1434
1428
1435
1429
// First, check if the received message is Channel
1436
- if (mMessage .type >= NoteOff && mMessage .type <= PitchBend)
1430
+ if (thruMessage .type >= NoteOff && thruMessage .type <= PitchBend)
1437
1431
{
1438
1432
send (thruMessage.type ,
1439
1433
thruMessage.data1 ,
@@ -1443,7 +1437,7 @@ void MidiInterface<Transport, Settings, Platform>::thruFilter()
1443
1437
else
1444
1438
{
1445
1439
// Send the message to the output
1446
- switch (mMessage .type )
1440
+ switch (thruMessage .type )
1447
1441
{
1448
1442
// Real Time and 1 byte
1449
1443
case Clock:
@@ -1453,7 +1447,7 @@ void MidiInterface<Transport, Settings, Platform>::thruFilter()
1453
1447
case ActiveSensing:
1454
1448
case SystemReset:
1455
1449
case TuneRequest:
1456
- sendRealTime (mMessage .type );
1450
+ sendRealTime (thruMessage .type );
1457
1451
break ;
1458
1452
1459
1453
case SystemExclusive:
0 commit comments