Decaytime PaintRoutines



  • I'll try to implement this with PaintRoutines. This should be a graphical (not animated but changeable) representation of the decay time. This would also be something for the snippet category.

    Is there a PaintRoutines mathematical genius here?
    Ulrik ? 🙂

    Bildschirmfoto 2021-08-13 um 10.39.23.png

    Are 2 alternatives
    The upper one could be much more complicated due to the Bezier curve, I guess.
    The dots are here only for understanding and actually not visible



  • @MikeB Since simple graphic paint methods don't handle quadratic lines, you'll need to use a path:

    HiseSnippet 1195.3ocsW0maaaCEmxwbs1coqEXG.g7WxCdt1aoe.DLTm3jrYzlT25jrArMTPKQaSDZROIplZTjyvtBC6Brci1vNA6Fr8HojkThRVhAl.b.36yeuG+QxWFDJ8oQQxPjSsiVLmhb9X7vEB0zdSILAp+tHm6iOfDongtVQ6rXNIJhFfbbV6q0BbpUEY996muCgSD9zLQHzIRlO8krYLUlzAceAiy2mDPOhMKm0a1suuTzSxkw.dVC2FMm3eJYB8Ph1rJXjyGsW.SICGpHJZDXyNxfECmJOSXs+DVDaDmpWzAMDBjULp2TFOXPZsFgPNUGjU4qYq7OEe.KfsTdVG3AFEtYdjuG3ToHjpV.RctJHsujGnCvU.OmbvqpEdODOzOjMWkoQis6g6KfMmwDnsmGVVaQUd.F2SBVHTslQNkteHrXoGdOoc6ltOtc6Fasd80qCM+Hk66HgtCHBJui6W4l56Dppmb1bo.V3sgU8FZux7YmXkRJtZmRzugMWqW2FjVADEo0.hZZNG8CoPyTKzyZchsQT0.XSQ8FYrhIndiiE9JlT3MoQ8OTu1jViAd01btmkCE0ZDGHP5P3BeSz9a0rzfylxTTsA0r1nlxhxfTKeNkD5kFfKnLRQBUGROaX7HCTa2BZlveRM29W1XWuLG4.recLIHjzvptj39SF8Jl+QRqmPe7DBOl503Qa1zsiNMWPtQZZdo7H5UFbM.tbbK3eoEahelZLmsWpeIino8ihwSSQHv9JrM+859TVM7sr.s0te1kqpTAeCkMYpxqwOVHjSZA8oyL4pHNZZxTS2MarU8ygeVBGSnKB2TRiqT7BgbTGMoKTx87SopMArB4G1f9.vKxndVTY0sUllP5bMmzTtmC+Jm8aR0FMrTPSB6Q37Q.8zqHNROdTNhSNDc8XV2axe5JizAMeic2Z3u7va4EPQXoCUNLenTQekvybDs940cunpwiKUWRv3zvRUqe5H75bzSDOaDMLsyjZHbeZwKru2M6BaeaeImgRQeAS8p4zj0YWoq0Yq5TssQKK17hxpw7RMkVIlkI5xuXfR12f2NpjXNXpx7xw8Sd4XHmEPCQL.i2Aa3bHSuI4EX2e3m+qmitJmsawFmqgS1uK3t86396BTN8KXI.B.4bZnhoa0N6ReGLNf88rZ3coQmpjygTsjoAuvaS65ou1oYolrdWrkwhdeVBOt6hkK5dR2yz2jfbvN+lCBM0bmgd0efL8mkon5+YaIKE+tJWJ9k3t4iyctAcnrH4NJWj9y3tJ56gX7I3W1+v8bej6qOd6cey1nkkvuhxWBdl4ltzLAvjIxfXNQUbbE8bYIJfiDElKP+1uHhoVjetsawLLsKcFlNkwHugv8g3ALk+zxwakRvqlh++LdSlHbc7diGS8UYfsJd+uaUG+6V.E6.NSNfnBY.CBeX7rgv7J9T.IB3PPjlSTQypsqaqWq6LCoh.yh+A9RT1Qu1IQYmTknYD+P4a8sG20ybdWiD.SBy310f49g0tKOkiwvq+nYvnvu02W2J9b.6k6yWrB97kqfOatB973UvmmrB97zUvmmcs9n+uP1NVImYOl.BFrm41VGm8DDfkYXjn+EvtfzgC
    


  • @ustk
    Super - Thank you

    I have already connected it to the decay - so far it works wonderfully.

    A small problem that I still have to / want to solve is the missing logarithm.

    Decay has a value of 0 - 20000ms

    With a linear representation of this span, you don't see the first 100ms, then the filled path slowly appears.

    I have already tried it with Math.log(value) etc. but have not yet come to a useful result.

    HiseSnippet 1594.3oc4X0sSabDEdVfIIlDHMpU8tJsB0KVZol0TRZkhpxB1PBJAhCFHUppJc7tisGwty3r6rPnQbeuq8wHuB8t7HTo9hjaZus8Lyrq20fg3hDQIpFgklyOy7c9Yly43lwBeZRhHFYUYmi5SQV2.25HtrW8dDFGsQCj0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RQe3nFD9Axlicl7RipTG8odMrIMB8hhCbWuiFrvaOuCUuZTvk40S+FQYJLIMJu0jJWA8265poOf5RkI2t6oEEUBq23s5eKvpWYr1OwKhEDDRaJRXpboBw9UuHQ.roWAq6pJhTrE+xe5kHo8aw94g74Ioc5v.ovX6nDjj9Bo57085gx7HXqiAQy8FXqkNggb0wHVWfiWGVxT9sDOyQdS7i1Xq0rWz9I6tRisWAMbvvK3TAiFdnS2RDzXVdSBk6VS0hZFCk2pbaQpVe3fW7nx9jKkV3FW3dKbSlzu2nw6Di.upKsWx3Mqg3Yvq0oC0WV.1ovq+8W9c+VFJyZfx0wsfhE5dC0.4S0qseJ4.p88obZrxoV6bFT4OF2AU5O1Cp7XeIb76DS3I8gtVJuwsnQrcfqKIkItaBz9M84aqhxkoWWPhGIq2bu0Aibj5zhHSi0oKqDIR4xgROlbriIidfI2QMQxTuWOvz6tGGlb77lukY5toAiWEq6pK6gfSLlyPXaSAWzumfy7KGp2lBc.1sKMtLhGoY.8JBsDUWONeoMP+v+onZDtfxO4Yn7HJ.sxB9.HnTr9y8L0QJ0gPqTXHmA2Ce8e8pu70aSgYhRF5l0Z9hM00wtLb63wL0XFrwHs026e+tnwr4X0DQd+Fr2vzdwGB90ahyRX+fvwNKN6tzGBt1ysOmI++YeNleFptaRfWwU8juUZTKn8BeJfDNL9hZJPqITsHXV6pVa5ufGnW7OvmLl0TqsxXVKm46jyHh3GKdluYXP0atWSSArat9WwsBdS0Z6Ay.hwtUcQvTMrm46qb2eE3eFsNKcAz4qu.5r7EPmaeAz4NW.c9lKfNe64pip+rURkhHyUQfPy0zyhaYsFm.Yx5rdz+B4H5eZB
    


  • @MikeB Instead of dividing the value by 20000, prefer component.getValueNormalized(). It is the 0-1 linear representation of the slider's value, no matter the range.



  • @ustk That was it 👍
    thank you very much.


Log in to reply
 

9
Online

1.6k
Users

4.6k
Topics

42.5k
Posts