Midi keyboard component constructor

Trying to create a midi keyboard component when I create an instance of one in my editor.h I attempt to use this instance and get a message no default constructor where in my editor.cpp am I to put the constructor for my midi keyboard component

The problem is not where to put it, but the MidiKeyboardComponent needs a MidiKeyboardState and the orientation as arguments.
The MidiKeyboardState is separate from the MidiKeyboardComponent, because you want to have the state in the processor so it can process the midi events regardless if the editor is shown or not.

Your processor needs to give access th the MidiKeyboardState and you use that reference in the MidiKeyboardComponent constructor.

I think this is also a bit of a c++ question
do i need to declare the constructor for the MidiKeyboardComponent in the AudioProcessor class or outside of it .
when it is declared can i use it as an instance like a slider I thought i could use it like adding a slider but that did not work

Please have a look at this tutorial. There is example code that could help you to understand.

Midi input tutorial