Page 1 of 1

Help with "template syl"

Unread postPosted: Mon Apr 03, 2017 10:22 am
by Zyrh
Hi,

This is my first time trying to do a karaoke and I have found a big problem.

After timing each syllable with its correct time I started with effects, but if I specify "template syl" in effect box this is what I get:

Image

Syllables get like they're one in front of other. If I use "template line" instead of "template syl" it shows the whole sentence like it should:

Image

Can anyone tell me what i'm doing wrong?

Thanks in advance.

Re: Help with "template syl"

Unread postPosted: Mon Apr 03, 2017 3:09 pm
by jfs
Because "template syl" makes a new line for each syllable, all those lines will end up in the same place unless you position them. The most basic way is simply to add a \pos($x,$y) tag to the template, and leave the $x and $y exactly that way. They get replaced with the calculated position of each syllable.

Re: Help with "template syl"

Unread postPosted: Mon Apr 03, 2017 11:59 pm
by Zyrh
Thanks for your reply,

I've tried what you explained, and my template code now looks like:

Code: Select all
{\r\k$kdur\t\pos($x,$y)($start,!$start+$dur*0.3!,\fscy120)\t(!$start+$dur*0.3!,$end,\fscy100)\t($end,!$end+200!,\alpha&HFF&)\t($end,!$end+150!,\frx45)}


But, I must be doing something wrong again, cause now every line with style "karaoke" didn't appear.

Image

I've tried too with only {\pos($x,$y)} but same result.

Aligment position is 2, so it should appear (or at least I think so)

Image

So, if you can help me again, tnx.

Re: Help with "template syl"

Unread postPosted: Tue Apr 04, 2017 9:01 am
by Zyrh
After continue today, I've saw this

Image

Dunno why, but position at axis x is getting not a number, for every single syllable pos is the same, (nan, -30).

Re: Help with "template syl"

Unread postPosted: Tue Apr 04, 2017 4:15 pm
by jfs
First, you've written:
\t\pos($x,$y)($start,!$start+$dur*0.3!,\fscy120)
That's wrong, the \t and ($start,!$start+$dur*0.3!,\fscy120) parts belong together, the entire parenthesized part is a parameter to the \t tag and the two can not be cut apart by other tags. You should place the \pos right before either the } or before the \ beginning another tag.


As for the "nan" that appears, I have never seen that before. My best guess is that there is something weird about the font you use. Try, for experiment's sake, to use a different font, and see if that makes a difference.
("nan" stands for "Not a Number", and is a result that can happen if something attempts an impossible calculation, such as calculating zero divided by zero.)

Re: Help with "template syl"

Unread postPosted: Tue Apr 04, 2017 4:31 pm
by Zyrh
You're right, first i've tried tight at beginning, after right before }m when I saw nothing works as should, then i've tried to inset pos in many places.

Problem is, even right before }, or even trying it along, dunno why but doesn't work.

I've started that project from the beginning, that way is working correctly (every syllable gets auto positioned), dunno what I've made wrong on first try.

Thaks for your help.

Re: Help with "template syl"

Unread postPosted: Tue Apr 04, 2017 11:57 pm
by Zyrh
jfs wrote:As for the "nan" that appears, I have never seen that before. My best guess is that there is something weird about the font you use. Try, for experiment's sake, to use a different font, and see if that makes a difference.
("nan" stands for "Not a Number", and is a result that can happen if something attempts an impossible calculation, such as calculating zero divided by zero.)


I've just tried changing font family, size, aligment, etc... nothing makes diference. And I've finished the second attempt (using same font family and styles) and now it works, so for sure I made something that makes no sense when calculating position for syllables.

Anyway, it's done and now I understand how "template syl" works.

Thanks again.