Smoothing enabled on RAW C++?
-
Hi guys, it's being a while! I am using the RAW C++ API with huge success. I can tell @Christoph-Hart created an arsenal of classes and tools that makes a non-C++ savvy guy like me, dive into weirdo stuff and don't get frustrated in the journey!
I got a question I was trying to answer by myself diving into the HISE source for a long time, but can't figure out.
For some reason (a smoother I cannot find I guess), HISE compiled on the C++ API way smoothes audio signal. and same signal compiled the regular ways, does not. See picts.
Is there any way to deactivate smoothing on the RAW API?
-
@hisefilo looks like a tailing but in attack. Any clue @Christoph-Hart ?
-
@hisefilo figured out! Don't know why but you cannot pass attack values lower than 5ms on SimpleEnvelope nor AHDSR.... Fixed that changing default values instead of passing the attributes.
-
@hisefilo Cool! Do you make a pull request for this?
-
@ustk not really. It's a workaround I think. The modulator is not listening any value under default values. I guess a proper solution is needed
-
Are you sure that there's no error in your code? There's absolutely nothing in the envelope's code that could enforce a threshold of 5 ms. Have you stepped through in the debugger? I would put a breakpoint in one of the envelope's setInternalAttribute() method, check the value that is passed in if you call it with a lower value and check the stack trace where it is changed.
-
@Christoph-Hart still trying to find where it happens. I replaced many parts of the source code so... Maybe I mistaked somewhere. Will report later