HISE Logo Forum
    • Categories
    • Register
    • Login

    Disable midi learn

    Scheduled Pinned Locked Moved Scripting
    35 Posts 7 Posters 1.6k 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.
    • ustkU
      ustk @d.healey
      last edited by

      @d-healey It is only for scriptPanels enableMidiLearn

      Can't help pressing F5 in the forum...

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

        @ustk Aha that's where I saw it, thanks. Looks like I might have to tinker with the source code again...

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

        Casey KolbC 1 Reply Last reply Reply Quote 0
        • Casey KolbC
          Casey Kolb @d.healey
          last edited by

          @d-healey I was looking for something similar! There are some knobs in my interface which I don't want to be tweaked in real time, so it would be great to disable the MidiLearn.

          Casey Kolb
          Founder & CEO of Lunacy Audio
          Composer | Producer | Software Developer

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

            Okay by editing the HISE source it's pretty simple to add an "Enable Midi learn" button for knobs and buttons but there's something interesting. If you disable saveInPreset this also prevents MIDI learn, which seems strange. I can think of reasons why you'd want saveInPreset to be enabled but MIDI learn to be disabled (my use case is I'm rolling my own MIDI learn system as I only want specific components to be learnable).

            What I propose is removing the link between saveInPreset and MIDI learning completely and instead having a separate Enable MIDI learn button. Any reasons against this? @Christoph-Hart ?

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

            1 Reply Last reply Reply Quote 0
            • Casey KolbC
              Casey Kolb
              last edited by

              I think MIDI Learn has to be paired with saveInPreset because the Midi assignments are per preset, not global. I actually learned this from you @d-healey haha. Maybe that doesn't matter though?

              Casey Kolb
              Founder & CEO of Lunacy Audio
              Composer | Producer | Software Developer

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

                @Lunacy-Audio But what if you want to save a control's value is a preset but you don't want it to have MIDI learn, or you want it to have MIDI learn but you don't want the CC assignment saved in the preset.

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

                Casey KolbC 1 Reply Last reply Reply Quote 0
                • Casey KolbC
                  Casey Kolb @d.healey
                  last edited by

                  @d-healey Would definitely love that flexibility! This might have been an arbitrary decision, but perhaps there's some deeper implication in HISE I'm unaware of that makes them inextricable.

                  It scares me that even comboboxes use Midi Learn, meaning you could assign your mod wheel to a list of convolution impulses responses or a sample map selector. Seems super dangerous if abused 😨

                  Casey Kolb
                  Founder & CEO of Lunacy Audio
                  Composer | Producer | Software Developer

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

                    @Lunacy-Audio I disabled the midi learn <> saveInPreset link, and added a separate enable midi learn property and it "seems" to be working fine. I can choose which things I want to save in preset and which things I want to MIDI learn and they are unrelated. I need @Christoph-Hart to chime in and let me know if I'm doing something stupid before I commit to this.

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

                    ustkU 1 Reply Last reply Reply Quote 2
                    • ustkU
                      ustk @d.healey
                      last edited by

                      @d-healey Cool ;) so if the link is removed, it would be good to have a property saveMidiLearnInPreset right?

                      Can't help pressing F5 in the forum...

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

                        @ustk If you enable saveInPreset and you enable MIDI learn then it will save the MIDI learn in preset anyway, no need for an extra option.

                        Currently when you click the saveInPreset button it triggers this function s->setCanBeMidiLearned(newValue); which makes no sense to me.

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

                        ustkU 1 Reply Last reply Reply Quote 2
                        • ustkU
                          ustk @d.healey
                          last edited by

                          @d-healey Sounds like the soil was ready to seed the midiLearn system but it hasn't been done...
                          Ok for the saveInPreset link ;) Have you had the green light for a pull request?

                          Can't help pressing F5 in the forum...

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

                            @ustk Waiting for our benevolent leader to confirm that this is not a terrible idea before I do it.

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

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

                              The deed is done:

                              c23407a4-76b0-4154-ac83-5fc7b80f98bf-image.png

                              It's available in my fork - https://github.com/davidhealey/HISE/tree/scriptnode

                              I've also made a pull request so will be in the main repo soon I expect @Christoph-Hart.

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

                              NatanN Tania GhoshT 2 Replies Last reply Reply Quote 5
                              • NatanN
                                Natan @d.healey
                                last edited by

                                @d-healey Good Job Sir
                                Can You Implement This For Fx Plugins, It's Only Available In Instruments As Far As I Know!!!

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

                                  @Natan Nope, I'm crap at C++, I just hack at it.

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

                                  1 Reply Last reply Reply Quote 1
                                  • Casey KolbC
                                    Casey Kolb
                                    last edited by

                                    @d-healey Any issues with this yet? I'm tempted to add it to my build too.

                                    Casey Kolb
                                    Founder & CEO of Lunacy Audio
                                    Composer | Producer | Software Developer

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

                                      @Lunacy-Audio Nope seems fine, I got the blessing from Christoph in a pm.

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

                                      DanHD 1 Reply Last reply Reply Quote 1
                                      • Casey KolbC
                                        Casey Kolb
                                        last edited by

                                        Woot! Awesome, great to know.

                                        Casey Kolb
                                        Founder & CEO of Lunacy Audio
                                        Composer | Producer | Software Developer

                                        1 Reply Last reply Reply Quote 0
                                        • Tania GhoshT
                                          Tania Ghosh @d.healey
                                          last edited by Tania Ghosh

                                          @d-healey I am getting this error.. Unable to Compile. Err.jpg

                                          Tania Ghosh

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

                                            In Case You're Doing FX Plugin, This Learn Midi Does No Work In FX!!!

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

                                            59

                                            Online

                                            1.7k

                                            Users

                                            11.7k

                                            Topics

                                            102.2k

                                            Posts