Skip to content
This repository has been archived by the owner on Aug 25, 2023. It is now read-only.

Commit

Permalink
Debug message channel numbers should range 1-16, not 0-15 (Issue #7)
Browse files Browse the repository at this point in the history
  • Loading branch information
projectgus committed Aug 7, 2012
1 parent 52d720d commit 8953535
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Bridge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ QString Bridge::describeMIDI(QByteArray &buf)

// Format the output

QString qdesc = QString(desc).arg((int) channel);
QString qdesc = QString(desc).arg((int) channel+(tag==TAG_SPECIAL?0:1));

if(tag == TAG_PITCH_BEND && buf.length() == 3) { // recombine LSB/MSB for pitch bend
return qdesc.arg((int) ((uint8_t)buf[1]) | ((uint8_t) buf[2])<<7 );
Expand Down

1 comment on commit 8953535

@projectgus
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eck, that should be Issue #9! The one time I try to use schmancy github features...

Please sign in to comment.