Audio stops when Envelope Decay reaches -61 dBFs – Bug or setting?
-
@Frankbeat In the meantime, have you tried the version in ScriptNode?
-
@aaronventure I created a Scriptnode Envelope Modulator in the Gain Processor slot and sticked in a simple_ar [poly]… It obviously gets triggered when I press a key but no sound is heard.
HiseSnippet 1500.3oc2X0raaaDDdojWmX2jzl1bo.4.OzCI.IVR42FzCV1R1IFIxVPx0n2bWStxZgI2kX2kRVsnnOB8bt0Ggds2x6PeQxaP6rbIEIkULbDrSKpMfAmYmg627+P2UJ7nJkPhbVY+IQTjyMv8mv0CaMjv3ncZibtEtCQooRWKqMmDQTJpOxwo5KMLbVYITxOue8MIADtGMmEBcff4QeCKjoy41s4qYAAaS7o6yBKH8SZtimf2RDHhA7TEWGEQ7NgbLcWhQrJXjyxa4yzBYeMQSUHmk1T3Oo+PwXtU9CXJ1QATCQCTe3EYYusHv2fXyynVCYA9cyraEB4f6l6EpZ8B2A2g4ylxO2a7EIG3lqQQ+gSkxvqZI303CAu4.ImBPZIKjtMtumjEoyOwfmOCuCGBNCHfauHTrxhbdGtk.DfqWKjbBcaIPLUg68r50efK7m6+cCh4dZlf6J36Jzz83269q9yqtxp+xptydzfAy8Ly0HEAAT4bO1Dokmmh2iGGdDU9.2QjfX5TAAyurOc4KlO0yZ0EDTv2gyz6EQSoySJZLmH.J0sAO886zlnIlfRJOPtHpTyLvwoMcDjgaCQqfaSUmnEQPN9YhePlivONfnKmNYpgRO.7Gkhgl.EWwzSJViMaN1ReX+Q84VBLWq8BB2ai6xzdCmOdqLG7BdsqZ7lVwdS7VCFP8z4fcI71+v4VddoCk6ZgxWh6qkTRHiebeRXDTRjfmUwoTMtLZhFcgah1URCDD+9repfXuq4lwf+RVl6ezL4p1HTDyKcWoHuGMhRzP3ufNWuYuduTJhilUq2udRxx9RnIN3JJdvdbJ320EswVRgRM.Lmj2kp3QcikGa7U4b5QGQkpx71MNDh8bNM.TF63XpbUTSrl40gnkrSKJcxsTeeRR7FlrjP2XF5GMC8img9IyP+zYne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oUNUQ+CQr9KA
-
@Dan-Korneff You mean, chances are it would help to change that in the source and recompile HISE?
-
@Frankbeat Admittedly, I only did a quick search through the source code. There were a couple spots where it appeared to be hard coded, but I don't know it's exact and complete implementation.
-
@Dan-Korneff Okay. But thanks anyway, mate!
-
@Frankbeat that‘s the line you need to change:
-
-
@Frankbeat no zero will cause the envelope to run indefinitely. Try something in between :)
0.001 means -60dB, 0.0005 is -66db 0.00025 is -72 dB etc y
-
@Christoph-Hart Alright, thank you very much!
-
Veery nice! Now I have a smooth logarithmic decay stopping at about -100dB.
And it was a charme to see how easy HISE can be recompiled. Never thought, I would do such things :beaming_face_with_smiling_eyes:
-
@Frankbeat welcome in the world of the real software developers, all that pain that you had to go through for setup your HISE environment finally pays off :)
-
@Christoph-Hart since you're handing out welcomes to the big boys' club, can you tell me what your workspace looks like?
How are you working on this thing? Anything out of the ordinary? What do code iterations look like? Are you closing and re-launching the app all the time?
My "big boy" development experience is limited to Unreal and its way of doing C++, where it mostly hot reloading so you can, most of the time, write live code.
Do you have something like that set up for HISE? Is there something JUCE-specific in the workflow?
-
@aaronventure No, I'm doing most of the work with a standard edit & recompile cycle in VS2022+Resharper but I find that to be not too annoying - the debug build takes 10-15 seconds to recompile if I'm working on a code piece that doesn't require recompiling all modules and there are a few convenient helpers to live-edit constant values & colours (the
JUCE_LIVE_CONSTANT()
stuff). I actually found the delay between writing code and seeing the result quite useful - it forces you to think a bit more about the code you're about to write.If I'm starting out with new features from scratch (eg. the ML stuff), I usually do it in a small isolated app that compiles faster than HISE and then when it's somewhat ready I move it into the big codebase.
-
Today's
65fb14f - - added HISE_SILENCE_THRESHOLD_DB preprocessor for changing the silence detection threshold for envelope decay values etc.
seems to be about addressing this.
/** This can be used to change the threshold of what is considered "silence" in HISE. This value is used at different places to figure out whether to stop smoothing, stop a decaying envelope curve, etc. It tries to use a sensible default here, but you can override this (as a positive value, it will calculate the gain factor by taking the number as negative dB value and convert it to a gain factor). */ #ifndef HISE_SILENCE_THRESHOLD_DB #define HISE_SILENCE_THRESHOLD_DB 60 #endif