Hello
I would like to add velocity sensivity in this project: J5 Dout v1.3
i want to set Pin 7 at 1 when the velocity is bigger than 100 on one of other pin to controle the accent in my rythm box
and set the Pin 7 at 0 when this note is off
I think i must modifiy the prog in Main.inc but i don’t know what i must add
USER_MPROC_NotifyFoundEvent
;; forward to J5_DOUT_PinSet function
;; it expects: number of pin (0-7) in WREG
;; value in MIOS_PARAMETER1
;; store pin number
movwf TMP1
;; set the pin value depending on velocity:
;; - 0x00: set pin to 0V
;; - other values: set pin to 5V
movf MIOS_PARAMETER3, W
skpz
movlw 0x01
movwf TMP2
;; if the event was a note off event, zero value independent from velocity
movf MIOS_PARAMETER1, W
andlw 0xf0
xorlw 0x80
skpnz
clrf TMP2
Please can you help me
thank you