1. IMPORTANT:
    We launched a new online community and this space is now closed. This community will be available as a read-only resources until further notice.
    JOIN US HERE

Advice: changing Adsr via key

Discussion in 'Scripting Workshop' started by Antylamon, Aug 27, 2021.

  1. Antylamon

    Antylamon New Member

    Messages:
    2
    Hey

    longtime lurker first time posting
    so I’m in the middle of making a bass plugin in kontakt 6

    what I’m trying to is change the adsr of all groups depending on it being quarter notes, whole notes etc

    what would be the best way to do it?? Scripting or can I do it tied to a midi note on the keyboard??

    ideally if I can do it via a midi note or a button in gui would be great

    any advice would be amazing, thanks everyone
     
  2. EvilDragon

    EvilDragon Well-Known Member

    Messages:
    19,938
    Unfortunately you cannot do this during a note. The envelope is precalculated before the note starts, and you need to know the note length before you set the envelope times. So the order of things here just isn't conductive to what you want to do. Now, if you'd be using keyswitches to choose between quarters, eights etc, then you can make them explicitly set the envelope times however you want them, but in realtime playback this is not possible.


    Sorry it took months to reply!