Skip to content

Commit d2cbee7

Browse files
committed
add ADR
1 parent f6998d1 commit d2cbee7

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# ADR-006: gui2dpf Templates
2+
3+
Date: 2026-05-13
4+
Issue: https://github.com/Wasted-Audio/hvcc/issues/296
5+
6+
## Context
7+
8+
A new [PDVG](https://github.com/Wasted-Audio/PDVG) widget library for DPF was created, which implements Plugdata GUI objects using NanoVG.
9+
10+
We can now use this widget library in combination with the GUI JSON, created by the pd2gui stage in hvcc, to generate an emulated UI for the DPF generator.
11+
12+
## Decision
13+
14+
We create a new c2dpf code-path, with a set of templates, to combine the GUI JSON with the new widget library.
15+
16+
In order to have backwards compatibility with the previous ImGui UI implementation we introduce a new `DPFUIType` in the meta JSON. This allows to keep the old boolean behavior, which selects ImGui as the GUI type, but allows to extend it using integer enumeration. This could allow for other UI extensions in the future as well.
17+
18+
We add the ability to create `@hv_event` based parameters to allow for the same behavior as `[bang]` object. This brings DPF on par with Unity and Javascript implementations.
19+
20+
The GUI JSON will need some minor modifications to better align to the PDVG requirements.
21+
22+
## MVP Definition
23+
24+
The user should be able to generate a GUI for their DPF plugins that matches the basic Plugdata UI as close as possible.
25+
26+
## Future Improvements
27+
28+
More GUI objects and better object behavior may be added in the future. More accuracy in the layout and design may also be required.

0 commit comments

Comments
 (0)