Control-Surface icon indicating copy to clipboard operation
Control-Surface copied to clipboard

One press only commands 127. I would like 1 press and 1 command only 127 velocity. How to do that?

Open e36910 opened this issue 3 years ago • 5 comments

I need working with abelton track. It understand only 1 CC command only 127 velocity. Thank you!

e36910 avatar Nov 25 '21 23:11 e36910

Hola, no entiendo bien tu pregunta, si necesitas enviar mensajes cc en lugar de notas, con valor de 127, usa esto

https://github.com/tttapa/Control-Surface/blob/master/examples/1.%20MIDI%20Output/2.%20Buttons%20%26%20Switches/1.%20Momentary%20Push%20Buttons/CCButton/CCButton.ino

Veroledez avatar Nov 26 '21 16:11 Veroledez

Ccbutton works for one push vel 127, next push 0 vel.

e36910 avatar Nov 26 '21 17:11 e36910

Parece que quieres solo enviar el cc y 127, para omitir el 0 que es como el apagado por asi decirlo, debes crear tu propia clase, el ejemplo custom midi output te servira, debes borrar la parte en la que se verifica el estado rising del boton

Veroledez avatar Nov 26 '21 17:11 Veroledez

Yes. How to write code for setup max vel 127?

e36910 avatar Nov 26 '21 20:11 e36910

First define a custom CC sender:

https://github.com/tttapa/Control-Surface/blob/e6542665da8997fdf33aee5ff1e0b7383c7ebe00/src/MIDI_Senders/DigitalCCSender.hpp#L13-L37

Just leave the sendOff() function empty.

Then create a MIDI button with it:

https://github.com/tttapa/Control-Surface/blob/e6542665da8997fdf33aee5ff1e0b7383c7ebe00/src/MIDI_Outputs/CCButton.hpp#L20-L38

tttapa avatar Dec 05 '21 12:12 tttapa