Not 100% sure what you mean here. Triggering a midi note, needs several different data, it needs pitch, velocity and gate on/off. Not 100% sure how you would to do that from a potentiometer, I haven't tried. But it's probably possible in some way
One thing you could try use the potentiometer to set the pitch value of the note and then use one of the 4 buttons to trigger the midi note. Hold the button as long as you want the note to play? See the pic below.
No need to do that. You can use the objects from the midi/intern/ folder. They do the midi out to midi in routing for you, so you do not need to use a real cable. You do need to set the right channel, though. See pic below.
Anyway, here is what I though of, even though I am not 100% sure what you mean, hehe
czczxcczczx.axp (3.5 KB)
For future reference, it's always a good idea to post either the patch or at least a screenshot of the patch along with the question. It's a lot easier to get understand what the issue is, when you can actually see what's going on
Again as I am not 100% sure, what you mean, this is my best shot for now, haha