@@ -769,7 +769,7 @@ inline bool MidiInterface<Transport, Settings, Platform>::read(Channel inChannel
769
769
if (channelMatch)
770
770
launchCallback ();
771
771
772
- thruFilter ();
772
+ processThru ();
773
773
774
774
return channelMatch;
775
775
}
@@ -1341,12 +1341,6 @@ void MidiInterface<Transport, Settings, Platform>::launchCallback()
1341
1341
@{
1342
1342
*/
1343
1343
1344
- template <class Transport , class Settings , class Platform >
1345
- inline bool MidiInterface<Transport, Settings, Platform>::getThruState() const
1346
- {
1347
- return mThruFilterCallback != thruOff;
1348
- }
1349
-
1350
1344
template <class Transport , class Settings , class Platform >
1351
1345
inline void MidiInterface<Transport, Settings, Platform>::turnThruOn(ThruFilterCallback fptr)
1352
1346
{
@@ -1375,15 +1369,15 @@ inline void MidiInterface<Transport, Settings, Platform>::UpdateLastSentTime()
1375
1369
// - Channel messages are passed to the output whether their channel
1376
1370
// is matching the input channel and the filter setting
1377
1371
template <class Transport , class Settings , class Platform >
1378
- void MidiInterface<Transport, Settings, Platform>::thruFilter ()
1372
+ void MidiInterface<Transport, Settings, Platform>::processThru ()
1379
1373
{
1380
1374
if (!mThruFilterCallback (mMessage ))
1381
1375
return ;
1382
1376
1383
1377
MidiMessage thruMessage = mThruMapCallback (mMessage );
1384
1378
1385
1379
// First, check if the received message is Channel
1386
- if (mMessage .type >= NoteOff && mMessage .type <= PitchBend)
1380
+ if (thruMessage .type >= NoteOff && thruMessage .type <= PitchBend)
1387
1381
{
1388
1382
send (thruMessage.type ,
1389
1383
thruMessage.data1 ,
@@ -1393,7 +1387,7 @@ void MidiInterface<Transport, Settings, Platform>::thruFilter()
1393
1387
else
1394
1388
{
1395
1389
// Send the message to the output
1396
- switch (mMessage .type )
1390
+ switch (thruMessage .type )
1397
1391
{
1398
1392
// Real Time and 1 byte
1399
1393
case Clock:
@@ -1403,7 +1397,7 @@ void MidiInterface<Transport, Settings, Platform>::thruFilter()
1403
1397
case ActiveSensing:
1404
1398
case SystemReset:
1405
1399
case TuneRequest:
1406
- sendRealTime (mMessage .type );
1400
+ sendRealTime (thruMessage .type );
1407
1401
break ;
1408
1402
1409
1403
case SystemExclusive:
0 commit comments