HISE Logo Forum
    • Categories
    • Register
    • Login

    enable Midi select

    Scheduled Pinned Locked Moved Scripting
    7 Posts 2 Posters 68 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.
    • ulrikU
      ulrik
      last edited by ulrik

      I've searched for a way to control the "Enable MIDI selection" that is present in the sampler module, but I have not found anything about it

      Is it possible to enable/disable this function via scripting?

      My goal is to, in a ScriptProcessor, automatically create a selection of the played sample in a sampler.

      Or maybe there is an another way to create the selection?
      Any information is appreciated

      Skärmavbild 2025-06-18 kl. 11.15.08.png

      Hise Develop branch
      MacOs 15.3.1, Xcode 16.2
      http://musikboden.se

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

        @ulrik said in enable Midi select:

        Or maybe there is an another way to create the selection?

        Yeah you can create selections using all kinds of parameters with these functions

        37f958b6-c6ad-4039-938c-d25bea8e5e98-image.png

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

        ulrikU 1 Reply Last reply Reply Quote 1
        • ulrikU
          ulrik @d.healey
          last edited by

          @d-healey said in enable Midi select:

          @ulrik said in enable Midi select:

          Or maybe there is an another way to create the selection?

          Yeah you can create selections using all kinds of parameters with these functions

          37f958b6-c6ad-4039-938c-d25bea8e5e98-image.png

          Yes, I use createSelection("") a lot.
          but then I need to collect LoKey and HiKey for each sample in the map and then iterate over them to find which correspond to the pressed key, it would be easier to be able to control "enable MIDI selection" since it's already a built in function.

          Maybe the "createSelectionWithFilter" is the way to go, but I don't understand how it's working and I can't find any example of it.
          Can you give an example?

          Hise Develop branch
          MacOs 15.3.1, Xcode 16.2
          http://musikboden.se

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

            @ulrik said in enable Midi select:

            I can't find any example of it.

            Forum search brought this up

            Link Preview Image
            Load from Purge

            Alright, I've added the feature using the first option as this is most convenient for the standard use case. I've also thought a bit about the option of purg...

            favicon

            Forum (forum.hise.audio)

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

            ulrikU 1 Reply Last reply Reply Quote 1
            • ulrikU
              ulrik @d.healey
              last edited by

              @d-healey Thank you David! 🙏🏻

              Hise Develop branch
              MacOs 15.3.1, Xcode 16.2
              http://musikboden.se

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

                @ulrik Here's a working example (velocity values might need refining slightly).

                HiseSnippet 1337.3ocyXstaSbDEdV6LoXS.AHTU+SkVgpPNUnHemDQSqIWIBLX4M.8engcGaOJqmY0ryl1TDuK8QnOB8QpuAsmY201yt1J3XtT7Oh741b9lyYNWb5IEtzvPgDYU9zKBnHqMvNWvUi1eDgwQmb.x5l3tjPEUZmvZuKBHggTOjkUwi0LrJsFJ9y+7K6Q7IbW5LVHzqDLW5yXiYpYb604oLe+iHdzSYiMztYmSbE78E9hH.OEwUQAD2yHCoOmnUq.F8DR3Hj0OhaUugaSuG5UudqcZ6RZS2Y.YvfZM7Z1r816TqwNjla2lVsExZ8C8XJgzQQTzP3P2S3cgyHwuwSbvqXgr25S0D0PNfmSXi1eDy2q2jfSHBYg6MKTULITcWbWlGaJ+YgraEKvdlElAMqBWFjpcEfjkAjVKAR2F63JYApYRz3453S3PFb.AxMlPIQWTg+r.deAnAWs0XxYzij.wTKpztZ0GXC+YyGUtrjNz1GdN7T5E16ZW8QSY7JpuvkozbqA5A4wPk84DosCYbfOUVCDD+vZqgTUJuJ2ahv6oOaF2mwo1Ch3tJlfaGE3AQHGpOMltxlkeW4RfWH91gSXpO0zyXKWI0T+WyTiNh4C2hJSNR3HJ8tx1vmRRpJRxsUiXgZDUI8T1puPn1zd2cmdKu+8mWomIfq6l1+ztYu5KR0mvhU8myp5iJW58vUtT4RSQeHUc7KOY1sc5U7A1CH9gTP82WdZrQvetPQewjfxzLRWHoCELZHnU34QieKb+0tJWRxPwIbqjfn4B6ZGam2yCFj35bxzOijBecxcQh006xKyvJ7XD+.3oieDcphv66rEMqubEMtIupMTTvOgyTuHflRejv2SWLn+97kXnzxB3au7jCHJhtpKkGnW.UpXZ3Xc.8bnOWRMXI7AzvyTh.nS2bEnPqAgWjOQksegtSZp.HdjoHUWHxCg7iYm1qPSjpWZSjkEh2F2iobGsXLVXAXDhTeNvXZq2afObv.3A5L.tF9necU6yt7t+6Sb+cvNJnayXFeXZAbLFJimTN+oXLYvROlrmDJgIdNr+vPs+tydQPLRlk6e0I1UOdrHhmwWoHuOM.5hBoYCatVm98OVJhBxaUyNwOJNUBiogPg4c7EbJDqUl2w8khvvAv0I9rBME0KRNTGqlwoO8bpLLKOnaFju4bpOXL1pntpLjpyuL2tDkj86lZG6kpmRhywvtCwz0xQWOGcibzMyQ2JGc6bzObFcR.sKIP+x3awiHigdeTuCh7c0cAesP3MWasuY4ZqAGZOBDFLzbO1voNLgS1VJFpNMODiUikgVvJFq+4Zqm0VtpwOP64u96ulYIsRSvnCSmpNjeNT2BbzX7NvTiAjHe0DtY6gzUvEAiDbla1pD3U+vgToI1W3E5wJETjNiyc6zGlvSBMJy+gNOC1+hHyV7ekhEW8EVWX956vIv0V23y9iIu8E8Y1kNir3RMi7SNdW84keQCc2LcxoM3co5q777F33d815Qy+eA09hHELxcxXua.yFcf8AbolSHWWO0MgtplVCHGJ2Kl3egOoBqoosREVKmv5lVVOmvFlV1HmvllV1LmvVlV1ZhPj6D3C27zuGu2sUQJWOtJdcSeX4.eyxnPXSGcXXMrGCgt51ccbHrYi2SDPdXELeCr9ePBUzivjykZvKL0T3iJ0fFSbkh23l7ilzAqqEyAvKO9+URIbWMscMT7OjxDziggzuw0M6QMmg0WUCarpF1bUMr0pZX6U0vGtpFt8G1P8NTONRIFmLAAg516vjmhVGN8oXQz+4cLnIN
                

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

                ulrikU 1 Reply Last reply Reply Quote 1
                • ulrikU
                  ulrik @d.healey
                  last edited by

                  @d-healey thank you, good example!

                  Hise Develop branch
                  MacOs 15.3.1, Xcode 16.2
                  http://musikboden.se

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

                  33

                  Online

                  1.8k

                  Users

                  12.0k

                  Topics

                  104.1k

                  Posts