Paint Routines ADSR
-
Has anyone ever displayed an ADSR form with the help of paint routines?
Asked the other way round
Can this be extended to ADSR?HiseSnippet 1591.3oc4X8zaaTDEe1Xus0t0oTABwwUQbXMDbsSSKHUg5l3jzF0lTq3zTjPn1w6N1dT1cF2cmMogRQbjabiKbgibjOB8C.GPhuH8BbEdyL65csiSpSTaTqXihkl2+leu+ru4MaqPtKIJhGhLJs8ACHHiKY19.lney9XJCs9JHi22zINZWqOyZEhK9f6FGtGAs7ACvQQDOjgwL2VJnQohH0yKu0xXeLykjQBg1gScI2iFPEYTa4bWpu+ZXOx1zfbRuny5tbVStOOF.UAy5nAX2cw8HahkhMiIx3bq5QE7v1BrfDgLJtL26f1846yzxuCMh1wmHWz.0FLjl7ZbeOIhkTQM6S88Zk57QHjgYqrPQAcn3CL2f5QGROKj7dJFVYZjKdTvXliCdMxCu5SO7LxAuhZ3cEy1tgzAhLNRrcQy0YBRXWr6HooBZYQy7KEMaxAIXhZA3cIqEBKFpg8MpWedqqWud0aVobkxPhHRXsGNzpElQ7aX8kVo51iHZxCFvYvB64zrmSpUlNKGKDb1QqTB+wzZo6rR6sVksGwmOfHUVUNJUcCtWrOFhr1yoDxZnTyogqFE07vBbsVXQ+b6raHAxFRh1iHaDQzBxphs3wBJiX2Ml4JnblcupkeV4R8p0EJRWx22VWPFUqiOTMJMgE7zSpulyPA5ERHLo.kzxH5SixfTMWeBNzN0.iwLRfCEaR1ucbGETqWCxFvOohKAtUxyXp9jXrWHVPc2laqXAArcv9wD6pWcw4sZHszXzUT0QiIXPeHb.1RAgFYP3PtCOhjB2LXJ+UlLwPXGxBeszMx1+GR8jRa8IGFQoDtCg1quvt52jXxqd0d0.+ae09LJFlWsKyasXVVQlzNRIqdyxOG9uh5OJS5mVoocKN6tLdmFxxlPtusaZ057f6.PrZkxOS5ekxJezPenfC8lM4gAXe52R7rqlhrQqskZujPDR6DKH1WOcKtYl4CICjEmp.6yg+m76QJDOWUcsnB2Mw99cf5T6QcGcttR4bd6lb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EABsVU8AXLLVkggJYUUO5+.JCcuGA
-
Why you want this?
-
@MikeB You need to connect the hold+decay I guess. But can't help with the LAF.
-
@d-healey Sorry..you didn't asked me but
"The most common form of envelope generator is controlled with four parameters:
attack, decay, sustain and release (ADSR). " (https://en.wikipedia.org/wiki/Envelope_(music))So it's useful for classic synths or whatever..
-
@UD-AUDIO Just use the AHDSR, do you think users will complain about extra control? :p
-
@d-healey I don't dislike the AHDSR. But sometimes you might want ADSR only.
Just have a look at classic synths out there..there are a lot using ADSR.
So I think there is no best option.
And in FL Studio for example there is also DAHDSR which looks like this: -
Well it's a lot of work to remove functionality :p What about just setting the hold time to 0?
HiseSnippet 1142.3oc4X0raaaDDdokWmJE+SRQPQQOQXzCN.NARoNIEoGhr0ONB0xVvzIs2BVStRZgI2kc4RGKDDfdnG5KPeB5qQO368RAJ589Hj2.0YIoDorIDTDparQ0IN+Q9sy7Mytq5HE1zf.gDYT7nA9TjwxXqAbU+Z8ILNpUcjwp31j.EUZFqZmA9jf.pCxvnvtZEFEWDE868OeGhKgaSSUgPuRvro6w7XpTscp9sLW2lDG5QLuLduU0V1BdMgqHDvSAbYjOw9DRO59DsaKfQFK0vgoDRKEQQCPFKtivYfUewa3w9+JV.6XWpVnBxBdQwpaJbczHV+LpVelqSmQq6.Dx.2IMKTHNKbObalCar9zrwchLXlFQ17gwBSCdUlS3YjAdKFCu6hsrkLeUpEM1tMtEGJTcIPIHKrh8EYbNtl.bfqdnG4DZSIHLNfMdR4xaZ93xku+2zMjaqXBtofuuPQOfuw8K81REK8tRlWzT2t4ZS+YjBWWpLWy5ptbZAtAOz6XpbSySItgzwNBK+IyuKMa4W63UcFGE7Vbl5.eZhbZEnRNU.TRZCd5kspSTDcQIQG3mOUpXZ3XTmdJv1iKQEw0oAmnD9Q954K352fwxpD9UbQooqfnX7dGw.Xy.DrFNqpJnyRaONn5fTg1UeCyQ0GHuF+lAB0mx50Wok9qT7Npgd6WT25vckD+9ni6Mp8p3RiZQYJpWp1gCG9ESp8QIp+QsZE8LUpy+94CGp0FkTLdF9sqTxzb8w4tVNq+Ly0i97lM3mRcgbUk02LxoVbG5Yf4GTYkRuClIbINNzoIbBcIpIa+zybRL.blI34ZxLOfoFjclzGPOY4b6IykQLiv8t3NLkc+7w6B4fWfYcUi2jIbqfazsK0VkB1EwM+94cb17AkUigxswVLNMZamHf7YQxleG4Tp4tTNUpSpUlxNO+wrtyi+LuyyA1J3yejjvC7EAS7hsndrif14frJeY.LPk9CGpqxY0WSPj4Z58OuIrHyMFKhJTFQW11SDxUSPOJLWawLYWSF+yY+lE+Hrc3+9sdWoSJ9.18dgNW5HV2A32d9tzQiDiv6mB6WzkD5pFOnbBD2VvE98EblcV1vgTkj0qGUlccj6haakBNKUpl6U8PpKkjkY+kU2CXjDIjynSKuTX1xKy1IYxs1843X3Zp6RMuVMsesXXeq3MUSFxegc3tBJb0BkmNwPn5TaxfKo8BU4e9OqFqYOJ.srN9BXAeoW2XE+zuT0JLPkNi8u+U+0O+RDlsp1vVb0wVvyHaYkrrkq4GHX0QXMthb8FrKiinE2DxqqgSHr2HRrqhS5ktIjZm5YXK7+yyvdnHTeEs1DXJNbCM79gdVvQGso.R3bpaf9lXKnO9WrbYsb7YG4NQBv8oFlXrhV1HwXkQF+O4a3QrkhWaGeqa8L2OIRCrt4Q+kKEws0xlUPQ2DGhCW9gkQdvY9dsssNc+.H+jeLOZNh4qliX1ZNh4wyQLOYNh4oyQLe8TiQeb6sCUBu3VQPQmFw291nAm.L4HVO5e.rS7zTD
-
@d-healey
@staiff said in Global Modulator within Containers:another case: when you want to create just an ADSR (instead of AHDSR) : you can link the Hold and decay for just 1 button slider.
Tried that but it's messy and the decay is not a straight line when the decay curve is set to 50% etc.
The "MASTER" knob should have the same properties (ms).HiseSnippet 1996.3oc4Y80aabbD+NIsxVzl1I.MMutg.EkrwVlTwosHpIlRTR1DNThPTwIAFFIqtao3Bcb2C2sTQLFFHu09VeuneB5aAHe.LZQdJ4g.j7AveBJ52.0Y28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ZMJ5Hpc9idboSQ0v7DJe+euogxGRAnYe9pg2RV+TUikZ0YSn2nXY1SAO6K+o5OcWZ.kDmq59ldhN59CdQ31QyXpQYjwHw5mdd4tr00RwpIh7xMXuJRmV7pfe85njD1WIbrWCkbW5UAW641o07+eemVmeQKnKB7qL8T+lHnylUv5vM9+8w6cEiTCw0g.kJUSPt8ng8f1H8n.h4vbypuUj6bpupiYcc0ZEb5Q495EvvXmjrYC0Z2jMajt4uHmwPhWj3y7Le0GUgsKqo.1MW+mVaITG0Z7ju2CBUe45pYkYelmmJm9lf+oXYV4BHy6bAj41W.Yd2KfL+9KfL+gKfL+wyUFUSvqMRJFZx+ABc2zL5tqYN.8UAm+KU860.C
-
@d-healey Because:
a. The animation in the linked ADHSR floating tile graph bothers me.
b. Because the approach you suggested some time ago - simply showing an unused module - doesn't work properly.
I can't get back to 0 with the slider - even though it shows zero the graph and the ADHSR module slider is at 2 or 5 ms.I would also have to create a display dummy for each ADHSR module (8 of them).
That seems overkill.A reasonable paint routine version would be the optimum here.
I already have a solution from ulrik for decay (see snippet). Perhaps someone with the necessary mathematical knowledge can expand it and then post it as a snippet for everyone.
-
@UD-AUDIO My question is only about the representation in the GUI, not about the function or the connection - which are known to me :-)
-
@MikeB Stupid me :D
-
This is my attempt - I can't get much further than that.
I can't connect the knobs with the dots
And above all I don't get any bezier curves in the attack, decay and release.If someone with the basic mathematical knowledge of Leonardo Fibonacci can help me?
HiseSnippet 1164.3ocsV07aaaCEmxIZsVcdnEXG2AgbXPdv0UNezNffg7gSxPPaRcixJ1sBFJZahHSZHQ0Dig.z+B18rS85tsi6TOu8evNtC61tr+C1djTxRNwMI1.yWrduGeO9i+HeezIVPnIIhXjU0iGMjhr9T6fQbY+18wLNZ+cPVeg8lGvNkts6ic2Zmfib6.FjGIRkLNEs8ng3jDZHxxpx2p7vp5hH8u+YiswQXNgVnBgdsfQnufMfIKz1Yymyhh1CGROlMnzpWcy8IBdaQjHEP2B19ngXxo3dzCwpkUwFY8I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iruRVwLATdnV3egeYFaojsxL1J2HjaQhEugXpBoFk69ZM.l35IZqZefR1cbUSaan4NZ.Lg4aHDEU7X.6S2mkmCeVYN7Y04vm0lCed5b3yylCe95azG0v8akJECLoIfhN6paCXYsKGCuxzuHQ+GfGoFZz
-
No one who can help me here?
-
@MikeB Dear Mike
Why Not Making It With Sliders And LAF?
So They Look Nicer, And Draggable Aswell?You Just Need Rectangles And Triangle, Right?
-
@Natan Actually, I would like to display this in my gui
only without animation like in the FloatingTile
But drawn as a path and moved by the knobs.
As in my first snippet above.I hope one of the PaintRoutine masters here has a few minutes to do this.
-
@MikeB I really think we can do this with the default floating tile and just disable the animation in the source (maybe we could even add it as a setting).
-
@d-healey That would be fantastic of course. I already thought that it can't be impossible to switch off the animation and wanted to search the source code. But if you can do it, that's better.
Thanks Dave. -
@MikeB I'll look into it. Just so I can check though, you have a project with several envelopes and they all have the same adsr values, so you just need to display one?
-
@d-healey
Great - no I have several ADSR FloatingTiles and they all have different values.
Therefore a standard AHDSR graph without animation would be wonderful.
Alternatively an AHDSR-Graph drawn with PaintRoutine. -
@MikeB Dear Mike
You Don't Like That Moving Circle Animation, On Adsr! Correct?