Noob question: midi note from button


#1

Hi!

Since I´m kinda new to the axoloti environment and sound synthesis in general I have to ask this basic question:

How can I trigger a MIDI note (first predefined, then depending on a poti input position) internally, to use it later in the patch, from just a button click?
It seems like I can´t find the right nodes for that task. Or is it even possible? What about redirecting a signal with a MIDI cable from the output to the input? I built a basic controller board with 4 buttons and 6 potis, I also have a patch where all the inputs are working perfect, even with software debounce, sthg I found easily in the forum. But now I´m stuck and don´t want to wait until my MIDI controller arrives before continuing to explore the possibilities.

Thanks in advance!


#2

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 :slight_smile:

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 :slight_smile:

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 :slight_smile:

Again as I am not 100% sure, what you mean, this is my best shot for now, haha :slight_smile:


#3

Thank you so much, that´s exactly what I was looking for. Selecting the pitch/note with the poti and then triggering it with the button. Now that I saw your patch I recognize that I was almost there already, probably the not connected velocity was the issue.

This is my patch now and it´s working perfectly:

Looking forward to the next experiments.

greetings!