HISE Logo Forum
    • Categories
    • Register
    • Login

    Global Midi Learn(not saved in preset) Possible?

    Scheduled Pinned Locked Moved Unsolved General Questions
    14 Posts 4 Posters 335 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.
    • J
      johnmike @d.healey
      last edited by johnmike

      @d-healey sorry...maybe im not communicating effectively...no I don't want to create pre-defined midi-CCs...I want for it to be a "free" system that a end-user can map any parameter to any button on their controller...but NOT have to save those CCs in a preset in order for recall to happen...Like I have a "play" button on my interface that plays midi files...the end user should be able to map that button to a button on their midi controller and have that retained even when switching presets so that they don't have to re-map that control everytime a preset is switched or the plugin is closed/reopened...defining my own parameters would feel a bit counter-intuitive seeing as how most midi controllers aren't created equal and use various CCs for different things...hopefully that makes more sense...

      d.healeyD J 2 Replies Last reply Reply Quote 0
      • d.healeyD
        d.healey @johnmike
        last edited by

        @johnmike yes what I was suggesting is user assignable

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

        1 Reply Last reply Reply Quote 0
        • J
          johnmike @johnmike
          last edited by johnmike

          @d-healey gotcha...my apologies for misreading...Id love to see a minimal example of how this can work/be implemented...

          LindonL J 2 Replies Last reply Reply Quote 0
          • LindonL
            Lindon @johnmike
            last edited by Lindon

            @johnmike

            HiseSnippet 1261.3oc0V0saaTDEdVmrEroTQQ8AXj4FGoTW6jRAAB0z33TrJIwBmVgDBpFu6YsG7tyrZlYiy1nbGOObOWAuJ7Fva.blcWauNwooxhdA6EVdN+Memyb9quR5AZsTQbpdZZLPbtq6fTgYbmwLtfz6.hy8bOhoMfhlSZ+zXlVC9DGmMdtkfS0MIYe+8S2mExDdvBRDxqjbO363QbyBp826E7vvCY9vo7nRR+3854IEcjgxDDOa31hDy7lvFAGyrhUwk3bmt9biTMvvLfl3r49R+zAikSE4x+JtlOLDrGZSFfFJm7gxPeKhsTIcFyC86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2WpApODvRBMT8DzN3DoIf+oxL4IWe8.bwDoeRHyr71J1UzJXXAb4UDrcHDnijVFT+msBy6JDuuaetwa7pwXkUfQaky6ALVr32G61MH.mvs.fa5d3O79YKOx2KSL3.5iX3SuMi93jnA3tud.d6BADZaE4TwVrmetk8rMBL.D9YG9G7qfYa6YmBlsmwDS5vQOu1Kuagc0xOLiBhIQ1V0UcyFNQWQOFLYm+ZOukM00Tbm0UwcWWEe75p3mutJ9j0UwuXcU7KucEWdybTfi52MqstiSWACy.yxVI+K8uE4BA
            
            • updated with a slightly more obvious and useful example...

            One thing the documentation does not make clear is that calls to setAutomationDatafromObject() expects an array of JSON objects one for each widget that you want to see assigned.

            HISE Development for hire.
            www.channelrobot.com

            1 Reply Last reply Reply Quote 0
            • J
              johnmike @johnmike
              last edited by

              @Lindon maybe im missing it... this is the same basic behavior...as soon as I click a new preset it kills whatever user mapping I have assigned unless I save it in preset...maybe im missing something either in my communication or in my understanding...Im sure it's my understanding...maybe explain a bit deeper

              here's a video showing...plus it crashes HISE whenever I assign the button
              https://www.dropbox.com/scl/fi/hfifi0npxlhzmdezxuhq9/knob-assign-on-2024-10-29-at-12.00.12.mov?rlkey=98jilrqsfs0kcsnh7wdp8vsin&dl=0

              LindonL 1 Reply Last reply Reply Quote 0
              • LindonL
                Lindon @johnmike
                last edited by

                @johnmike the snippet shows you how to get and set the CC values for any control in your interface, once you have this data you will need to save it into a file as David suggests.

                You will then need to set up a UserPresetHandler and add a setPostcallback function that will execute when the preset has finished loading, at this point you should read your saved file and apply it, thus setting the CC values back to your preferred(saved) state.

                HISE Development for hire.
                www.channelrobot.com

                J 1 Reply Last reply Reply Quote 1
                • J
                  johnmike @Lindon
                  last edited by

                  @Lindon ok thanks...starting to make sense now...I'll mess around with this a bit and see what I can do with it!

                  1 Reply Last reply Reply Quote 0
                  • D
                    drey @d.healey
                    last edited by

                    @d-healey Is there any chance of you share a snippet of this? I understand the concept of what you said but can't really make it. Newbie here.

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

                      @drey said in Global Midi Learn(not saved in preset) Possible?:

                      Newbie here.

                      I think you need to go up a level first :)

                      All the pieces are here and in the documentation, if you put them together you will level up, if I do it for you you stay where you are.

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

                      D 1 Reply Last reply Reply Quote 0
                      • D
                        drey @d.healey
                        last edited by

                        @d-healey It's alright! I understand. Anyway, I've been learning a lot by reading you guys topics. Just finished my first synth plugin \o/.. Thanks man!

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

                        42

                        Online

                        1.7k

                        Users

                        11.7k

                        Topics

                        101.8k

                        Posts