mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-07 14:15:46 +01:00
wrap MIDI timecode at 24h
This commit is contained in:
parent
8875cd5a5a
commit
28306d0b06
2 changed files with 2 additions and 2 deletions
|
|
@ -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) & 0x7f;
|
||||
msg[5] = mtc_timecode_bits | (timecode.hours % 24);
|
||||
msg[6] = timecode.minutes;
|
||||
msg[7] = timecode.seconds;
|
||||
msg[8] = timecode.frames;
|
||||
|
|
|
|||
|
|
@ -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 & 0x7f;
|
||||
*b++ = _time.hours % 24;
|
||||
*b++ = _time.minutes;
|
||||
*b++ = _time.seconds;
|
||||
*b++ = _time.frames;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue