HISE Logo Forum
    • Categories
    • Register
    • Login

    clicking 'drum pad" buttons OF MY PLUG-IN in my DAW dont record midi notes

    Scheduled Pinned Locked Moved General Questions
    25 Posts 8 Posters 405 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.
    • O
      Orvillain @d.healey
      last edited by

      You'd have to link the click event of your drum pad to a call to Message.sendToMidiOut() somehow I would guess.

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

        @Orvillain But how would you generate the Message from a button click? Closest I can see is MessageHolder, but that doesn't have the sendToMidiOut function.

        HiseSnippet 1191.3oc2Wz1aaSD9bZ8DNCpXvDhOZMwGbPSQwkrzhlPKsooaQrzF0z0suMc87iSNU66LmuTHBUI9wwO.9or+AvyY6z3rEJYQEFPTUUdd+4ddOCTRFjlJUDqpmNMAHVer8voB83NiobAo2ADqsr6SS0fxMG09SSnooP.wxZimZPX4rII6yadx9zHpfAyQQHmI4L347XtdN1As+ddTzgz.3TdbIta1tGSJ5HijSP+YC6FjDJ6B5H3HpgsJ1jmQSGSr9Z6.+l9g6xns10u41L116ty1e6NLfFFBs7ezNM2MrYHk0Xah0c5Fv0R0PMUConR2WFLc3X4OJxMvY7T94QfAvmLDsbNZRmw7nfAyBNoDhk8f4gpMxCU22tOOfeM94grOMif6bIJGzrpbStj+6gKUojKsYtKcO6gLEOQOmhwetqcOAlAwPBrfqjyKoxqpX2QhbHz0ioW.GpPfqkvqUiFOzE+WsGWspBF4BWhL1K.g3hHt.bCmHXZtT3JE6OQqkBei1TxHOlLNQJP1en6kznIPsp+bUGdnqWAjCB5DIYzH23zQtemaWwHTi0YJ.CN8wW.l8elLJ.Tdn4cbv+PFqmB5ijZ3nIwmiTZ0HiVAgy.Tgb8TuVMKi1De7JzXcivGKLOHGmhmCZ7rB+5zffB1v3PbgwQkXT1UFO.hRAWyifmd.DhtafWgNpU7hxUjvXjvv8m1Mm50bYTT0qPiOKnOBzclEo7dPQL7A0LtcQjrCMJ5brYv6sCwl2P0RIf7WlWVft5UUceaRggKkVg1hLw4kP1zmptIA8DYohxoYCiXc4hE62Y0J1Y4AlRLJE8Db8wIPA7gl7RP92e2VCRQjE+1K5c.USwtEqBbHeIfRyMti0Avk37o7dGG6CfzKzxjLdKRGnKqyntUQmUd3mvCLBTjKH+z7gX8ZO8Zfe4r17z9xXTOTEh1pRJ8RnmXfBvTqoCjrpsvedA14CU7WVqr0uZ69mTMfO+TYDTOQwwprYcBiVnSpVsG+uwpF6aqpla8Jkkj+vg+xfIQT8haDL6JKHfwfExclQshTbjU4couGqIZbiqIVUW7d1C3Z13k6iUVhOZ1.82fOVrb8Sr6hayY54N3l1G9p0cS5pa9sxM+csGhS1yFjmY7uHC18kX+q6SAAnLAO+a3ZneaUuFJYkuF5XlFM+oJpHMQltfhGBw7SwAVokQ9hTbEF7CmXxlkw2QRUKkzadxg3iboxLjpmnxJK1KVNQnWnLXiEyCatZsqK1QTh+kbpyle.t951os5CXmukUIezYlONjGmDAcEWh2IgXL93mgyyBoShzyvtXgceoPlLVJ3rxY8S.shOZDnJ66K8AsmVimtLGy8aeBDAzxUveU6miUdTEFmf0LV3u5whaJe8k14tqqoaz8+tSr23+2SrOQNQyEi5SwhP75Ka7.lg3fRFfVWHvSzQbVULC6xgaXfymTJBx.9c7SAQeCrUAQ+YD+GwFwTlR9ZV98Pl5zOJCC9tEY+nWG7Weivt9jrajJmKiwobulwVTUuifautB9MqqfMWWAez5JXq0UvcVWA28uVPyRn8lnkw4slDR+AcyNvzxpqfhU4YcDj+..3lzcr
        

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

        LindonL 1 Reply Last reply Reply Quote 0
        • LindonL
          Lindon @d.healey
          last edited by Lindon

          @d-healey MessageHolder?

          Link Preview Image
          HISE | Docs

          favicon

          (docs.hise.audio)

          --damn it missed you already mentioning this

          HISE Development for hire.
          www.channelrobot.com

          1 Reply Last reply Reply Quote 0
          • ulrikU
            ulrik @WepaAudio
            last edited by

            @WepaAudio If you enable midi out and set the Message.sendToMidiOut() in your on noteOn and on noteOff callbacks it should work

            Here it's working in Logic, however you you have to enable the routing of midi from the instrument to the same track in Logic
            I'll test it in Live and come back...

            midiout.gif

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

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

              @ulrik How are you turning the button press into a Message? or do you not need to?

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

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

                @d-healey

                	if (event.clicked)
                	{
                		midiList.setValue(noteSources[idx], Synth.addNoteOn(1, noteSources[idx], 127, 0));
                		this.changed();
                	}
                	
                	if (event.mouseUp)
                		Synth.noteOffByEventId(midiList.getValue(noteSources[idx]));
                

                and the Message.sendToMidiOut() in on noteOn/Off callbacks

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

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

                  @ulrik Synth.addNoteOn() triggers the on note on callback?

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

                  ulrikU 1 Reply Last reply Reply Quote 0
                  • O
                    Orvillain @ulrik
                    last edited by

                    @ulrik Yes, this is the kind of thing I was imagining.

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

                      @d-healey Yes, I'm using an external script processor where I have the Message.sendToMidiOut() messages

                      Skärmavbild 2025-01-08 kl. 20.32.39.png

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

                      1 Reply Last reply Reply Quote 1
                      • ulrikU
                        ulrik @Orvillain
                        last edited by

                        @Orvillain I can get it to work in Ableton Live as well, but I have to record the midi sent from the instrument on another track, only vst3 is working, not the component version off the instrument

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

                        1 Reply Last reply Reply Quote 0
                        • VirtualVirginV
                          VirtualVirgin
                          last edited by

                          Yes, you can send MIDI out from button clicks.
                          I am working on a series of MIDI plugins at the moment.

                          You need to enable MIDI out in settings:
                          Screenshot 2025-01-09 at 10.51.32 AM.png

                          When using UI components to generate MIDI notes, you need to use Synth.addNoteOn() and Synth.addNoteOff() on the callback to you component.

                          Here I have pads (made with panels) which play chords when you use a mouse click.
                          It turns the notes off when the mouse is up.

                          			// mouse callbacks for the pads -- 
                          			pad.setMouseCallback(function[unitSize](event)
                          			{
                          				var ps = this.data.pitchSet;
                          				var l = ps.length;			
                          				
                          				if (event.clicked)
                          				{
                          					var velocity = Math.round(event.y / unitSize * 127);							
                          					for (k = 0; k < l; k++)
                          						Synth.addNoteOn(1, ps[k], velocity, 0);									
                          				}
                          				
                          				if (event.mouseUp)
                          				{				
                          					for (k = 0; k < l; k++)
                          						Synth.addNoteOff(1, ps[k], 0);
                          				}				
                          			});		
                          

                          To get the MIDI to output from the plugin,
                          as others have said you must use Message.sendToMidiOut();

                          To make sure it catches everything (and not some intermediate stage of MIDI),
                          I always place these functions in a script processor and container after all of my other containers:
                          Screenshot 2025-01-09 at 11.00.55 AM.png

                          And place the Message.sendToMidiOut() on each of the three MIDI callbacks:

                          Screenshot 2025-01-09 at 11.01.15 AM.png
                          Screenshot 2025-01-09 at 11.01.20 AM.png
                          Screenshot 2025-01-09 at 11.01.25 AM.png

                          W 2 Replies Last reply Reply Quote 2
                          • MorphoiceM
                            Morphoice @ulrik
                            last edited by

                            @ulrik if that works I’ll put it straight into morphDrum 💖💜

                            https://instagram.com/morphoice - 80s inspired Synthwave Music, Arcade & Gameboy homebrew!

                            1 Reply Last reply Reply Quote 0
                            • W
                              WepaAudio @VirtualVirgin
                              last edited by

                              @VirtualVirgin do I need to change the word Synth to Sampler? I did it all and still not get anything in Ableton

                              1 Reply Last reply Reply Quote 0
                              • W
                                WepaAudio @VirtualVirgin
                                last edited by

                                @VirtualVirgin so I get it working now, but I believe for costumers will be an issue doing that midi in both channels, I hope we can find solution in the same midi channel

                                VirtualVirginV 1 Reply Last reply Reply Quote 0
                                • VirtualVirginV
                                  VirtualVirgin @WepaAudio
                                  last edited by

                                  @WepaAudio said in clicking 'drum pad" buttons OF MY PLUG-IN in my DAW dont record midi notes:

                                  @VirtualVirgin so I get it working now, but I believe for costumers will be an issue doing that midi in both channels, I hope we can find solution in the same midi channel

                                  Can you explain more what you are trying to do with the MIDI channels?
                                  What channel(s) do you want for input?
                                  What channel(s) do you want for output?

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

                                  28

                                  Online

                                  1.7k

                                  Users

                                  11.8k

                                  Topics

                                  102.5k

                                  Posts