HISE Logo Forum
    • Categories
    • Register
    • Login

    Merry Christmas: Polyphonic FLEX Envelope

    Scheduled Pinned Locked Moved ScriptNode
    2 Posts 2 Posters 462 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      aaronventure
      last edited by

      e027ff8a-6da5-4156-9908-1f8b3b0b7e27-image.png

      Happy Holidays, folks! Here's my gift to you all. Over the past few months I saw a few threads asking about Kontakt's flex envelope so I gave it shot at recreating it in ScriptNode. It lacks individual point modulation as we can't, as of this date, access them inside the network.

      • Use this as a script envelope modulator. It is fully polyphonic.
      • Load it in after loading the Table Envelope. Use the Table Envelope for Attacks and Releases. I tried recreating these here as well to have it all in one view, but always ran into problems with clicking. If there was a Table Envelope node like all the other envelope nodes that automatically triggers on note-on/off and kills the voice, it would be great.
      • Attack Time should be set to whatever your attack time for the Table Envelope is. There's a ramp that acts as a timer, and once the attack finishes, the flex envelope starts doing its thing.
      • It acts like a factor, multiplying the output from the Table Envelope. That way the gain perfectly fades into the flex and out to a release.
      • Right click drag on lines to make them into curves. If you decay the Flex to 0, the Release won't play.
      • Looping the Flex goes from the end -- you're setting the start point of the loop as the percentage of the table's x axis
      • If you need longer timings, open the collapsed node, find the ramps, right click on PeriodTiming and set your desired Min/Max
      • Default block size is 32 samples. If you need a different size for faster/slower processing (shorter Flex times and wild patterns will likely require bigger resolution and therefore smaller block size), right click on the fix_blockx node and set your desired block size. At this size the overhead is miniscule and 5-10ms smoothing clears out any zipper noises.
      • Unless Funky's got an ace up his sleeve and is sitting on the API for this, the table itself isn't dynamically adjustable. You can use the logic that you see, create additional serial rampings, set your min/max for each point, create more tables and you could get to a point where you can adjust the factors from scripting, but it's gonna be seriously messy. Plus to my knowledge (that I absorbed from the Script Envelope documentation), there's no way to edit the curve amounts anyway. In that case it's easier to just do it in SNEX/Faust.

      Copy the XML to your project directory into DspNetworks\Networks.
      FlexEnvelope.xml

      Or copy the base 64 string to your clipboard, create a new DspNetwork, click somewhere to add a new node and you'll have an option to import FlexEnvelope from your clipboard.

      ScriptNode1292.3ocyXssbaTCFVqikSaCzRfBWwvnKo.0icgRatJGbRJgoNMSsobYGYux1ZxtqVzpM0lq30nWv.uF7Pz2EdC.cX8ZoM6l3zbX5dQpk9k9O98eP8PlOA30Xe7PAiO6HrXBvac3PVj.SiH7lCmH+WvA6B7tKb+.xz8hNgDvhIfclEiSRH9.uUfs.8lvdyQXNNjHH7D0dsAGJYcGV.KkC7fd.4WGVXHIR.7pAkGQQOA.77NTqCPkP9H3H5zWOHfM73o.Gk5KrTJqyrPMLL7rD3QbohyETsTqksZl7mFIePxqTTGhC.uBGjJUIuZfBmZM3NJ41i96j4GpN76eD.L2XVwxXVE1GOHf3ZGet1N3rflCUDesPejKfYT21L.cY9oAXAkE0GyGSDZGZGVTDYnZS4UTr6.IigPruOHOHo1ZUnwFTBHVFb2EKvp6qU6j7eor8HexTk57exu8BGP78I95i6QfO4QMy+1ni7Om7B4eN7o+T+c+4mjuN8oNzGs8FCh61ZA8eYC26O5asVC.VnKodkuRZDcoQYghaWGj80EOsvd+6l8DjXcfy5b8Nl7FS3w9jlfmgAmh0amJXgXgNVUCXB2MT2Xc3yYioCQ3Hez1AwSvfyIqxME5rC66yB7MhbQhSMKr1GC2VHvCOFoCJNB99VBNj4ewk8BIVuLI9RbXrqDWSJQNoIWQvUP4rcc3yHBTFG5SCIknCd0Wdz88f84oDzuNgDgjA+kCmuKMIN.OamzQixvUN6HWmg6qCeX6BPvUrffMV.AgvVMaYA+tE7wsZo1ZA569xiztk4q8OrQq1s+w1N.QEOdLvTT5HBmx70NHKfmp7JvRApWsB.gskqM0tdNiE2Sf4BfCwKLmZ.elTOJxD6xRV3jhQlRvlKpFRlFyqBxLAp4gXBAYg7PinQISHIHEZiFM96PTAZL8D4NpSNl8P7DB1GIX50pdXl6I2HQ4KP9L40j2RcA4uZVFR7r6cz.1QYuY9iOC1UZaMGEvX7ulFEmJd.nXejUg6RFjNd9UT1YokxqUJX+VPYRbzXRkn7RK+GlFTwEpr15RgFlylh3SKLPtB6D7+jEAeC0JB7+Fbu.ZHMRxaDmDSDTgL9hNQIUj4pInDS7kSRHBotiXQAyPJuHRvoiGS3De4dYGGIiKpncBZHNgXsuDTz9Aki.V9ZQ2ANWKtQ82Uk.ZoNNt+OM28mSuh.vWAeIIyKVHIZ.YH9R5sVClyNW2UVUlaBuksHbnHk2RMlnyHrZ6ojI.tBaDaOlosCbIaCediXdy2m71PcKwO3ZTdY4UFH9LQekjqXCnLUtchr2AFpZwn1uhT1sjMgNlfRR4DUCQYmtYIHrPm9NfLlFEoZ5kFInA1cTkMSoptokVBr1MacqFvXB93RgzZBUX4eIrCNVnra0ozSiK33njPpn4kbHy4On65d3xq3hSWQU2ZX5j+hTgbjlk+sMm2CZseYy6qxU70Pl25VVJiZ+KvisqUYj3Ct2fl0qOIjwjIzE50eOSdSNwqFWPsKrKXq+ZqBtf+9su8e17Tt.z69y2so40C8z5rrZkt1tE69iF.v2rkqq35OlbW4j6ivoAhkHzrRgTupV3U2tIoyiq6efznuNdd4hxysZ4Tuq5xetu32oHnS+WPQqIaBEMwqkQ.x3PCs2XIslJm6rRaotoJjZ3.jY5fyqs2ovZWRUydxjR7x4oJfq9jw7+2NaurNXqZQNFQwT52qVR+OTfNZfA
      

      Enjoy!

      1 Reply Last reply Reply Quote 5
      • D
        dxmachina
        last edited by

        Very nice @aaronventure ! Thanks for sharing.

        1 Reply Last reply Reply Quote 1
        • First post
          Last post

        14

        Online

        1.7k

        Users

        11.8k

        Topics

        102.5k

        Posts