User Forum    :: Powered by YaBB
  « MIDI-OX User Forum - Receiving Timing Clock messages? »
Welcome, Guest. Please Login or Register.
Mar 16th, 2025, 1:00pm


Home Home Help Help Search Search Members Members Login Login Register Register


   MIDI-OX User Forum
   MIDI-OX
   Scripting Questions
(Moderator: Jamie OConnell)
   Receiving Timing Clock messages?
« Previous topic | Next topic »
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print
   Author  Topic: Receiving Timing Clock messages?  (Read 5087 times)
nsfx
New Member
*



MIDI-OX Rules!

   


Posts: 5
Receiving Timing Clock messages?
« on: Mar 31st, 2010, 12:45am »
Quote Quote Modify Modify

Is it possible to receive Timing Clock messages via a MoxScript object? I've tried both the polling and event methods, but I can't get Timing messages to pass on to the script. Note messages and CC messages get to the script just fine. I have midi transport enabled on my DAW outputting to Midi Yoke port 1, and I see these timing codes flying by in the MIDI-OX window on the correct MIDI port, but I can't get them to the script. Is there an option to enabled this or something? or am I missing something else?
 
Thanks!
IP Logged
nsfx
New Member
*



MIDI-OX Rules!

   


Posts: 5
Re: Receiving Timing Clock messages?
« Reply #1 on: Mar 31st, 2010, 1:04am »
Quote Quote Modify Modify

Just some extra info... If I connect In From Midi Yoke 1 -> Out To Midi Yoke 1, I see a few messages get to the script, but this creates MIDI feedback (as expected) and kills the script. I tried connecting In From Midi Yoke 1 --> Out To Midi Yoke 2 instead, and receiving input via the In From Midi Yoke 2 port in the script, but nothing appears! Can someone give an example on how to get a DAW time code to a MIDI-OX script using Midi Yoke? Thanks.
« Last Edit: Mar 31st, 2010, 1:05am by nsfx » IP Logged
Jamie OConnell
Administrator
*****






   
WWW Email

Gender: male
Posts: 2027
Re: Receiving Timing Clock messages?
« Reply #2 on: Apr 2nd, 2010, 5:46pm »
Quote Quote Modify Modify

MIDI Clocks come in pretty fast: 24 per MIDI beat (quarter note) -- speed is also dependent on tempo.  I think polling might be too slow to capture these with any timing accuracy, but the event method should see them.  What you would see in a script would be (assuming Event method):
 

 
dim nClocks
 
nClocks = 0
 
' . . .
 
Sub Sink_MidiInput( ts, port, stat, dat1, dat2)
 
   ' Count timing clock
   If stat = &hF8 Then
      nClocks = nClocks + 1
   End If
 
   ' send message back out all open ports
   mox.OutputMidiMsg -1, stat, dat1, dat2
      
End Sub
 
 
« Last Edit: Apr 2nd, 2010, 5:48pm by Jamie OConnell » IP Logged

--Jamie
Music is its own reward.

nsfx
New Member
*



MIDI-OX Rules!

   


Posts: 5
Re: Receiving Timing Clock messages?
« Reply #3 on: Apr 2nd, 2010, 9:03pm »
Quote Quote Modify Modify

Thanks for the reply Jamie. My problem isn't with the syntax -- I already have MIDI messages coming into the script via the event method. For some reason, *JUST* timing clock messages aren't making it to the script even though I see them in the monitor window. Any idea why that might happen?
 
Thanks again.
IP Logged
nsfx
New Member
*



MIDI-OX Rules!

   


Posts: 5
Re: Receiving Timing Clock messages?
« Reply #4 on: Apr 4th, 2010, 6:27pm »
Quote Quote Modify Modify

Alright. I finally figured it out. I don't remember setting these options, but in the "MIDI Filters..." window, System Realtime messages were being filtered out. I unchecked everything in this window and then it worked.
IP Logged
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print

« Previous topic | Next topic »


MIDI-OX User Forum » Powered by YaBB 1 Gold - SP 1.3.1!
YaBB © 2000-2003. All Rights Reserved.