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 support for multiple clips replacements in one call #170

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Ichunjo
Copy link
Member

@Ichunjo Ichunjo commented Feb 1, 2025

Function signature improved + add support for multiple clips replacements in one call of replace_ranges:

nclip = replace_ranges(
    clip_a,
    (clip_b, [(10, 50), (1000, 5000), (7584, 8000)]),
    (clip_c, (10000, 10811)),
    (clip_d, lambda n: True if n in range(20000, 25000) else False)
)

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

Successfully merging this pull request may close these issues.

1 participant