HISE Logo Forum
    • Categories
    • Register
    • Login

    Midi velocity limit, compression, expansion

    Scheduled Pinned Locked Moved General Questions
    3 Posts 2 Posters 296 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
      alfaholic
      last edited by

      I would like to make 3 sliders, all to control the input midi velocity:

      Slider 1: Increase/Decrease (this slider moves the input velocity values for a certain amount, up or dow)
      This means that the midi velocity that enters the Sampler gets changed so the sampler triggers a different velocity layer/different sample

      Slider 2: Compress/Decompress (this will move velocity values apart from the middle position)
      Middle position is by default 64, so if compressed then every midi velocity value below and above 64 will get closer to 64, and if decompressed the values will go in the opposite direction

      Slider 3: This slider will move the middle position from 64 up and down (this will change which input midi velocities go up or down when compressing and decompressing)

      First is this possible, then how the script should look?

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

        @alfaholic

        First is this possible

        Yes

        then how the script should look?

        There are multiple ways to do it, but basically you'll be using the Message.setVelocity() function within the on note on callback. You'll want to put this in a separate script from your UI script.

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

        A 1 Reply Last reply Reply Quote 1
        • A
          alfaholic @d.healey
          last edited by

          @d-healey Thanks David. 👍

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

          49

          Online

          1.7k

          Users

          11.7k

          Topics

          101.8k

          Posts