Skip to content

[BUG]: SDK MidiMessageConverter seems to lose group index #947

@PeteBrown-MSFT

Description

@PeteBrown-MSFT

Reported by Jared from MOTU on Discord:

I did actually just find and confirm the bug, it looks like MidiMessageConverter::ConvertMidi1Message is losing the MIDI group

I confirmed it with this quick and dirty code snippet pasted into one of the sample projects - as I understand it these two messages should be identical:

int msg0 = 0xB0;
int status = 0x0B;
int channel = 0x0;
int msg1 = 0x3C;
int msg2 = 01;

auto msg = MidiMessageBuilder::BuildMidi1ChannelVoiceMessage(0, MidiGroup(2), Midi1ChannelVoiceMessageStatus(status), MidiChannel(channel), msg1, msg2);
std::cout << "Good message - Word 0:            0x" << std::hex << msg.Word0() << std::endl;
auto badmsg = MidiMessageConverter::ConvertMidi1Message(0, MidiGroup(2), msg0, msg1, msg2);
std::cout << "Bad message - Word 0:            0x" << std::hex << badmsg.Word0() << std::endl;

Metadata

Metadata

Assignees

Labels

area-sdk 🔧Related to the application SDKfixed-awaiting-public-release 🕙Fixed in our internal builds. Waiting to make its way to a public release.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions