Trevliga Spel forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Exception occurred while decoding midi message

2 posters

Go down

Exception occurred while decoding midi message Empty Exception occurred while decoding midi message

Post by andy_vdg Tue Oct 24, 2023 2:30 pm

Hi,

Thanks for making such an awesome plugin - hope you can help me troubleshoot these error messages. 
Basically all buttons work if I use them from the StreamDeck but if I use the DAW some buttons stopped updating themselves. 
I turned on logging and for some of the Midi messages I am getting an "Exception occurred while decoding midi message: System.ArgumentOutOfRangeException: Index and count must refer to a location within the string. (Parameter 'count')" error.
I'm using Channel 0 CC 73 to CC 80. For some reason 73-75 work fine then 76-79 all throw these errors and 80 works fine again. 
Here are the error messages: 
(I've tried attaching the log file but get "Uploaded file is not valid" every time)
Code:
2023-10-24 14:18:26.0680    430.25ms DEBUG    41  MidiController   MidiIn_ControlChange          [msg(Channel: Channel1, Control: 76, Value: 127)]
2023-10-24 14:18:26.0682      0.16ms DEBUG    41  MidiController   MidiIn_ControlChange          [port:IAC Driver Daw2StreamDeck, channel=0, ctrl=76, value=127]
2023-10-24 14:18:26.0697      1.53ms DEBUG    41  MidiStateCtrl    SaveMidiState                 [Saving state for ControlChangeMessage, ID:MidiController, MidiIn:IAC Driver Daw2StreamDeck, MidiOut:, Channel:0, Control,:76, Value:127, time=24.10.2023 14:18:26]
2023-10-24 14:18:26.0698      0.12ms DEBUG    41  MCUDevice        ReceiveControlChange          [control=76, value=127]
2023-10-24 14:18:26.0701      0.22ms DEBUG    41  BaseMCUConn      ReceiveTimeCode               [insertAt(12) character(?)]
2023-10-24 14:18:26.1286     58.55ms ERROR    41  RtMidi           InputDevice_Message           [Exception occurred while decoding midi message: System.ArgumentOutOfRangeException: Index and count must refer to a location within the string. (Parameter 'count')
   at System.String.Remove(Int32 startIndex, Int32 count)
   at Midi.MCUTimeCode.SetTimeCode(Int32 startInsertion, String chars) in P:\Projects\Midi\Mackie Control\MCUProtocolItem.cs:line 492
   at Midi.MCUProtocolController.ReceiveTimeCode(String midiIn, Int32 control, Byte value) in P:\Projects\Midi\Mackie Control\MCUProtocolController.cs:line 382
   at Midi.MCUProtocolController.Instance_ControlChangeReceivedEvent(ControlChangeMessage message, List`1 eventChain) in P:\Projects\Midi\Mackie Control\MCUProtocolController.cs:line 74
   at Midi.MidiController.MidiIn_ControlChange(IMidiInputDevice sender, ControlChangeMessage& msg) in P:\Projects\Midi\MidiController\MidiController.cs:line 625
   at RtMidi.Core.Devices.MidiInputDevice.OnControlChange(ControlChangeMessage& e) in P:\Projects\StreamDeck-Midi - Net 7\RtMidi.Core-master\RtMidi.Core\Devices\MidiInputDevice.cs:line 178
   at RtMidi.Core.Devices.Nrpn.NrpnInterpreter.HandleControlChangeMessage(ControlChangeMessage& msg) in P:\Projects\StreamDeck-Midi - Net 7\RtMidi.Core-master\RtMidi.Core\Devices\Nrpn\NrpnInterpreter.cs:line 87
   at RtMidi.Core.Devices.MidiInputDevice.Decode(Byte[] message) in P:\Projects\StreamDeck-Midi - Net 7\RtMidi.Core-master\RtMidi.Core\Devices\MidiInputDevice.cs:line 91
   at RtMidi.Core.Devices.MidiInputDevice.RtMidiInputDevice_Message(Object sender, Byte[] message) in P:\Projects\StreamDeck-Midi - Net 7\RtMidi.Core-master\RtMidi.Core\Devices\MidiInputDevice.cs:line 64
2023-10-24 14:18:26.5455    416.86ms DEBUG    41  MidiController   MidiIn_ControlChange          [msg(Channel: Channel1, Control: 76, Value: 0)]
2023-10-24 14:18:26.5457      0.18ms DEBUG    41  MidiController   MidiIn_ControlChange          [port:IAC Driver Daw2StreamDeck, channel=0, ctrl=76, value=0]
2023-10-24 14:18:26.5459      0.19ms DEBUG    41  MidiStateCtrl    SaveMidiState                 [Saving state for ControlChangeMessage, ID:MidiController, MidiIn:IAC Driver Daw2StreamDeck, MidiOut:, Channel:0, Control,:76, Value:0, time=24.10.2023 14:18:26]
2023-10-24 14:18:26.5459      0.06ms DEBUG    41  MCUDevice        ReceiveControlChange          [control=76, value=0]
2023-10-24 14:18:26.5460      0.09ms DEBUG    41  BaseMCUConn      ReceiveTimeCode               [insertAt(12) character(�)]
2023-10-24 14:18:26.5485      2.46ms ERROR    41  RtMidi           InputDevice_Message           [Exception occurred while decoding midi message: System.ArgumentOutOfRangeException: Index and count must refer to a location within the string. (Parameter 'count')
   at System.String.Remove(Int32 startIndex, Int32 count)
   at Midi.MCUTimeCode.SetTimeCode(Int32 startInsertion, String chars) in P:\Projects\Midi\Mackie Control\MCUProtocolItem.cs:line 492
   at Midi.MCUProtocolController.ReceiveTimeCode(String midiIn, Int32 control, Byte value) in P:\Projects\Midi\Mackie Control\MCUProtocolController.cs:line 382
   at Midi.MCUProtocolController.Instance_ControlChangeReceivedEvent(ControlChangeMessage message, List`1 eventChain) in P:\Projects\Midi\Mackie Control\MCUProtocolController.cs:line 74
   at Midi.MidiController.MidiIn_ControlChange(IMidiInputDevice sender, ControlChangeMessage& msg) in P:\Projects\Midi\MidiController\MidiController.cs:line 625
   at RtMidi.Core.Devices.MidiInputDevice.OnControlChange(ControlChangeMessage& e) in P:\Projects\StreamDeck-Midi - Net 7\RtMidi.Core-master\RtMidi.Core\Devices\MidiInputDevice.cs:line 178
   at RtMidi.Core.Devices.Nrpn.NrpnInterpreter.HandleControlChangeMessage(ControlChangeMessage& msg) in P:\Projects\StreamDeck-Midi - Net 7\RtMidi.Core-master\RtMidi.Core\Devices\Nrpn\NrpnInterpreter.cs:line 87
   at RtMidi.Core.Devices.MidiInputDevice.Decode(Byte[] message) in P:\Projects\StreamDeck-Midi - Net 7\RtMidi.Core-master\RtMidi.Core\Devices\MidiInputDevice.cs:line 91
   at RtMidi.Core.Devices.MidiInputDevice.RtMidiInputDevice_Message(Object sender, Byte[] message) in P:\Projects\StreamDeck-Midi - Net 7\RtMidi.Core-master\RtMidi.Core\Devices\MidiInputDevice.cs:line 64
2023-10-24 14:18:27.0552    506.78ms DEBUG    41  MidiController   MidiIn_ControlChange          [msg(Channel: Channel1, Control: 77, Value: 127)]
2023-10-24 14:18:27.0554      0.14ms DEBUG    41  MidiController   MidiIn_ControlChange          [port:IAC Driver Daw2StreamDeck, channel=0, ctrl=77, value=127]
2023-10-24 14:18:27.0555      0.12ms DEBUG    41  MidiStateCtrl    SaveMidiState                 [Saving state for ControlChangeMessage, ID:MidiController, MidiIn:IAC Driver Daw2StreamDeck, MidiOut:, Channel:0, Control,:77, Value:127, time=24.10.2023 14:18:27]
2023-10-24 14:18:27.0555      0.05ms DEBUG    41  MCUDevice        ReceiveControlChange          [control=77, value=127]
2023-10-24 14:18:27.0556      0.08ms DEBUG    41  BaseMCUConn      ReceiveTimeCode               [insertAt(13) character(?)]
2023-10-24 14:18:27.0569      1.24ms ERROR    41  RtMidi           InputDevice_Message           [Exception occurred while decoding midi message: System.ArgumentOutOfRangeException: Index and count must refer to a location within the string. (Parameter 'count')
   at System.String.Remove(Int32 startIndex, Int32 count)
   at Midi.MCUTimeCode.SetTimeCode(Int32 startInsertion, String chars) in P:\Projects\Midi\Mackie Control\MCUProtocolItem.cs:line 492
   at Midi.MCUProtocolController.ReceiveTimeCode(String midiIn, Int32 control, Byte value) in P:\Projects\Midi\Mackie Control\MCUProtocolController.cs:line 382
   at Midi.MCUProtocolController.Instance_ControlChangeReceivedEvent(ControlChangeMessage message, List`1 eventChain) in P:\Projects\Midi\Mackie Control\MCUProtocolController.cs:line 74
   at Midi.MidiController.MidiIn_ControlChange(IMidiInputDevice sender, ControlChangeMessage& msg) in P:\Projects\Midi\MidiController\MidiController.cs:line 625
   at RtMidi.Core.Devices.MidiInputDevice.OnControlChange(ControlChangeMessage& e) in P:\Projects\StreamDeck-Midi - Net 7\RtMidi.Core-master\RtMidi.Core\Devices\MidiInputDevice.cs:line 178
   at RtMidi.Core.Devices.Nrpn.NrpnInterpreter.HandleControlChangeMessage(ControlChangeMessage& msg) in P:\Projects\StreamDeck-Midi - Net 7\RtMidi.Core-master\RtMidi.Core\Devices\Nrpn\NrpnInterpreter.cs:line 87
   at RtMidi.Core.Devices.MidiInputDevice.Decode(Byte[] message) in P:\Projects\StreamDeck-Midi - Net 7\RtMidi.Core-master\RtMidi.Core\Devices\MidiInputDevice.cs:line 91
   at RtMidi.Core.Devices.MidiInputDevice.RtMidiInputDevice_Message(Object sender, Byte[] message) in P:\Projects\StreamDeck-Midi - Net 7\RtMidi.Core-master\RtMidi.Core\Devices\MidiInputDevice.cs:line 64
2023-10-24 14:18:27.5398    482.90ms DEBUG    41  MidiController   MidiIn_ControlChange          [msg(Channel: Channel1, Control: 77, Value: 0)]
2023-10-24 14:18:27.5399      0.16ms DEBUG    41  MidiController   MidiIn_ControlChange          [port:IAC Driver Daw2StreamDeck, channel=0, ctrl=77, value=0]
2023-10-24 14:18:27.5400      0.07ms DEBUG    41  MidiStateCtrl    SaveMidiState                 [Saving state for ControlChangeMessage, ID:MidiController, MidiIn:IAC Driver Daw2StreamDeck, MidiOut:, Channel:0, Control,:77, Value:0, time=24.10.2023 14:18:27]
2023-10-24 14:18:27.5400      0.03ms DEBUG    41  MCUDevice        ReceiveControlChange          [control=77, value=0]
2023-10-24 14:18:27.5401      0.04ms DEBUG    41  BaseMCUConn      ReceiveTimeCode               [insertAt(13) character(�)]
2023-10-24 14:18:27.5416      1.51ms ERROR    41  RtMidi           InputDevice_Message           [Exception occurred while decoding midi message: System.ArgumentOutOfRangeException: Index and count must refer to a location within the string. (Parameter 'count')
   at System.String.Remove(Int32 startIndex, Int32 count)
   at Midi.MCUTimeCode.SetTimeCode(Int32 startInsertion, String chars) in P:\Projects\Midi\Mackie Control\MCUProtocolItem.cs:line 492
   at Midi.MCUProtocolController.ReceiveTimeCode(String midiIn, Int32 control, Byte value) in P:\Projects\Midi\Mackie Control\MCUProtocolController.cs:line 382
   at Midi.MCUProtocolController.Instance_ControlChangeReceivedEvent(ControlChangeMessage message, List`1 eventChain) in P:\Projects\Midi\Mackie Control\MCUProtocolController.cs:line 74
   at Midi.MidiController.MidiIn_ControlChange(IMidiInputDevice sender, ControlChangeMessage& msg) in P:\Projects\Midi\MidiController\MidiController.cs:line 625
   at RtMidi.Core.Devices.MidiInputDevice.OnControlChange(ControlChangeMessage& e) in P:\Projects\StreamDeck-Midi - Net 7\RtMidi.Core-master\RtMidi.Core\Devices\MidiInputDevice.cs:line 178
   at RtMidi.Core.Devices.Nrpn.NrpnInterpreter.HandleControlChangeMessage(ControlChangeMessage& msg) in P:\Projects\StreamDeck-Midi - Net 7\RtMidi.Core-master\RtMidi.Core\Devices\Nrpn\NrpnInterpreter.cs:line 87
   at RtMidi.Core.Devices.MidiInputDevice.Decode(Byte[] message) in P:\Projects\StreamDeck-Midi - Net 7\RtMidi.Core-master\RtMidi.Core\Devices\MidiInputDevice.cs:line 91
   at RtMidi.Core.Devices.MidiInputDevice.RtMidiInputDevice_Message(Object sender, Byte[] message) in P:\Projects\StreamDeck-Midi - Net 7\RtMidi.Core-master\RtMidi.Core\Devices\MidiInputDevice.cs:line 64
2023-10-24 14:18:28.5301    988.57ms DEBUG    41  MidiController   MidiIn_ControlChange          [msg(Channel: Channel1, Control: 78, Value: 0)]
2023-10-24 14:18:28.5305      0.31ms DEBUG    41  MidiController   MidiIn_ControlChange          [port:IAC Driver Daw2StreamDeck, channel=0, ctrl=78, value=0]
2023-10-24 14:18:28.5306      0.18ms DEBUG    41  MidiStateCtrl    SaveMidiState                 [Saving state for ControlChangeMessage, ID:MidiController, MidiIn:IAC Driver Daw2StreamDeck, MidiOut:, Channel:0, Control,:78, Value:0, time=24.10.2023 14:18:28]
2023-10-24 14:18:28.5307      0.05ms DEBUG    41  MCUDevice        ReceiveControlChange          [control=78, value=0]
2023-10-24 14:18:28.5307      0.06ms DEBUG    41  BaseMCUConn      ReceiveTimeCode               [insertAt(14) character(�)]
2023-10-24 14:18:28.5319      1.13ms ERROR    41  RtMidi           InputDevice_Message           [Exception occurred while decoding midi message: System.ArgumentOutOfRangeException: Index and count must refer to a location within the string. (Parameter 'count')
   at System.String.Remove(Int32 startIndex, Int32 count)
   at Midi.MCUTimeCode.SetTimeCode(Int32 startInsertion, String chars) in P:\Projects\Midi\Mackie Control\MCUProtocolItem.cs:line 492
   at Midi.MCUProtocolController.ReceiveTimeCode(String midiIn, Int32 control, Byte value) in P:\Projects\Midi\Mackie Control\MCUProtocolController.cs:line 382
   at Midi.MCUProtocolController.Instance_ControlChangeReceivedEvent(ControlChangeMessage message, List`1 eventChain) in P:\Projects\Midi\Mackie Control\MCUProtocolController.cs:line 74
   at Midi.MidiController.MidiIn_ControlChange(IMidiInputDevice sender, ControlChangeMessage& msg) in P:\Projects\Midi\MidiController\MidiController.cs:line 625
   at RtMidi.Core.Devices.MidiInputDevice.OnControlChange(ControlChangeMessage& e) in P:\Projects\StreamDeck-Midi - Net 7\RtMidi.Core-master\RtMidi.Core\Devices\MidiInputDevice.cs:line 178
   at RtMidi.Core.Devices.Nrpn.NrpnInterpreter.HandleControlChangeMessage(ControlChangeMessage& msg) in P:\Projects\StreamDeck-Midi - Net 7\RtMidi.Core-master\RtMidi.Core\Devices\Nrpn\NrpnInterpreter.cs:line 87
   at RtMidi.Core.Devices.MidiInputDevice.Decode(Byte[] message) in P:\Projects\StreamDeck-Midi - Net 7\RtMidi.Core-master\RtMidi.Core\Devices\MidiInputDevice.cs:line 91
   at RtMidi.Core.Devices.MidiInputDevice.RtMidiInputDevice_Message(Object sender, Byte[] message) in P:\Projects\StreamDeck-Midi - Net 7\RtMidi.Core-master\RtMidi.Core\Devices\MidiInputDevice.cs:line 64
2023-10-24 14:18:28.9487    416.80ms DEBUG    41  MidiController   MidiIn_ControlChange          [msg(Channel: Channel1, Control: 78, Value: 127)]
2023-10-24 14:18:28.9488      0.09ms DEBUG    41  MidiController   MidiIn_ControlChange          [port:IAC Driver Daw2StreamDeck, channel=0, ctrl=78, value=127]
2023-10-24 14:18:28.9488      0.04ms DEBUG    41  MidiStateCtrl    SaveMidiState                 [Saving state for ControlChangeMessage, ID:MidiController, MidiIn:IAC Driver Daw2StreamDeck, MidiOut:, Channel:0, Control,:78, Value:127, time=24.10.2023 14:18:28]
2023-10-24 14:18:28.9488      0.02ms DEBUG    41  MCUDevice        ReceiveControlChange          [control=78, value=127]
2023-10-24 14:18:28.9488      0.02ms DEBUG    41  BaseMCUConn      ReceiveTimeCode               [insertAt(14) character(?)]
2023-10-24 14:18:28.9506      1.76ms ERROR    41  RtMidi           InputDevice_Message           [Exception occurred while decoding midi message: System.ArgumentOutOfRangeException: Index and count must refer to a location within the string. (Parameter 'count')
   at System.String.Remove(Int32 startIndex, Int32 count)
   at Midi.MCUTimeCode.SetTimeCode(Int32 startInsertion, String chars) in P:\Projects\Midi\Mackie Control\MCUProtocolItem.cs:line 492
   at Midi.MCUProtocolController.ReceiveTimeCode(String midiIn, Int32 control, Byte value) in P:\Projects\Midi\Mackie Control\MCUProtocolController.cs:line 382
   at Midi.MCUProtocolController.Instance_ControlChangeReceivedEvent(ControlChangeMessage message, List`1 eventChain) in P:\Projects\Midi\Mackie Control\MCUProtocolController.cs:line 74
   at Midi.MidiController.MidiIn_ControlChange(IMidiInputDevice sender, ControlChangeMessage& msg) in P:\Projects\Midi\MidiController\MidiController.cs:line 625
   at RtMidi.Core.Devices.MidiInputDevice.OnControlChange(ControlChangeMessage& e) in P:\Projects\StreamDeck-Midi - Net 7\RtMidi.Core-master\RtMidi.Core\Devices\MidiInputDevice.cs:line 178
   at RtMidi.Core.Devices.Nrpn.NrpnInterpreter.HandleControlChangeMessage(ControlChangeMessage& msg) in P:\Projects\StreamDeck-Midi - Net 7\RtMidi.Core-master\RtMidi.Core\Devices\Nrpn\NrpnInterpreter.cs:line 87
   at RtMidi.Core.Devices.MidiInputDevice.Decode(Byte[] message) in P:\Projects\StreamDeck-Midi - Net 7\RtMidi.Core-master\RtMidi.Core\Devices\MidiInputDevice.cs:line 91
   at RtMidi.Core.Devices.MidiInputDevice.RtMidiInputDevice_Message(Object sender, Byte[] message) in P:\Projects\StreamDeck-Midi - Net 7\RtMidi.Core-master\RtMidi.Core\Devices\MidiInputDevice.cs:line 64
2023-10-24 14:18:29.4271    476.45ms DEBUG    41  MidiController   MidiIn_ControlChange          [msg(Channel: Channel1, Control: 79, Value: 127)]
2023-10-24 14:18:29.4273      0.21ms DEBUG    41  MidiController   MidiIn_ControlChange          [port:IAC Driver Daw2StreamDeck, channel=0, ctrl=79, value=127]
2023-10-24 14:18:29.4274      0.09ms DEBUG    41  MidiStateCtrl    SaveMidiState                 [Saving state for ControlChangeMessage, ID:MidiController, MidiIn:IAC Driver Daw2StreamDeck, MidiOut:, Channel:0, Control,:79, Value:127, time=24.10.2023 14:18:29]
2023-10-24 14:18:29.4274      0.03ms DEBUG    41  MCUDevice        ReceiveControlChange          [control=79, value=127]
2023-10-24 14:18:29.4274      0.05ms DEBUG    41  BaseMCUConn      ReceiveTimeCode               [insertAt(15) character(?)]
2023-10-24 14:18:29.4282      0.72ms ERROR    41  RtMidi           InputDevice_Message           [Exception occurred while decoding midi message: System.ArgumentOutOfRangeException: Index and count must refer to a location within the string. (Parameter 'count')
   at System.String.Remove(Int32 startIndex, Int32 count)
   at Midi.MCUTimeCode.SetTimeCode(Int32 startInsertion, String chars) in P:\Projects\Midi\Mackie Control\MCUProtocolItem.cs:line 492
   at Midi.MCUProtocolController.ReceiveTimeCode(String midiIn, Int32 control, Byte value) in P:\Projects\Midi\Mackie Control\MCUProtocolController.cs:line 382
   at Midi.MCUProtocolController.Instance_ControlChangeReceivedEvent(ControlChangeMessage message, List`1 eventChain) in P:\Projects\Midi\Mackie Control\MCUProtocolController.cs:line 74
   at Midi.MidiController.MidiIn_ControlChange(IMidiInputDevice sender, ControlChangeMessage& msg) in P:\Projects\Midi\MidiController\MidiController.cs:line 625
   at RtMidi.Core.Devices.MidiInputDevice.OnControlChange(ControlChangeMessage& e) in P:\Projects\StreamDeck-Midi - Net 7\RtMidi.Core-master\RtMidi.Core\Devices\MidiInputDevice.cs:line 178
   at RtMidi.Core.Devices.Nrpn.NrpnInterpreter.HandleControlChangeMessage(ControlChangeMessage& msg) in P:\Projects\StreamDeck-Midi - Net 7\RtMidi.Core-master\RtMidi.Core\Devices\Nrpn\NrpnInterpreter.cs:line 87
   at RtMidi.Core.Devices.MidiInputDevice.Decode(Byte[] message) in P:\Projects\StreamDeck-Midi - Net 7\RtMidi.Core-master\RtMidi.Core\Devices\MidiInputDevice.cs:line 91
   at RtMidi.Core.Devices.MidiInputDevice.RtMidiInputDevice_Message(Object sender, Byte[] message) in P:\Projects\StreamDeck-Midi - Net 7\RtMidi.Core-master\RtMidi.Core\Devices\MidiInputDevice.cs:line 64
2023-10-24 14:18:29.8238    395.63ms DEBUG    41  MidiController   MidiIn_ControlChange          [msg(Channel: Channel1, Control: 79, Value: 0)]
2023-10-24 14:18:29.8240      0.17ms DEBUG    41  MidiController   MidiIn_ControlChange          [port:IAC Driver Daw2StreamDeck, channel=0, ctrl=79, value=0]
2023-10-24 14:18:29.8241      0.17ms DEBUG    41  MidiStateCtrl    SaveMidiState                 [Saving state for ControlChangeMessage, ID:MidiController, MidiIn:IAC Driver Daw2StreamDeck, MidiOut:, Channel:0, Control,:79, Value:0, time=24.10.2023 14:18:29]
2023-10-24 14:18:29.8242      0.05ms DEBUG    41  MCUDevice        ReceiveControlChange          [control=79, value=0]
2023-10-24 14:18:29.8242      0.06ms DEBUG    41  BaseMCUConn      ReceiveTimeCode               [insertAt(15) character(�)]
2023-10-24 14:18:29.8250      0.72ms ERROR    41  RtMidi           InputDevice_Message           [Exception occurred while decoding midi message: System.ArgumentOutOfRangeException: Index and count must refer to a location within the string. (Parameter 'count')
   at System.String.Remove(Int32 startIndex, Int32 count)
   at Midi.MCUTimeCode.SetTimeCode(Int32 startInsertion, String chars) in P:\Projects\Midi\Mackie Control\MCUProtocolItem.cs:line 492
   at Midi.MCUProtocolController.ReceiveTimeCode(String midiIn, Int32 control, Byte value) in P:\Projects\Midi\Mackie Control\MCUProtocolController.cs:line 382
   at Midi.MCUProtocolController.Instance_ControlChangeReceivedEvent(ControlChangeMessage message, List`1 eventChain) in P:\Projects\Midi\Mackie Control\MCUProtocolController.cs:line 74
   at Midi.MidiController.MidiIn_ControlChange(IMidiInputDevice sender, ControlChangeMessage& msg) in P:\Projects\Midi\MidiController\MidiController.cs:line 625
   at RtMidi.Core.Devices.MidiInputDevice.OnControlChange(ControlChangeMessage& e) in P:\Projects\StreamDeck-Midi - Net 7\RtMidi.Core-master\RtMidi.Core\Devices\MidiInputDevice.cs:line 178
   at RtMidi.Core.Devices.Nrpn.NrpnInterpreter.HandleControlChangeMessage(ControlChangeMessage& msg) in P:\Projects\StreamDeck-Midi - Net 7\RtMidi.Core-master\RtMidi.Core\Devices\Nrpn\NrpnInterpreter.cs:line 87
   at RtMidi.Core.Devices.MidiInputDevice.Decode(Byte[] message) in P:\Projects\StreamDeck-Midi - Net 7\RtMidi.Core-master\RtMidi.Core\Devices\MidiInputDevice.cs:line 91
   at RtMidi.Core.Devices.MidiInputDevice.RtMidiInputDevice_Message(Object sender, Byte[] message) in P:\Projects\StreamDeck-Midi - Net 7\RtMidi.Core-master\RtMidi.Core\Devices\MidiInputDevice.cs:line 64

Thanks in advance for your help.

andy_vdg

Posts : 2
Join date : 2023-10-24

Back to top Go down

Exception occurred while decoding midi message Empty Re: Exception occurred while decoding midi message

Post by Admin Tue Oct 24, 2023 4:33 pm

Hi,

It looks like you use the same Midi ports for both Mackie Control and generic Midi communication, which is "forbidden".

The commands that fail are handled by the Mackie Control driver in the plugin and treated as Mackie Control Time Code commands, which they are not, causing the plugin to fail.

Please ensure that Mackie Control buttons/dials use separate ports from other buttons. Id you don't have any Mackie Control buttons/dials, please temporarily create one and verify that the port assignments for all Mackie devices are set to "No MIDI...".
Admin
Admin
Admin

Posts : 962
Join date : 2020-03-26

https://trevligaspel.forumotion.eu

Back to top Go down

Exception occurred while decoding midi message Empty Re: Exception occurred while decoding midi message

Post by andy_vdg Tue Oct 24, 2023 7:07 pm

Awesome thank you - adding a Mackie button and setting Midi to No Midi fixed it. 
Strange - I never touched the Mackie stuff as I have nothing that uses Mackie Control. Only ever added Midi buttons and most of them are direct copy and pastes of the first one I created and got working - just changed the channel every time. Not sure how that would have happened but glad it's back to normal again.

andy_vdg

Posts : 2
Join date : 2023-10-24

Back to top Go down

Exception occurred while decoding midi message Empty Re: Exception occurred while decoding midi message

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum