Author Topic: MIDI Clock to MIDI Time Code SYNC/RESET  (Read 771 times)

Offline Bill1983

  • Newbie
  • *
  • Posts: 1
« on: March 02, 2020, 06:38:20 AM »

I've been using Sonar (currently Sonar Platinum) for many years and I use it in a less than conventional mode, for live play and controlled with a Korg PA4x. I realize Sonar was not designed for such but I absolutely hate using AL which seems to be the only DAW which will sync to MIDI Clock vs MTC.

Years ago, decades to be precise, when I still wrote code I would have attempted this myself but there are to many cobwebs in my skill set to attempt what I'm proposing. The idea is as follows:

A Plugin or Utility in Sonar, when record or play is not running, which will accept the MIDI Clock and every 1 or 2 measures RESET the MTC Position to Zero thus keeping the external MASTER Clock always in perfect sync for live play. I believe an experienced software engineer with a good understanding of MIDI Clock & MTC could accomplish this without to much effort. This would make Sonar very popular with musicians which use their DAW in live performance.

Offline azslow3

  • Administrator
  • Hero Member
  • *****
  • Posts: 1413
Re: MIDI Clock to MIDI Time Code SYNC/RESET
« Reply #1 on: March 04, 2020, 11:14:22 AM »
All synchronizations for real-time processing is in the Cakewalk (and other DAWs) core. I do not know any external API which can influence it. I mean such requests is better to discuss on Cakewalk forum.

The following is IMHO, based on some (small) experience with VST plug-ins (writing):
when the transport is not running, Cakewalk/REAPER (I have not tested that with AL) do not advance musical time. All plug-ins (f.e. soft synth) have access to the tempo and current musical time, but these numbers are constant and taken from the current project time cursor position. In other words when time cursor stay at zero, every time plug-in is called it is at the beginning of the first measure.

I am in progress of writing some "pattern player" (a kind of auto-accompaniment, I know at least one separate Yamaha compatible real-time player, OMB, but nothing in VST format). And I have to deal with "musical time" separately for playback/recording and with transport stopped. In the second case I have to "generate" continuous musical time myself (based on audio time and current tempo from the DAW).  I guess other musical time based plug-ins do the same.

So doing MIDI syncing with transport stopped is at least hard. It may be not possible/feasible at all, running musical time in stopped state potentially can confuse plug-ins up to malfunction.