really fix sending MIDI timecode.

This commit is contained in:
Robin Gareus 2014-06-10 04:12:08 +02:00
parent 7df663acf2
commit c0376fe7b3
2 changed files with 2 additions and 2 deletions

View File

@ -417,7 +417,7 @@ Session::send_full_time_code (framepos_t const t, MIDI::pframes_t nframes)
msg[4] = 0x1;
msg[9] = 0xf7;
msg[5] = mtc_timecode_bits | timecode.hours;
msg[5] = (mtc_timecode_bits | timecode.hours) & 0x7f;
msg[6] = timecode.minutes;
msg[7] = timecode.seconds;
msg[8] = timecode.frames;

View File

@ -710,7 +710,7 @@ MachineControlCommand::fill_buffer (MachineControl* mmc, MIDI::byte* b) const
if (_command == MachineControl::cmdLocate) {
*b++ = 0x6; // byte count
*b++ = 0x1; // "TARGET" subcommand
*b++ = _time.hours & 0xff;
*b++ = _time.hours & 0x7f;
*b++ = _time.minutes;
*b++ = _time.seconds;
*b++ = _time.frames;