Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AutoTags #35

Open
moi15moi opened this issue Nov 7, 2021 · 2 comments
Open

Add AutoTags #35

moi15moi opened this issue Nov 7, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@moi15moi
Copy link
Contributor

moi15moi commented Nov 7, 2021

You could add the same fonction that you can see here at the line 99 to 129. https://github.com/ihkk/KKSubs/blob/bb96829813a169a32fa7770ae6cbe6c5dfdd3a51/Lua%20Macros/KK's.lua#L99

So, in brief,
function AutoTags(Intervalo,Dato1,Dato2)
function AutoTags1(Intervalo,Dato1,Dato2,Pause)
function AutoTags2(Intervalo,Dato1,Dato2,Delay)
function AutoTags3(Intervalo1,Intervalo2,Dato1,Dato2)

@moi15moi moi15moi changed the title Interpolate amelioration Add AutoTags Nov 7, 2021
@CoffeeStraw
Copy link
Owner

Hi!
It could be helpful, but it is still an high-level function that can be emulated using FrameUtility. I will think about adding it, but for now it is certainly not a priority.

@CoffeeStraw CoffeeStraw added the enhancement New feature or request label Nov 24, 2021
@moi15moi
Copy link
Contributor Author

moi15moi commented Mar 2, 2022

def autoTags(duration: int, interval: int, data1: str, data2: str) -> str:
    result = ""
    count = math.ceil(duration/interval)

    for i in range(count):
        if i%2 == 0:
            data = data1
        else:
            data = data2


        result += ("\\t(%d,%d,%s)" % (
                    i*interval,
                    (i+1)*interval,
                    data
                    )
        )

    return result

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants