MidiKeyboardState + MidiKeyboardComponent

Hi,

To set noteOn internally in my plugin, I use MidiKeyboardState::noteOn().
The problem is that the noteOn do not appear automatically on the MidiKeyboardComponent as well.
And I cant find a method like MidiKeyboardComponent::noteOn().

Any idea ?

 

Erratum, it works fine, there was a mistake in my code.