2007-03-08, 16:42 | Link #21 |
Excessively jovial fellow
Join Date: Dec 2005
Location: ISDB-T
Age: 37
|
You seem to have missed the point completely. I'm not saying that KM3 can or cannot do things Automation can or cannot do. I'm saying that you did a retarded comparison. Which you did.
simple-k-replacer has a lot of "superfluous" code because it does a lot more than your KM3 example does. Your KM3 example replaces one instance of a given string with another string, based on the first string's contents. It doesn't even do any calculations. Big deal, I could do that with about three lines of Perl. simple-k-replacer, on the other hand, is a script that loads another script, throws up a configuration dialog, calls functions in the above-mentioned other script, strips or does not strip other tags from the string, expands variables, evaluates expressions, throws errors if necessary, checks the line's style and so on. You do some of this too, but not in the example you provided; you do it in KM3 itself. Still, your example is nowhere near as advanced as simple-k-replacer is, even if only because it's static. What it all boils down to is that the code that you have written is basically this: Code:
template = "{\bord2}{\t(" [0] "," [1] ",\bord5)}" [s]; Code:
{\bord2}{\t($start,$end,\bord5)} Code:
local text, ktext text = syl.text ktext = "{\bord2}{\t(" .. syl.start_time .. "," .. syl.end_time .. ",\bord5)}" return ktext .. text Of course, the factorybrews limit you in various ways. That's not relevant. They're there to make simple things simple to do. If you want to do really advanced things, write your own Automation script. You don't have to, though, because of the factorybrews. On a semi-related note, I'd suggest you take a look at multi-template for a really interesting example of how one can use most of the features of Automation without having to actually write a separate Automation script, and without having to type in a tiny textbox. Edit: hint from people who actually know automation: the Automation example can be written like this instead (no variable declarations needed): Code:
return "{\bord2}{\t(" .. syl.start_time .. "," .. syl.end_time .. ",\bord5)}" .. syl.text
__________________
Last edited by TheFluff; 2007-03-08 at 17:54. |
2007-03-08, 18:18 | Link #25 | |
... :D
Join Date: Aug 2004
Location: Canada
|
Maybe a slightly more advanced example will show you how easy it is to extend the functionality of the script.
Code:
Event main { start = <[start] - 250>; // Subtracts 250 from the start of the line. end = <[end] + 250>; // Adds 250 to the end of the line. } Template simplekreplacer (pos) { // [ns] is the duration of the syllable. template = "{\bord2}{\t(" [0] "," <[0] + ([ns] / 2)> ",\bord5)\t(" <[0] + ([ns] / 2)> "," [1] ",\bord2)}" [s]; start = "{\fad(250,250)}{\pos(640," [pos] ")}"; } Run { if ([style] == "Default") { main.simplekreplacer(20); } else { main.simplekreplacer(80); } } Quote:
SSA Tool has some neat options, but nothing I would call innovative. Hasn't been anything inovative in this field for ever. Which is why I'm just trying to make it easier and faster. SSA Tools gui is also annoying to use and doesn't display properly on luna windows theme. (http://www.draders.com/images/ssatoolgui.png) |
|
2007-03-08, 18:37 | Link #26 |
Now in MHD!
Fansubber
Join Date: Dec 2003
|
Luna sucks anyway.
As far as fansubbing tools (not including Adobe stuff and whatever else that's simply not an option for most of us that don't pirate software) goes, it's very innovative. Very few of its features had been done before. And it dates back to early-mid 2004, FYI. The earliest I have as a backup is from July 2004, but there was a whole nother version before that that I also lost in a crash, and the backup is not the earliest version of the "second" SSATool, either. And that was a serious question, by the way. You can get into bashing SSATool if you think you need to defend yourself, or you can honestly answer it. Last edited by RaistlinMajere; 2007-03-08 at 18:49. |
2007-03-08, 22:33 | Link #27 | |
... :D
Join Date: Aug 2004
Location: Canada
|
Karaoke Maker 3.0.4b (March 08 2007)
- Added Simple \k replacer wizard. - Added flags field to Templates. - Fixed parse error with special tags (\N, \n, and \h). The wizard is pretty straight forward, but you can find info on how to use it at http://perseus.draders.com/km3/misc.php Quote:
Code:
Array tmp { template = [r,100,300]; } Code:
Template examp { template = "{\bord2}{\t(" [0] "," <[1] + [tmp, [csyll]]> ",\bord5)}"[s]; } |
|
2007-03-09, 05:53 | Link #28 |
Excessively jovial fellow
Join Date: Dec 2005
Location: ISDB-T
Age: 37
|
It should be noted that I have nothing against KM3. It's a working way to create karaoke, and that's good. Since I haven't even tried it, I can't say anything about whether it's "better" than any other way to create karaoke or not. The only thing I have argued against is the above-mentioned comparison of apples and oranges.
__________________
|
|
|