This project has moved and is read-only. For the latest updates, please go here.

InnerException: probelms with MIDI CC, posible new BUG

Sep 1, 2011 at 12:17 AM
Edited Sep 1, 2011 at 10:30 AM

System.ArgumentOutOfRangeException was unhandled
  Message=Specified argument was out of the range of valid values.
Parameter name: Controller Value must be in the range 0-127
  ParamName=Controller Value must be in the range 0-127
       at NAudio.Midi.ControlChangeEvent.set_ControllerValue(Int32 value)
       at NAudio.Midi.ControlChangeEvent..ctor(Int64 absoluteTime, Int32 channel, MidiController controller, Int32 controllerValue)

Problem is absolutly random, only happen when send MIDI CC not with MIDI NOTES
I think this can be a new bug, this problem happen at random times when NewValue
change faster, newvaluue is value generated by slider, 0 to 127, 100% secure
is in correct range 0 to 127, i tested with MIDI notes, ad work perfect only happen with MIDI CC, and when NewValue change faster, like explained by example, moving a slider and sending the valeues from sldier to NewValue,(i convert the range before to 0 to 127 int)



var cc = new ControlChangeEvent(0, 1, (MidiController )1, NewValue); 



Sep 2, 2011 at 4:46 AM
Edited Sep 2, 2011 at 4:47 AM

I not have another chance more than retrun to MIDI NOTES ; (
please when have some time, try to check what is the problem with MIDI CC.

Best regards!

Sep 10, 2011 at 10:51 PM

My repport is a big mistake!
The next time before repport something i try and test more, aparently all the problem is arround my code, not Naudio !! : )