Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MIDI TextLCD mbed
Revision 1:af9dd50ffbc2, committed 2013-06-14
- Comitter:
- kayekss
- Date:
- Fri Jun 14 12:41:54 2013 +0000
- Parent:
- 0:93868ff6d1b1
- Commit message:
- Fixed pitchbend byte order
Changed in this revision
| RingBuffer.h | Show annotated file Show diff for this revision Revisions of this file |
| parser.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 93868ff6d1b1 -r af9dd50ffbc2 RingBuffer.h
--- a/RingBuffer.h Fri Jun 14 09:25:58 2013 +0000
+++ b/RingBuffer.h Fri Jun 14 12:41:54 2013 +0000
@@ -99,9 +99,8 @@
template <class T>
int RingBuffer<T>::find(T key) {
- int pos = 0;
-
uint32_t p = readPos;
+
for (uint32_t i = 0; i < itemCount; i++) {
if (buffer[p] == key) {
return i;
diff -r 93868ff6d1b1 -r af9dd50ffbc2 parser.cpp
--- a/parser.cpp Fri Jun 14 09:25:58 2013 +0000
+++ b/parser.cpp Fri Jun 14 12:41:54 2013 +0000
@@ -139,7 +139,7 @@
"Pitch bend", runningStatus ? '*' : ' ',
c, dataBytes[0], dataBytes[1]);
#endif
- setPitchBend(c, dataBytes[0] << 7 | dataBytes[1]);
+ setPitchBend(c, dataBytes[1] << 7 | dataBytes[0]);
lastStatusByte = c;
}
break;