Again, I have not actually used this component explicitly but I remember conversations around it.
The methods already have a graphics passed.
virtual void drawWhiteNote (int midiNoteNumber, Graphics &g, Rectangle< float > area, bool isDown, bool isOver, Colour lineColour, Colour textColour)
virtual void drawBlackNote (int midiNoteNumber, Graphics &g, Rectangle< float > area, bool isDown, bool isOver, Colour noteFillColour)
&Graphics reference passed.
I would guess that if you want a custom layout of keys, then you would override
paint() but just drawing keys, override the above and they should get called automatically from super’s
paint() or elsewhere.