Skip to content

AI media harness for planning, generating, and editing locally

TypeScript

Group advanced generation options

Bitti02c9ab7a503b
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md
index c4f2dd7..a033d90 100644
--- a/RELEASE_NOTES.md
+++ b/RELEASE_NOTES.md
@@ -15,7 +15,7 @@ This alpha update adds SeedVR2 and Real-ESRGAN export upscaling, Long Shot and B
- **Clip speed controls.** Timeline clips now offer Speed in Timing, from 25% to 400%. Changes preserve the source range, adjust duration and later clips on the same track, and apply to preview and export, including audio pitch.
- **Timeline preview zoom.** Zoom up to 400% using the zoom menu, buttons or Ctrl+wheel, and scroll to inspect details. Choose Fit to see the whole frame again.
- **Agent in Settings.** Open a resizable agent panel from the Settings top bar to configure generators, weight paths and LoRAs, even without an open project.
-- **Video and audio sigma shifts.** Set shifts beside generation steps in the right panel, define generator template defaults, and configure per-stream LoRA overrides. Local and LAN worker generation use the same settings.
+- **Video and audio sigma shifts.** Set shifts and a separate audio step count under Advanced options at the bottom of Generation in the right panel, define generator template defaults, and configure per-stream LoRA overrides. Local and LAN worker generation use the same settings.
- **Separate audio generation steps.** Audio follows the video step count by default, with optional overrides for local and worker generation.
- **Continuation overlap locking.** Continue scenes offer Lock Overlap for local and worker generation, constraining overlapping video and audio to the source scene.
- **Selectable character sheet views.** Enable Close up, Front view, Side view and Back view independently. Side view is off by default; generation, combined images and debug prompts include only enabled views. When enabled, the front view provides a shared clothing reference for the other views.
diff --git a/src/components/workspace/GeneratorView.test.tsx b/src/components/workspace/GeneratorView.test.tsx
index 215de90..e4d9d8a 100644
--- a/src/components/workspace/GeneratorView.test.tsx
+++ b/src/components/workspace/GeneratorView.test.tsx
@@ -651,20 +651,23 @@ describe("Generator scene controls", () => {
expect(parseProjectConfig(JSON.parse(JSON.stringify(state.latest()))).generationJobs[0].latentUpscale).toBe(latentUpscale);
expect(within(generation).getByRole("spinbutton", { name: "Generation step count" })).toHaveValue(20);
expect(within(generation).getByRole("spinbutton", { name: "Generation seed" })).toHaveValue(-1);
+
+ fireEvent.change(within(generation).getByRole("spinbutton", { name: "Generation step count" }), { target: { value: "28" } });
+ fireEvent.change(within(generation).getByRole("spinbutton", { name: "Generation seed" }), { target: { value: "9173" } });
+ expect(within(generation).getByRole("switch", { name: "Advanced options" })).not.toBeChecked();
+ expect(within(generation).queryByRole("spinbutton", { name: "Audio step count" })).toBeNull();
+ expect(within(generation).queryByRole("spinbutton", { name: "Video sigma shift" })).toBeNull();
+ expect(within(generation).queryByRole("spinbutton", { name: "Audio sigma shift" })).toBeNull();
+ expect(within(generation).getAllByRole("switch").at(-1)).toHaveAccessibleName("Advanced options");
+ fireEvent.click(within(generation).getByRole("switch", { name: "Advanced options" }));
expect(within(generation).getByRole("spinbutton", { name: "Video sigma shift" })).toHaveValue(12);
expect(within(generation).getByRole("spinbutton", { name: "Audio sigma shift" })).toHaveValue(3);
fireEvent.change(within(generation).getByRole("spinbutton", { name: "Video sigma shift" }), { target: { value: "8.5" } });
fireEvent.change(within(generation).getByRole("spinbutton", { name: "Audio sigma shift" }), { target: { value: "2.5" } });
expect(parseProjectConfig(JSON.parse(JSON.stringify(state.latest()))).generationJobs[0]).toMatchObject({ videoSigmaShift: 8.5, audioSigmaShift: 2.5 });
-
- fireEvent.change(within(generation).getByRole("spinbutton", { name: "Generation step count" }), { target: { value: "28" } });
- fireEvent.change(within(generation).getByRole("spinbutton", { name: "Generation seed" }), { target: { value: "9173" } });
- expect(within(generation).getByRole("switch", { name: "Separate audio steps" })).not.toBeChecked();
- expect(within(generation).queryByRole("spinbutton", { name: "Audio step count" })).toBeNull();
- fireEvent.click(within(generation).getByRole("switch", { name: "Separate audio steps" }));
expect(within(generation).getByRole("spinbutton", { name: "Audio step count" })).toHaveValue(28);
fireEvent.change(within(generation).getByRole("spinbutton", { name: "Audio step count" }), { target: { value: "17" } });
- if (!separateAudio) fireEvent.click(within(generation).getByRole("switch", { name: "Separate audio steps" }));
+ if (!separateAudio) fireEvent.click(within(generation).getByRole("switch", { name: "Advanced options" }));
expect(parseProjectConfig(JSON.parse(JSON.stringify(state.latest()))).generationJobs[0].audioSteps).toBe(separateAudio ? 17 : undefined);
expect(state.latest().generationJobs[0]).toEqual(expect.objectContaining({ steps: 28, seed: 9173 }));
@@ -1166,11 +1169,13 @@ it("shows template shifts and locks active LoRA overrides without replacing save
const initial = project();
initial.generationJobs[0].videoSigmaShift = 8;
const state = setup(initial);
+ expect(screen.getByRole("switch", { name: "Advanced options" })).not.toBeChecked();
+ fireEvent.click(screen.getByRole("switch", { name: "Advanced options" }));
expect(screen.getByLabelText("Video sigma shift")).toHaveValue(6);
expect(screen.getByLabelText("Video sigma shift")).toBeDisabled();
expect(screen.getByLabelText("Audio sigma shift")).toHaveValue(3.5);
expect(screen.getByLabelText("Audio sigma shift")).toBeEnabled();
- expect(screen.getByRole("switch", { name: "Separate audio steps" })).not.toBeChecked();
+ expect(screen.getByRole("switch", { name: "Advanced options" })).toBeChecked();
fireEvent.click(within(screen.getByRole("region", { name: "First scene" })).getByRole("button", { name: "Generate" }));
expect(JSON.parse(state.latest().generationJobs[0].generationSnapshot!)).toMatchObject({ videoSigmaShift: 6, audioSigmaShift: 3.5 });
expect(state.latest().generationJobs[0].videoSigmaShift).toBe(8);
diff --git a/src/components/workspace/SceneEditor.tsx b/src/components/workspace/SceneEditor.tsx
index 3951e0e..23c3d71 100644
--- a/src/components/workspace/SceneEditor.tsx
+++ b/src/components/workspace/SceneEditor.tsx
@@ -509,16 +509,6 @@ export function SceneInspector({ job, shots, references, folderPath = "", scenes
onCommit={(value) => onChange({ steps: value })}
/>
</PropRow>
- <SceneSigmaShift stream="video" job={job} template={template} disabled={disabled} onChange={onChange} />
- <PropRow label="Separate audio steps" htmlFor={`${id}-separate-audio-steps`} tooltip="Audio uses the video generation step count unless separate audio steps are enabled.">
- <ToggleSwitch id={`${id}-separate-audio-steps`} aria-label="Separate audio steps" checked={job.audioSteps != null} disabled={disabled}
- onChange={(checked) => onChange({ audioSteps: checked ? Math.min(sceneGenerationSteps(job, defaultSteps), MAX_AUDIO_GENERATION_STEPS) : undefined })} />
- </PropRow>
- {job.audioSteps != null && <PropRow label="Audio steps" htmlFor={`${id}-audio-steps`}>
- <CommittedNumberInput id={`${id}-audio-steps`} className="text-field" minimum={2} maximum={MAX_AUDIO_GENERATION_STEPS} step={1}
- value={job.audioSteps} integer disabled={disabled} aria-label="Audio step count" onCommit={(value) => onChange({ audioSteps: value })} />
- </PropRow>}
- <SceneSigmaShift stream="audio" job={job} template={template} disabled={disabled} onChange={onChange} />
<PropRow label="Seed" htmlFor={`${id}-seed`} tooltip="-1 picks a random seed">
<CommittedNumberInput
id={`${id}-seed`}
@@ -537,6 +527,18 @@ export function SceneInspector({ job, shots, references, folderPath = "", scenes
<ToggleSwitch id={`${id}-latent-upscale`} aria-label="Latent upscale" checked={job.latentUpscale ?? false} disabled={disabled}
onChange={(checked) => onChange({ latentUpscale: checked })} />
</PropRow>
+ <PropRow label="Advanced options" htmlFor={`${id}-advanced-options`} tooltip="Show sigma shifts and a separate audio step count.">
+ <ToggleSwitch id={`${id}-advanced-options`} aria-label="Advanced options" checked={job.audioSteps != null} disabled={disabled}
+ onChange={(checked) => onChange({ audioSteps: checked ? Math.min(sceneGenerationSteps(job, defaultSteps), MAX_AUDIO_GENERATION_STEPS) : undefined })} />
+ </PropRow>
+ {job.audioSteps != null && <>
+ <SceneSigmaShift stream="video" job={job} template={template} disabled={disabled} onChange={onChange} />
+ <PropRow label="Audio steps" htmlFor={`${id}-audio-steps`}>
+ <CommittedNumberInput id={`${id}-audio-steps`} className="text-field" minimum={2} maximum={MAX_AUDIO_GENERATION_STEPS} step={1}
+ value={job.audioSteps} integer disabled={disabled} aria-label="Audio step count" onCommit={(value) => onChange({ audioSteps: value })} />
+ </PropRow>
+ <SceneSigmaShift stream="audio" job={job} template={template} disabled={disabled} onChange={onChange} />
+ </>}
</PropSection>
</div>
</section>;