Skip to main content
TheYates
Known Participant
December 20, 2019
Question

Typing Expressions (Sync text to speech)

  • December 20, 2019
  • 1 reply
  • 305 views

Since I last posted sync voice-over to text , I have been doing a little dgging with the TYPEMONKEY. I found what I wanted but I am not good with expressions. 

 

From the picture above, in the expression;

t = time - (m.key(1).time - pre); 

"m.key(1)" applies to the first marker "Parrotfish" on the layer "TM Master Control".

"m.key(2)" will apply to the second marker "are" on the layer "TM Master Control" and so on.

Which expression do I use to apply to all the markers in layer TM Master Control and not to the first marker only?

Thanks.

This topic has been closed for replies.

1 reply

Mylenium
Legend
December 20, 2019

You will need to replace the fixed marker reference with the marker.nearestKey(time) quite likely. I have no idea how that works with TypeMonkey, though. Never used it. They may have other code under the hood that already handles this.

 

Mylenium