Triggering presets with a midi controller


#1

For triggering presets with a midi controller, I thought it would be something like right click on the preset button and assign a cc number, but that's not it...

I guess there's a way?

I would like to switch between presets on this patch. I have added a midi/in/keyb and patch/preset object. Which I assume I connect to something?

I would have thought the sel/sel b 16 8t pulse object, but I can't seem to get it to have any impact on it...?
sample drum machine.axp (8.6 KB)


#2

you also need to connect the trig input


#4

I tried connecting it to a few different things but nothing worked, what should I connect it to?


#5

you connect it to what ever you want to trigger the change... in this case it appears you want to use note on, so use the gate.

also you would debug it, connect an integer display to the note outlet as well, are you getting what you expect? your doing an implicit conversion, and your relying heavily on pressing the right key on the keyboard (so you get a preset value in the right range (0-8)

also have you tested that the presets are working as you expect?
have you tried connecting a dial, or number (int) to the preset to see if its working as you expect?
(use a moment button on trig, so you can observe the behaviour)

you need to separate things like , midi input, how the preset system works, and even checking the presets are setup as you expect into different 'units' , so you know exactly which are working (or not) as expected.

this kind of debugging is crucial to patch development, especially in the early days when you are learning about how axoloti works... things like 'ranges' or data not being quite as you expect is normal when learning new patching environments.
also learning good debugging techniques in the early days, on simple patches, will really help you when you get to doing complex patches, and you need to find the 'pesky' bugs.


#6

you connect it to what ever you want to trigger the change... in this case it appears you want to use note on, so use the gate.

If I try do what I understand you're suggesting, I get a black broken line:

I also tried this:

Neither worked for me unfortunately.

also you would debug it, connect an integer display to the note outlet as well, are you getting what you expect? your doing an implicit conversion, and your relying heavily on pressing the right key on the keyboard (so you get a preset value in the right range (0-8)

Thanks for the tip, I double clicked, and searched for any and all thing I could think of, but couldn't find any 'integer display'

also have you tested that the presets are working as you expect?

Yes they work when clicking them in the GUI.

have you tried connecting a dial, or number (int) to the preset to see if its working as you expect?
(use a moment button on trig, so you can observe the behaviour)

again I can't find these controls

this kind of debugging is crucial to patch development, especially in the early days when you are learning about how axoloti works... things like 'ranges' or data not being quite as you expect is normal when learning new patching environments.
also learning good debugging techniques in the early days, on simple patches, will really help you when you get to doing complex patches, and you need to find the 'pesky' bugs.

Yes I feel like I'm missing something. I have read most of the 'getting started with Axoloti book', but otherwise feeling in over my head here, and a bit frustrated perhaps.

I'm an experienced programmer, so know I'm capable of getting this, but I'm not sure if i missed a manual or wiki or something (I've searched around here quite a lot), or is everyone else coming form some other useful background like Pure data, DSP or something that makes this stuff more obvious? Or should I just spend some time looking at other people's patches? Any direction would be appreciated, I don't want to burn out your good will with tiny details like this, if it can be avoided. :slight_smile:


#7

no I said, connect to the gate on midi/in/note

perhaps its worth looking at @janvantomme book, Ive put a link to it in the user guide.
(sorry just read, you were reading it)

black dotted lines... you cannot connect an inlet to an inlet
why would you get the sequencer to trigger the preset change? is that what you want? if so why would you make the presets value from the midi/in/note?

as an experience programmer, you'll know, these things take a bit of time to understand the basic principles - the trick is to start small, and really to use things like disp/* and ctrl/* objects to get a good feeling for how things work... like any programming, just connecting stuff in the hope it'll work, will just confuse you ... it'll act 'odd' as you asking it to do odd things.
the great thing about 'typeless' programming, is it just works... but the flip side is, it doesn't throw errors when your doing things that are perhaps unintentional.

(sorry , Ive not read @janvantomme book, so whilst its getting good comments, I dont know what it covers)


#8

Thanks for you advice, I'll see how that works out and let you know.

For the above, all I want to do is be able to switch between the 2 presets using the midi controller somehow.

I know when button on the midi controller has a cc value of 1 and 2, so that's what I thought to use, and why i would use midi/in/note.

Again you mention 'midi/in/note', but I don't know what that is. Do you mean 'midi/in/keyb note'? Should I use that instead?

why would you get the sequencer to trigger the preset change? is that what you want? if so why would you make the presets value from the midi/in/note?

The sequencer is set up to play different things depending on the preset. I was trying to somehow pass the preset selection to the sequencer. - bonkers I know! but that's what can happen when you don't know your arse from your elbow! :slight_smile:

the trick is to start small, and really to use things like disp/* and ctrl/* objects to get a good feeling for how things work

ok well I have had a small win by taking on the spirit of your suggetion

This works but I have to select the 1 or 2 in ctrl / i and then hit the ctrl/button.

That's better that clicking the preset button on the top at least, will try and improve on that tomorrow...

Any tips welcome :slight_smile: g'night!


#9