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 2.2k 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.
    • 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

      You can listen to my orchestral mockups here:
      https://www.virtualvirgin.net/

      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?

              You can listen to my orchestral mockups here:
              https://www.virtualvirgin.net/

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

              18

              Online

              1.8k

              Users

              12.0k

              Topics

              104.2k

              Posts