Velocity Modulator on Attack Time on Gain
-
@d-healey we were thinking of doing so
-
@Casmat In that case I would use a "min attack" knob on your UI that is not connected to the AHDSR directly but instead is used as the baseline for a calculation of the final attack which is then passed to the AHDSR's attack knob.
Here's a snippet demonstrating it. I've also added a table to the script so you can adjust the velocity curve. Your UI knob just needs to be connected to the min attack knob in this script.
HiseSnippet 1379.3oc2X8zaaTDEeVmLoX2zTJf37HKNrABk3zlVjpP0o4OMQst0JaZfaQS1cr8nr6LK6NqaMHDW4VuwY9nzOBf3KROyAf2L6506l35531hZHGr77dy689Mu+6zNR5xhikQHqpGLHjgrVD6LPn5sYOJWf1aKj0R3VzXEKhjR5dCBowwLOjk0b2WSvp57Hyeu7t2i5SEtrQjPnCkbW1C4Ab0Hpsa9.tu+NTO1A7fB29lM2yUJ1T5KS.7LGdUTH08DZW1in5qUAirVXaOtRF4nnJVLbm6I8F3zS9TQ58OjGyO1moOz.4.JJkLZydbeu1CeqwHjEt8nW9bou7OA2h6wyoOxC7gFFjQRTzGXUYRPpw4.RVEfz7oP5ZXG2HdnZDGMdtLdOADP5PAWcQnjdWj0KvaJgKHTWOfdBamH3Pt.12Z0UWg.er7c5jHbUbofHEORpXOVXubserV0Z+TMxoY0oyX4oMSjz2mEMV15nazjDzVjDbLKZERepeBK+hvyurOcgoym5l9pKbQoXOAW83PV14cj9dZek96mMBfxbav2dxdaQUTcPIiFbuPVjhqgi0Vr9PVcZHpJdKV7IJYHjWel3Gj4H8R7opxoS55lLFf+nTLTGnDwb0fh0UmibrUmXN1zBwqgayUt8FOFqLFLBdp2EXLqx7J3s6zg4pFAv4w67cyZY3za9kRM+kwNbAyzVzX7O0bl7sz9Lx8YBVj140XBcF+8osyX3T2Y7wtJv7GDQEwgx3RJ1gEvOPJzdgQDeRLzHf886qilEouojFMVVu7t6.OxwJiCUkDYRK1HPlHTkRClqbbX9oqzsbEQg6Ol9jy+tp087SWNynlHuYsw+3LpiPWiw0NuxOWIuedLSsKi2smxdccG7Z0frhXEz9LhvD8Y9POJx2PLYpWuKSkWYaWeic2xYex1YWpQ8QBqN1eyjn9ZAGZFpm2AT3kaW2vo9JDXlg1dCuqFHskPK.HXYupg8ZqCezX8Bn5Dwws3hMTJXHdYk+.g7X654LA8eiFZo0BWTJsYrqGH8zPnttjn9qbrkuzk5S5CFJGjfGv7LNTOcwtE3hgcIzTODbBtP+K6kIeEowZ2d46TcnBnCgaexmSrKAltFvPeV8kIeI4zbRswxFER9hWEav2TcXfR+3fKDwONQwryolJyJY.Aj38uww32ViimzHXqJYnBLuJaJPZEgIlh3PMxkvl.Mxf2hcg7zCu0KLhxUxboJYoLk33y8XQFsbYbdn5TZp4yaNSaBnwdPHzBV2abgWG5eF3Qszlavvu7TtGLpAN7WvgdlBd8oeMsgctlWbpdRF0eKqL0WCTQrZfNZs.VWGhB3dd9rgUy529e+Ove284Mgs9Cc3+.q3PAH+O+3u7mMiS5zgqs.lDDi5v8ChgL5v8BfJMj0GggwNDOVGZhuhDeBzT1mKNg4cfzDczU1ZbXF1cAX8oR81uZJFuD1zZMasoS0lsD1ZIExvdRA2sXp59Lvg0sKKpHhG6yHMdllyTPAawboCNC0rfeJkeaki9iloTdHCfVwKtKLMaz4OqoQc4DdQTSmjXUosYzX1mQiKsex1txVln4L41OG+XsIkZbEb1zFSB04Nu3bO+uwavJ1KMDqoQj2uA6hXSZwEA+5UwYIrWHbrKgypktH3Zm3uJbt+e+qB2Wln3htsnP2Z87tGkD3.+XLWFXcgf4qWKxphd9b54UGNK2gI7LGzCUyX1Pe1JiYigL+OwFAT2H4QtoaEo6s9AFJv6VX9mrUE2Relz3rKUAKJvOx0srpNifqMqBdiYUvaNqBt9rJ3slUAu8rJ3W+5ET+Cc2HQICRKMQnVs21r5pk01B8RmlJBz+BTIh82L
-
@d-healey Ahhh, that looks amazing, just modified the attack line slightly to match my use case! Thanks a lot!!
HiseSnippet 1315.3oc4X0raaaDDlTRaRkbhSCZQOSHzCzstohNwNEHnHxVRN1HQ1BlNt4VvJxURKL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