WIP: VSE use new frequency equalizer template. #117700

Draft
Nate Rupsis wants to merge 6 commits from nrupsis/blender:VSE-equalizer-clipping into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Member

The existing template_curve_mapping UI template is a bit overloaded, and doesn't fit all that well for the VSE Sound equalizer.

This dev talk thread highlights some fundamental issues that require a new template.

Old New
image image
The existing `template_curve_mapping` UI template is a bit overloaded, and doesn't fit all that well for the VSE Sound equalizer. This [dev talk thread](https://devtalk.blender.org/t/vse-and-sound-state-future/21904/95) highlights some fundamental issues that require a new template. | Old| New | | -------- | -------- | | ![image](/attachments/c0882f87-d397-48ab-9e32-834350b397ae) | ![image](/attachments/7325bce0-745f-44df-ac31-35720eca9901) |
Nate Rupsis added 2 commits 2024-01-31 16:45:19 +01:00
Nate Rupsis added 1 commit 2024-01-31 16:52:13 +01:00
buildbot/vexp-code-patch-lint Build done. Details
buildbot/vexp-code-patch-darwin-arm64 Build done. Details
buildbot/vexp-code-patch-darwin-x86_64 Build done. Details
buildbot/vexp-code-patch-linux-x86_64 Build done. Details
buildbot/vexp-code-patch-windows-amd64 Build done. Details
buildbot/vexp-code-patch-coordinator Build done. Details
15888a84a5
switching back to X/Y for curve
Brecht Van Lommel reviewed 2024-01-31 19:41:22 +01:00
Brecht Van Lommel left a comment
Owner

This is WIP so not sure if it's planned to be addressed.

But this doesn't need to duplicate so much code. The few different labels and parameters can be put into e.g. a temporary struct TemplateCurveMapping that is passed to a common function, filled by uiTemplateFrequencyMapping and uiTemplateCurveMapping with appropriate defaults.

Also not sure it makes sense to give this a generic name like "frequency mapping" rather than "sound equalizer". Do we expect this to make sense for other types of frequencies?

This is WIP so not sure if it's planned to be addressed. But this doesn't need to duplicate so much code. The few different labels and parameters can be put into e.g. a temporary `struct TemplateCurveMapping` that is passed to a common function, filled by `uiTemplateFrequencyMapping` and `uiTemplateCurveMapping` with appropriate defaults. Also not sure it makes sense to give this a generic name like "frequency mapping" rather than "sound equalizer". Do we expect this to make sense for other types of frequencies?
Author
Member

@blender-bot package

@blender-bot package
Member

Package build started. Download here when ready.

Package build started. [Download here](https://builder.blender.org/download/patch/PR117700) when ready.
Author
Member

@brecht

This is WIP so not sure if it's planned to be addressed.

But this doesn't need to duplicate so much code. The few different labels and parameters can be put into e.g. a temporary struct TemplateCurveMapping that is passed to a common function, filled by uiTemplateFrequencyMapping and uiTemplateCurveMapping with appropriate defaults.

Also not sure it makes sense to give this a generic name like "frequency mapping" rather than "sound equalizer". Do we expect this to make sense for other types of frequencies?

Initial WIP was to get the proof of concept out, and see what people think of it. I 100% agree that there's too much code duplication going on. I didn't want to spend that time until I had community buy-in.

IMO, "sound equalizer" makes the most sense. I chose "frequency mapping" to keep things open ended for the moment. Unsure if it would be useful for other frequencies or not.

@brecht > This is WIP so not sure if it's planned to be addressed. > > But this doesn't need to duplicate so much code. The few different labels and parameters can be put into e.g. a temporary `struct TemplateCurveMapping` that is passed to a common function, filled by `uiTemplateFrequencyMapping` and `uiTemplateCurveMapping` with appropriate defaults. > > Also not sure it makes sense to give this a generic name like "frequency mapping" rather than "sound equalizer". Do we expect this to make sense for other types of frequencies? Initial WIP was to get the proof of concept out, and see what people think of it. I 100% agree that there's too much code duplication going on. I didn't want to spend that time until I had community buy-in. IMO, "sound equalizer" makes the most sense. I chose "frequency mapping" to keep things open ended for the moment. Unsure if it would be useful for other frequencies or not.
First-time contributor

I think it would be more judicious to put min dB and max dB in a row, this would make the flow simpler and more coherent
But else it's good idea and more easy

I think it would be more judicious to put min dB and max dB in a row, this would make the flow simpler and more coherent But else it's good idea and more easy
Contributor

I think that it is a good idea to separate this template from the original template.

As a first case, change the literals of the clipping, but then, the buttons layout or other gui elements could be more sound oriented

I think that it is a good idea to separate this template from the original template. As a first case, change the literals of the clipping, but then, the buttons layout or other gui elements could be more sound oriented
First-time contributor

The key values could also have units exposed.

Maybe losing the x and y labels will add some confusion? If the units(dB & Hz) were implemented as actual units, they could be added after the numbers, and the Min X/Y etc. could be kept. This way it may be more obvious to users that x range is in Hz and the y range is in dB then?

But if that is too much trouble, the current suggestion is enough to go with that, over the current implementation.

The key values could also have units exposed. Maybe losing the x and y labels will add some confusion? If the units(dB & Hz) were implemented as actual units, they could be added after the numbers, and the Min X/Y etc. could be kept. This way it may be more obvious to users that x range is in Hz and the y range is in dB then? But if that is too much trouble, the current suggestion is enough to go with that, over the current implementation.
Nate Rupsis added 2 commits 2024-02-13 16:13:15 +01:00
Nate Rupsis added 1 commit 2024-02-13 16:16:27 +01:00
This pull request has changes conflicting with the target branch.
  • scripts/startup/bl_ui/space_sequencer.py
  • source/blender/editors/interface/interface_templates.cc

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u VSE-equalizer-clipping:nrupsis-VSE-equalizer-clipping
git checkout nrupsis-VSE-equalizer-clipping
Sign in to join this conversation.
No reviewers
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
6 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#117700
No description provided.