You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reworked ActiveSensing using input from a variety of device MIDI Implementation manuals (Roland, KORG, Yamaha) found on the internet.
Receiving ActiveSensing:
Once an Active Sensing message is received, the unit will begin monitoring the intervalbetween all subsequent messages. If there is an interval of ActiveSensingPeriodicity ms or longer betweenmessages while monitoring is active, the same processing as when All Sound Off, All Notes Off,and Reset All Controllers messages are received will be carried out. The unit will then stopmonitoring the message interval.
Sending ActiveSensing: send x ms after the last sent command
Copy file name to clipboardExpand all lines: src/MIDI.hpp
+40-28Lines changed: 40 additions & 28 deletions
Original file line number
Diff line number
Diff line change
@@ -44,9 +44,10 @@ inline MidiInterface<Transport, Settings, Platform>::MidiInterface(Transport& in
44
44
, mThruFilterMode(Thru::Full)
45
45
, mLastMessageSentTime(0)
46
46
, mLastMessageReceivedTime(0)
47
-
, mReceiverActiveSensingActivated(false)
47
+
, mReceiverActiveSensingActive(false)
48
48
, mLastError(0)
49
49
{
50
+
static_assert(!(Settings::UseSenderActiveSensing && Settings::UseReceiverActiveSensing), "UseSenderActiveSensing and UseReceiverActiveSensing can't be both set to true.");
0 commit comments