HISE Logo Forum
    • Categories
    • Register
    • Login

    Velocity Modulator on Attack Time on Gain

    Scheduled Pinned Locked Moved General Questions
    23 Posts 3 Posters 976 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.
    • CasmatC
      Casmat
      last edited by

      Hey!

      If I put a velocity modulator on the attack time on an ahdsr envelope under gain modulation (plus making velocity mod inverted and usetable), high velocities will give the original attack time and low velocities will give quicker attack times. How can I make it so that low velocities give original attack time and high velocities give slower attack times?

      Thanks!

      i make music

      ? 1 Reply Last reply Reply Quote 0
      • ?
        A Former User @Casmat
        last edited by

        @Casmat you need to manually set the Attack Time to a high value before adding the velocity mod:

        HiseSnippet 977.3oc2WssaaaCFlJ1rc1sMcEXaWqK1Eo.EC1ascEnWTm3CsFqNwHxMa2UvP86XhHQpQQ4Vig8rrWk9HzGk9FzQJpXI0X3XKz0fNegg9OQ98ejjikBJDGKjHmFSVDAHmai8VvUy5Niv3ng8PN6hGQhUfz0x5fEQj3XvG43T64FFNMpiR+8gmc.IfvoPNKD5DAiBujExT4bG242XAACH9vDVXAseXmgTAuqHPjnwSMbKTDgdN4L3PhQscvHmaz2moDROEQAwZcNP3uval3Mbq9mvhYmF.Fh1HO8BYYi5NiE3O9BeMFgbviy87ZVO+6viX9rk7yi.eap.2bKJFCb1YcPp8V.ImBPptER2C6QkrHUtDCdtEdHWmPlRzg5hPwpKx4c3tBsBb0OERNGFH0DKMXuG2p0Cb0+c+mNMgSULA2UvOTnfi36c+l+UyFM+6ltepnoSWoLy1HEAAfbkhMYW45LbOdR3of7AtyIAIvRE0te4X5M1rXJ050ETTvGxYpihfL5Ah.eSrx78ky.nrvl9qWMrGQQLIkLdZ8h.ohYfiSOXttp1lhZf6AwmqDQ555Kk+zUNB+j.hpb4jouISfNdTJGZRT7XlZQw9psnFq0Zqw1THdO7XlhNa0XbmUfQcj5+BLl0YdGb+oSApJGf0wC9ip1Ft4a+t1s+VXOFGRGKlt4+PJs6uSlCtOG3fzD7ZulIiueSmLFswSFOhpza+DIgGGIhKsvdPHahfahB4LeUrdP.7mGaxlE42UPjqTzGd1.sStRa7HpDYZYw9ghDtpTYPsx4g5aVqa4NhB5uh4j0uFFc+4os5ZryuzoK20hwah2+E87NNqiO8a2974PfdTW4x4QBtHZlfynEy0GCJI6ry.YQDuR2XekReRd2D47RUp8.JYwk3ZUdImN+SGKmWBZnUTwWnmlmS+icRWtkLdmriWRrpTinAyA.ItTqUepPmRfJF12h6YrtRi6fsNoaZi+0TcwMs.rI9DcM.0rkFn88KIcWB71WMD0SblPRwPdzent5Rp.+OoHfcJDTNErUmmz9yRy4tWjAr0YacJn9lkBthqfrgf813zh8JVs7EEp2Em0F9UQfcWb1DhuFBsq8ZZ09+80zNVjnX7yFQzmA8V8b1CSB8z2NhB5cmyg.8hic1wbCGKcKCs85Qb+ThOp+kIrsg1ISX6KD9EYOBITo30T6ChLCj+lTNZ+lm9p2F5meqocaiRejTwbYn9pMulRKuTWxvetpF9KU0vGVUCeTUM7wU0vespF9jq1PyMO2OQIBsslHznw8SeUoiSet4jwzNBz+B.YxkJC
        
        CasmatC 1 Reply Last reply Reply Quote 0
        • CasmatC
          Casmat @A Former User
          last edited by

          @iamlamprey oh shoot, I may have confused myself haha, I was trying to say how can I make a scenario where high velocities have zero change to the attack time and lower velocities add length to the attack time?

          i make music

          ? 1 Reply Last reply Reply Quote 0
          • ?
            A Former User @Casmat
            last edited by

            @Casmat same deal but invert the modulator 🙂

            HiseSnippet 979.3oc2W0saaaCElJ1bc1sMcEXaWqK1Eo.ECVascCXWTm3eZMVchQja1tqfg53XhHQpQQ4Migdeee5KPeD5iReC1HEUrjVbccEZ6Vltvvm+D+347cNhbhTPgjDgD4zZ5xX.4bCr+RtZdu4DFGMpOxYW7XRhBjtVUGrLljj.AHGmFOxnvoUST1yad3AjPBmBEpPnSDLJ7DVDSUncR2elEFNjD.SYQk79dcGQE7dhPQ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Last reply Reply Quote 0
            • CasmatC
              Casmat @A Former User
              last edited by

              @iamlamprey close! I guess I'm trying to ask how I'd present that to a user? The attack time on the ahdsr container says 5000 ms, and when the velocity is at the lowest, the attack is 5000 ms. When the velocity is high, the attack is shorter. I'm trying to find a way in which when the ui knob is at 5000 ms, the highest velocity is at 5000 ms, and then lower velocities are longer than 5000 ms if that makes sense?

              i make music

              ? 1 Reply Last reply Reply Quote 0
              • ?
                A Former User @A Former User
                last edited by

                i should add that modulators are based on the value of the thing they're modulating, they go from 0-100% so you can't add more than the value it's currently set to, unless you code it yourself

                1 Reply Last reply Reply Quote 0
                • ?
                  A Former User @Casmat
                  last edited by A Former User

                  @Casmat yeah we replied at the same time lol

                  for your specific use-case you could either

                  • grab the velocity in the NoteOn() function and use that to set the Attack Time programmatically

                  • lie to the end user by changing the displayed value of a slider to be the "extra" attack time 🙂

                  edit: you could also do the first option in ScriptNode using a MIDI node to get the Velocity, that would support Polyphony

                  CasmatC 2 Replies Last reply Reply Quote 0
                  • CasmatC
                    Casmat @A Former User
                    last edited by

                    @iamlamprey Yup haha! Would I use the Script Voice Start Modulator container under attack time?

                    i make music

                    ? 1 Reply Last reply Reply Quote 0
                    • ?
                      A Former User @Casmat
                      last edited by

                      @Casmat or you can control the gain directly inside the network (you'll have to tweak the individual numbers):

                      HiseSnippet 1794.3oc2YszTaaEEVxlqAC4YaZZ6p5EcQxLoLRf40zEw.FRXZL3IhPytLWjtXqAo6UU5Z.2Nc51tn+A5l1eDcUW0tqa6Ok7KnzyUOrz0H6XafzjZlgw2mmuy47cdH4l9LSRP.yWQs79c8HJp2.YzkxauYarMUYm5JpeJ5DhCyzl2cKp3adjsNC654PT1nqGNHfXonpV7IhsqVdJkvOu9wafcvTSR5TJJGvrMIOy10lmNayZeksiy1XKx91tY1c0Z6XxnaxbXc.nUDoo3gMOF2hrKVrsBHE0RaYYyY9FbLmDnnN0FLqtFsYmRi1+A1A1GBfDFnqX.WTzzaybrDHVLqxlsscrZlXBBT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RJSv3XBmXagtrs.gV2xR1L.BJYDDV2vlFqrwYw+weqVC7YxyI5IiS7Lr+V44NlbZjQPpFccQ1hnKn207Ome9ObvO8q0VuCm4BI3BMHJCEHvUc4ARFtvEt8rXoPVrTJGr7GWDKu9wiGVh7EWPgFLES+cEJ1zHbaq.eYp0LwcxLVrKgX62PBLtKI6J4Hus8nCicob8aGF.gZ.VgqfLfHTcilWk0EuP8WTj+MhtIIn6fHwU8mOZ0wRNngp42FsaG2LFpXkOpCFEiSEsAmFiTH6DxwLCNDpDpkv3HEAUJ7Y2jEvEtOgd.O6zYIuun51AdN3tazAZFNpUUoYDZD0hbln63uPWYK2CIVPqGgmVXIjCVKmOIEIZ1KKAEoqAef4RIn2C1S3rvG8pqooqurtDWMbCqsxxqnu7p5KWcgkVbgEC6iqWhCIhZOZ74m+W+xO+6V0xF.M0fwFBoCiE26Miu2mQ.dhhzxCHWv0qdVB8TnsuDfTBsf1+UHYZTchItWRpoQKp0OVFIKbYDzCuHXe3o6dqoWkQIOo+fMxiE0YyN9mPTxr8kjtKza5tRUpz6dNT5qxP5vW5aVj+fS56RyopthTi+stvCYLGjC2mLeqwN6cgAV4OCEXFHOjV+pzXx.9PzRyWcgEVXEsUVo5pU0WTasdV..ziRc+9MqyDxDGeh3hZ5ZP3i1ZqsZ00VQSO1Ga3xX711zViV790oQ4F.gKfvk5QJgwks+uKcmARde0rwbRo4G0le5MgfnU6IUqMZUVG5y+jzp3DoeavXG6hCe+IS1OXyyYc3.knAFh+gJxhtLLfXIyjWURPROFwi0RhxLHTqvAmCehWTWLVMdQ8jEeqHCWroO6UwO8gv.NS3LPHOM7WNsLpgXbEckS52QKdUBuxzT9ptvAWXRO3hS5AqNoGboI8fKOoGbkI8fq9lOn3mxHN6oHpBBLatUTuhpaQwG5D+f5+aXCNUV
                      
                      CasmatC 2 Replies Last reply Reply Quote 0
                      • CasmatC
                        Casmat @A Former User
                        last edited by

                        @iamlamprey bro, here I was trying to piece together how the midi and the ahdsr node would play nice with eachother, you hit me up with a snippet though haha. true legend!!

                        Of course PMAs are part of the answer, just to wrap my head around it, PMA nodes are just to scale and change the value of the incoming value by a set value?

                        i make music

                        ? 1 Reply Last reply Reply Quote 0
                        • CasmatC
                          Casmat @A Former User
                          last edited by

                          @iamlamprey IT MAKES SENSE NOW!! Man PMAs are insaneeee! Thanks again man, a hise doubloon for a hise hero!

                          692c2a66-7d2a-4970-a585-fe75a04f6391-image.png

                          i make music

                          1 Reply Last reply Reply Quote 0
                          • ?
                            A Former User @Casmat
                            last edited by

                            @Casmat said in Velocity Modulator on Attack Time on Gain:

                            just to wrap my head around it, PMA nodes are just to scale and change the value of the incoming value by a set value?

                            PMA means Parameter Multiply Add

                            You take the Value (left socket), Multiply it by whatever the Middle slider is, then Add whatever value is on the right slider, they're one of the most important nodes 🙂

                            regular PMA's are scaled to 0-1, unscaled PMA's just output the calculated value directly

                            1 Reply Last reply Reply Quote 0
                            • CasmatC
                              Casmat @A Former User
                              last edited by Casmat

                              @iamlamprey Ahhh, definitely would've saved a lot of time using them in the past

                              Just got one question how would I replace the simple envelope with the scriptnode one to have just one gain envelope?

                              i make music

                              ? 1 Reply Last reply Reply Quote 0
                              • ?
                                A Former User @Casmat
                                last edited by

                                @Casmat yeh i think you could replace it with the Script Voice Start Modulator, you'd have to change the network a bit, I have no experience in using ScriptNode for modulators though so I can't help with that part

                                CasmatC 1 Reply Last reply Reply Quote 0
                                • CasmatC
                                  Casmat @A Former User
                                  last edited by

                                  @iamlamprey thanks!

                                  i make music

                                  1 Reply Last reply Reply Quote 0
                                  • d.healeyD
                                    d.healey
                                    last edited by

                                    Can't you just use the velocity mod's table to get the desired behaviour?

                                    Libre Wave - Freedom respecting instruments and effects
                                    My Patreon - HISE tutorials
                                    YouTube Channel - Public HISE tutorials

                                    CasmatC 1 Reply Last reply Reply Quote 0
                                    • CasmatC
                                      Casmat @d.healey
                                      last edited by

                                      @d-healey the velocity mod table goes from 0 to 100%, my scenario needs it to go higher than 100% modulation, is it possible to do it regardless?

                                      i make music

                                      d.healeyD 1 Reply Last reply Reply Quote 0
                                      • d.healeyD
                                        d.healey @Casmat
                                        last edited by

                                        @Casmat

                                        I see, so you want the user to set the minimum time?

                                        Libre Wave - Freedom respecting instruments and effects
                                        My Patreon - HISE tutorials
                                        YouTube Channel - Public HISE tutorials

                                        CasmatC 1 Reply Last reply Reply Quote 0
                                        • CasmatC
                                          Casmat @d.healey
                                          last edited by

                                          @d-healey yup!

                                          i make music

                                          d.healeyD 1 Reply Last reply Reply Quote 0
                                          • d.healeyD
                                            d.healey @Casmat
                                            last edited by

                                            @Casmat Do you need to display the AHDSR table to the user?

                                            Libre Wave - Freedom respecting instruments and effects
                                            My Patreon - HISE tutorials
                                            YouTube Channel - Public HISE tutorials

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

                                            56

                                            Online

                                            1.7k

                                            Users

                                            11.7k

                                            Topics

                                            101.8k

                                            Posts