How can I I send Out MIDI Data after pressing a panel tab?

Hi all,
I guess this is a pretty basic problem, but I can´t figure it out.
I have a panel with four tabs an within each page there are lots of Sliders sending
out MIDI CC to my DAW.

I also like to send out MIDI Note messages when a tab is changes, but this isn´t working
for me. I thought I just could set osc-properties of each tab to
address: /note
pre Args: [
10,
1
]
target: midi:midichannel
, but this doesn´t send out any MIDI.
Any ideas, how to solve this.
DO You have any examples for me?

As I learned that You have to have a Script when You want to change Tabs
with incomming MIDI, is it necessary to solve this issue with another script?
I have nearly no knowledge of Javascript, so some code snippet would help
me a lot.

Thanks in advance
Vertecs

It's the tab's parent that needs to be configured as its value changes to represent which of its tab is selected. Setting its address, preArgs and target as you described will make it send note 1 with a velocity depending on which tab is clicked (0 = first, 1 = second, etc).
For more complex mapping (e.g different notes for each tabs) you'll indeed need some scripting:

// tab's parent onValue
if (value === 0) { // first tab
  send('/note', 10, 1 127)
} else if (value === 1) { // second tab
  send('/note', 10, 2 127)
} // etc

Tab's parent! That was the missing link!
Thanks a lot Jean-Emmanuel!!!
Saved my day.