Comments (4)
You can just move the ranges to a function. Or create the range once and then clone it. You won't notice any difference at all. A couple additional divisions and exponentiations during the plugin's startup will not show up on a profiler at all. I'll close this since there doesn't seem to be any indication that const floating point math is being stabilized soon (they haven't even decided on what to do when cross compiling yet).
from nih-plug.
I'd like NIH-plug's core features to work on the stable compiler. How do you propose to make them const without floating point math? Or do you propose conditionally making them const only on the nighly compiler? That sounds like a bit of a rabbit hole.
from nih-plug.
You can probably just use functions or closures instead if you want to reuse ranges or create multiple similar parameters.
from nih-plug.
As of now, I'm just manually computing the values and putting them in myself, but it would be nice for these utility functions to be available so I don't have to do this.
Opened as a sort of tracking issue for when floating point math is merged into stable
from nih-plug.
Related Issues (20)
- "Typo" in documentation for range of midi channel HOT 5
- Parameter order: Nested parameters are always behind non-nested parameters HOT 4
- Not sure how to use the `timing` of emitted midi events HOT 4
- More percise Buffer::len documentation. HOT 1
- midi_inverter example could not be opened in Ableton Live HOT 2
- #[nested] does not work correctly
- SysEx message support HOT 8
- VST3 com interface issue / fix HOT 1
- [NIH-PLUG+EGUI] How to scale interface? egui_ctx.set_pixels_per_point(2.0) has no effect. HOT 3
- Standalone application has very crackly audio when set to non-44.1khz sample rate. HOT 2
- Crisp, Diopser and Spectral Compressor Win7 GUI problems HOT 4
- Audio Unit support in the future? HOT 4
- Parameter inconsistency on startup with VST3 host HOT 1
- `nih_plug_vizia` custom cursors don't seem to work HOT 1
- Keyboard input HOT 1
- Question: How does the Buffer type handle mono in/stereo out scenarios HOT 2
- Headless build HOT 2
- FL Studio problem + some SPECTRAL COMPRESSOR suggestions HOT 2
- Safety Limiter stops working after rendering in Ableton Live 11, Win11 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nih-plug.