MIDI CC IN Button Press / Release

midi

#1

I'm struggling with simple things and I see if I can expose them here, hoping that someone can share some knowledge :slight_smile:

a button connected through MIDI CC to control a Radio object

Button Press and Release are triggering the counter, so this makes it jumping two units at a time
Any way to make it go up only one unit at a time?


#2

ok, I was able to solved this dividing the counter by two, but I guess this is a hack, probably there are more efficient ways to do this


#3

The trig output on the cc object sends a trigger every time a cc message is received, even if the cc value is 0. So it's triggering twice for each button press, on and off. Try using the cc+ outlet to trigger the counter instead, that outlet is the actual cc value itself.


#4

I think the reason that you get 2 triggers, is because it sends a trigger on both on and off, when you hit the key and when you release the key.

Something like a simple logic statement, like == 1 should fix it.

So try using a an equal to object: ==
And put a ctrl/i with a setting of 1 for the second inlet and the counter value on the first inlet :slight_smile:

Then it will only trigger when you hit the key and not on release.


#5

@jaffasplaffa it makes all the sense to use the == object but didn't worked

@MattilynMattroe using the cc+ outlet is working perfectly

thanks so much for helping me on this :slight_smile:


#6

Glad you got it working :slight_smile:

I just use that technique in Pure Data all the time and it works perfectly for isolating note on and note off. I did not try the specific setup that you are doing here in Axoloti.


#7

hey no problem at all, and thanks to your suggestion I've got the opportunity to become familiar with logic objects :slight_smile: