clicking 'drum pad" buttons OF MY PLUG-IN in my DAW dont record midi notes
-
@ulrik How are you turning the button press into a Message? or do you not need to?
-
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
-
@ulrik
Synth.addNoteOn()
triggers the on note on callback? -
@ulrik Yes, this is the kind of thing I was imagining.
-
@d-healey Yes, I'm using an external script processor where I have the Message.sendToMidiOut() messages
-
@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
-
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:
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:
And place the Message.sendToMidiOut() on each of the three MIDI callbacks:
-
@ulrik if that works I’ll put it straight into morphDrum
-
@VirtualVirgin do I need to change the word Synth to Sampler? I did it all and still not get anything in Ableton
-
@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
-
@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?