MIDI Controller accumulator


#1

Dear all,

I'm trying to build a very simple counter going from 0 to 7 controlled by CC Midi In,
this one it's actually working but it only goes if controller changes...so every time I press the same button to accumulate it doesn't work and can't figure out why at the moment

counter_notworking.axp (2.4 KB)


#2

I think you need to use the value, not the controller channel.
But I don't really understand what you want to do.

Your controller is a button,knob, something else?


#3

first, you might as well use CC i (rather than cc i any)

then as @alex says you want to use value, usually something like a midi button will go 0 to 127 to 0,
(assuming its a momentary button or not, some will latch, but they are not really suitable for what you want)

so i would do
cc i (120) , midiCC > 0 into counter inc
cc i (121) , midiCC > 0 into counter dec