Browse Source

Fix USB MIDI song position callback

main
PaulStoffregen 6 years ago
parent
commit
342daa61c5
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      teensy3/usb_midi.c

+ 2
- 1
teensy3/usb_midi.c View File

@@ -321,7 +321,8 @@ int usb_midi_read(uint32_t channel)
break;
case 0xF2: // usbMIDI.SongPosition
if (usb_midi_handleSongPosition) {
(*usb_midi_handleSongPosition)(n >> 16);
(*usb_midi_handleSongPosition)(
((n >> 16) & 0x7F) | ((n >> 17) & 0x3F80));
}
break;
case 0xF3: // usbMIDI.SongSelect

Loading…
Cancel
Save