Robbert van der Helm
b1c34146ee
Get rid of automatically generated bypass params
...
I thought these were mandatory in VST3, they are not.
2022-04-06 13:34:32 +02:00
Robbert van der Helm
f301726f37
Fix sample accurate automation for VST3
2022-03-29 00:56:04 +02:00
Robbert van der Helm
f9db59f4bc
Add a resize request callback to VST3 GuiContext
...
With some more work in baseview this can be used to resize windows from
the plugin.
2022-03-27 19:23:43 +02:00
Robbert van der Helm
8d71369b2e
Rename .is_bypass() to .make_bypass()
...
Because just like `.bypass()` sounds like a getter, so does
`.is_bypass()`.
2022-03-27 03:45:06 +02:00
Robbert van der Helm
8090d0ae41
Add explicit bypass parameter handling
...
Plugins can mark a `BoolParam` with `.is_bypass()`. Hosts can then link
use that parameter directly in their own UI.
2022-03-23 17:42:48 +01:00
Robbert van der Helm
0cb26b5b4c
Don't process audio for bypassed plugins
2022-03-23 15:49:34 +01:00
Robbert van der Helm
c6a34a63c4
Hide non-automatable parameters
2022-03-23 13:52:23 +01:00
Robbert van der Helm
e9983cf71c
Use ParamFlags::NON_AUTOMATABLE in the wrappers
...
Setting this will cause the parameter to be hidden from the host's
generic UI and automation lanes.
2022-03-23 13:11:00 +01:00
Robbert van der Helm
f084f14095
Refactor GUIs to use param's own default value
...
This removes the need to pass a lot of these `ParamSetter`s and
`GuiContext`s around. We also don't need explicit events to reset a
parameter anymore since you can get this information from the parameter
itself.
2022-03-21 13:11:36 +01:00
Robbert van der Helm
c22e522629
Greatly simplify Params trait
...
This now is a single vector with all of the information in the correct
order instead of the hashmaps and a vector. This avoids deduplication,
and it especially makes manual `Params` implementations a lot more
convenient since you can't mess up with mismatching IDs between the
methods.
To accommodate exactly this, the persistent fields methods also have a
default implementation and the trait has been marked as `unsafe` since
it's the programmer's responsibility to make sure these `ParamPtr`s will
remain valid.
2022-03-20 13:05:02 +01:00
Robbert van der Helm
b9d79771cc
Use String instead of &'static str in Params
...
This may hurt performance in generic UIs a bit, but it will allow you to
programatically generate custom Params implementations for repeated
Parameters structs.
2022-03-20 02:14:18 +01:00
Robbert van der Helm
8077f10c27
Replace index based for loop
...
This initially did a linear search within the loop so iterating over the
collection wasn't possible. Now we need to use a hashmap anyways, so
this can be simplified again.
2022-03-17 23:00:15 +01:00
Robbert van der Helm
edb492932f
Fix parent finding in VST3 unit transformation
...
Oops.
2022-03-16 22:01:47 +01:00
Robbert van der Helm
d9e943a88d
Filter out the root group
2022-03-16 22:00:31 +01:00
Robbert van der Helm
8d6a7ae861
Add Debug implementations for ParamUnits
2022-03-16 21:55:59 +01:00
Robbert van der Helm
6e31e18b88
Add parameter groups to VST3 wrapper using units
...
This was such a mess to implement, and none of the hosts I have
installed even support it.
2022-03-16 20:40:11 +01:00
Robbert van der Helm
2bf32aa771
Add the ParamUnits to the VST3 wrapper
2022-03-16 20:26:02 +01:00
Robbert van der Helm
ea30ba7ffb
Initialize parameter fields earlier
...
This seems a bit nicer than initializing them on the struct as empty and
then mutating the struct.
2022-03-16 20:26:02 +01:00
Robbert van der Helm
63a7aadb75
Add an abstraction around VST3's unit shenanigans
...
And the ability to convert group paths to them.
2022-03-16 20:26:02 +01:00
Robbert van der Helm
bbf6e009d1
Add a todo for VST3 parameter units
...
Implementing this is going to be a pain.
2022-03-16 17:18:25 +01:00
Robbert van der Helm
e1f0f619ed
Implement parameter change notifications for VST3
2022-03-13 18:28:56 +01:00
Robbert van der Helm
5d3527c5c2
Also implement sample accurate automation for VST3
2022-03-10 23:39:58 +01:00
Robbert van der Helm
37e1b9523b
Optionally disallow allocations in reset function
2022-03-08 00:46:17 +01:00
Robbert van der Helm
70d3b5d557
Add a reset function to the plugin trait
...
This is used as part of CLAP 0.19/0.20, and we can just always call it
after the initialize function to stay consistent for VST3 plugins.
2022-03-08 00:35:55 +01:00
Robbert van der Helm
10ced981bd
Remove todos about fixing skewed discrete ranges
...
Because those have been removed.
2022-03-08 00:27:25 +01:00
Robbert van der Helm
9267a8371c
Add DPI scaling support
...
That hopefully works.
2022-03-05 13:37:35 +01:00
Robbert van der Helm
e2605c8cee
Add transport information for VST3 and CLAP
...
This is available through the process context.
2022-03-04 15:05:00 +01:00
Robbert van der Helm
99f97978a9
Reorder ProcessContext methods
...
When we'll add more things here the more common getters should come
first and less common operations like changing latency should come last.
2022-03-04 13:22:58 +01:00
Robbert van der Helm
80457ac0f9
Fix doc links after prelude migration
2022-03-03 23:30:29 +01:00
Robbert van der Helm
f581294d7b
Update rustdoc formatting for links
...
Apparently it showed this text verbatim, and not in monospace.
2022-03-03 23:05:12 +01:00
Robbert van der Helm
80b1bf12f2
Use AtomicRefCell for all uncontested locks
...
Since it would be a bug if those locks were somehow contested.
2022-03-03 21:21:08 +01:00
Robbert van der Helm
27570be4a6
Implement platform-specific CLAP GUI extensions
2022-03-03 18:29:37 +01:00
Robbert van der Helm
f91958e971
Move VST3 GuiContext to a separate object
2022-03-03 16:33:41 +01:00
Robbert van der Helm
fa01d3bfeb
Generate most of ParamPtr with a macro
2022-03-03 14:28:52 +01:00
Robbert van der Helm
7e9eadfc64
Implement state handling for CLAP
2022-03-02 16:25:30 +01:00
Robbert van der Helm
ec452bd41d
Also move state deserialization to a function
2022-03-02 16:00:11 +01:00
Robbert van der Helm
7a3d3b8c8e
Move state serialization to a helper function
...
So we can reuse it for the CLAP wrapper.
2022-03-02 15:49:40 +01:00
Robbert van der Helm
37e88d063f
Change bypassed Enabled label to Not Bypassed
...
To remove ambiguity.
2022-03-01 23:55:33 +01:00
Robbert van der Helm
57ed66f8f6
Implement basic CLAP audio processing
2022-03-01 23:50:10 +01:00
Robbert van der Helm
3bd83ca55a
Implement CLAP input parameter handling
2022-03-01 19:31:16 +01:00
Robbert van der Helm
a58c796fc0
Add an output slices field to Buffer
2022-03-01 15:43:13 +01:00
Robbert van der Helm
e5edbac2b4
Add comments for potential parameter quirks
2022-03-01 02:15:23 +01:00
Robbert van der Helm
ae3c00d069
Implement CLAP parmater info
2022-03-01 01:54:04 +01:00
Robbert van der Helm
0fd80330bb
Move parameter step count to ParamPtr
2022-03-01 01:53:48 +01:00
Robbert van der Helm
1c4a5bc4da
Add stubs for the CLAP params extension
2022-03-01 01:27:01 +01:00
Robbert van der Helm
4ad972ea23
Add stubs for a CLAP ProcessContext implementation
...
And the `clap_plugin::active()` function.
2022-02-28 19:45:41 +01:00
Robbert van der Helm
41663a404a
Change VST3 wrapper trait bounds to Vst3Plugin
...
To be consistent with the CLAP wrapper
2022-02-28 19:21:14 +01:00
Robbert van der Helm
b209c9caf3
Move the event loop to its own module
...
Now that the context module is becoming larger and larger.
2022-02-28 12:57:01 +01:00
Robbert van der Helm
0675feb54b
Keep a reference to WrapperView in WrapperInner
2022-02-27 00:51:41 +01:00
Robbert van der Helm
8ddad4e893
Store the IPlugFrame instance
2022-02-27 00:51:41 +01:00