From dad7cefc7506bcdaa604fedd1584e4fe1808a06d Mon Sep 17 00:00:00 2001 From: pedro-bento Date: Thu, 15 Oct 2026 20:33:23 +0100 Subject: [PATCH 1/2] feat(presets): add super-relaxed pacing preset Adds a 'super-relaxed' preset (max_silence 1.25s, pad 0.25s) that keeps more silence and adds extra breathing room around cuts compared to 'relaxed'. Updates the --preset choices, docstring, and README. --- README.md | 2 +- cadence.py | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8c2ecbe..b5bae68 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ cut decisions) instead of opening Kdenlive; with multiple inputs the kept segments are concatenated in sequence order into one MP4. Add `--keep-project` to also write the `.kdenlive` project. -Presets: `relaxed`, `balanced`, `punchy`. See all options with `uv run cadence.py --help`. +Presets: `super-relaxed`, `relaxed`, `balanced`, `punchy`. See all options with `uv run cadence.py --help`. ## Development diff --git a/cadence.py b/cadence.py index a7017a4..f615a3d 100755 --- a/cadence.py +++ b/cadence.py @@ -28,7 +28,7 @@ Features: - Generates a native .kdenlive project file with synchronized audio/video cuts. - Regenerates a native .kdenlive or MP4 output from the same cut decisions (`--render`). - Generates synced YouTube .srt captions and an LLM-ready transcript (prompt + timeline) for downstream summaries. -- Built-in pacing presets (relaxed, balanced, punchy) to eliminate the need for shell wrappers. +- Built-in pacing presets (super-relaxed, relaxed, balanced, punchy) to eliminate the need for shell wrappers. """ from __future__ import annotations @@ -79,6 +79,12 @@ DISCOURSE_FILLERS = { # Built-in pacing profiles to eliminate shell script wrappers PACING_PRESETS = { + "super-relaxed": { + "max_silence": 1.25, + "pad": 0.25, + "min_keep": 0.10, + "jl_frames": 0, + }, "relaxed": { "max_silence": 0.85, "pad": 0.15, @@ -2016,7 +2022,7 @@ def parse_args() -> argparse.Namespace: ) p.add_argument( "--preset", - choices=["relaxed", "balanced", "punchy"], + choices=["super-relaxed", "relaxed", "balanced", "punchy"], default=None, help="Apply built-in editing pacing settings (overrides defaults).", ) -- 2.45.2 From 4fd14c8aaf25ade766df743c5196f82b33eaf2ec Mon Sep 17 00:00:00 2001 From: pedro-bento Date: Sat, 17 Oct 2026 20:54:50 +0100 Subject: [PATCH 2/2] chore(release): bump __version__ to 0.3.1 --- cadence.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cadence.py b/cadence.py index f615a3d..b807ad8 100755 --- a/cadence.py +++ b/cadence.py @@ -56,7 +56,7 @@ from typing import Literal logger = logging.getLogger("cadence") -__version__ = "0.3.0" +__version__ = "0.3.1" # Regex to catch elongated sounds like 'aaaa', 'uhhh', 'ummm', 'mmmm', 'eeeh', etc. HESITATION_REGEX = re.compile( -- 2.45.2