Skip to content

Forwarding RealTime Messages #217

Answered by lathoub
ndsizeif asked this question in Q&A
Discussion options

You must be logged in to vote

Hi

The above code will not work, if you want to send RealTime messages (typically 1 byte long). The midiB.send command will filter out any Real Time messages (only channel messages are processed).

template<class Transport, class Settings, class Platform>
void MidiInterface<Transport, Settings, Platform>::send(MidiType inType,
DataByte inData1,
DataByte inData2,
Channel inChannel)
{
if (inType <= PitchBend) // Channel messages
{

You might want to use midiB.sendRealTime command (and check first if the incoming data from midiA is a RealTime message)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ndsizeif
Comment options

Answer selected by ndsizeif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants