tttapa / MIDI_controller

This is a library for creating a MIDI controller using an Arduino or Teensy board.
GNU General Public License v3.0
402 stars 70 forks source link

Play/Pause PushButton like old SendNoteOn-SendNoteOff #23

Closed VictorCasadoZ closed 6 years ago

VictorCasadoZ commented 6 years ago

Hello, I am developing a MIDI controller that requires some different functions, I have all done but the only thing that I haven't is the Play/Pause assigned to one button, I want to know if there is some way to do it like in the older version with SendNoteOn and SendNoteOff. I have been looking the switch example but it say that has a limited duration, and I want an undefined duration, that when you press the pushbutton one time it sends a NoteOn, and when you repress the button it sends the NoteOff command.

Thank you so much

Software versions:

MIDI Controller library: 3.0.1 Arduino IDE: 1.8.5

tttapa commented 6 years ago

Have you tried the button example?
It works with all software I've come across so far. Latching should be done in the DAW software, not on the controller.

VictorCasadoZ commented 6 years ago

Yes but I will use it with Traktor so I need the same button to do note on when pulsed and note off when pulsed again no when released

tttapa commented 6 years ago

I don't think that's necessary. Please read §13.22.6 of the Traktor manual.

VictorCasadoZ commented 6 years ago

Thank you so much!!