Commits on Source 2

  • Justin Ginn's avatar
    Bugfix: fix panic in ListenTo for some msg types · d53497c3
    Justin Ginn authored
    Previously, the function _channelMessage took two data bytes, even
    though the AfterTouch and ProgramChange messages only have a single data
    byte. At the only callsite of _channelMessage, this caused us to always
    index into the raw message for both data bytes. This would panic with
    index out of range for AfterTouch and ProgramChange messages, since the
    raw message is shorter.
    
    To fix this, we pass the raw data message into _channelMessage as a byte
    slice and only index into the second data byte for the messages that use
    both data bytes.
    d53497c3
  • Marc René Arns's avatar
    Merge branch 'fix-listento-panic' into 'master' · 25623cec
    Marc René Arns authored
    Bugfix: fix panic in ListenTo for some msg types
    
    Closes #55
    
    See merge request gomidi/midi!8
    25623cec
Loading
Loading