On 11 January 2014 12:55, Vesa <dii....@nbl.fi> wrote:
> You should create a new issue for this on the github page. The images
> for pressed-down piano roll keys are there, they're included with the
> default theme, but the changing of the images hasn't been implemented.
> I'd start by looking at src/gui/piano_roll.cpp, that's where the code
> for the piano roll UI is in. You should also read up on how QWidgets
> work, that'll probably help as well.

To tackle this issue, should we create a new function?

Currently there is a function called 'paintEvent', in which all the
keys of the piano are painted/drawn in the piano roll.
When ever user click on the keys or play the midi keyboard or from
computer keyboard, this new function(say keyPaint) will be called. In
this function it will determine which 'key' has been pressed and paint
the key accordingly, if it is black or white key, along with the
respective row in the note area(highlighted actually).

Kindly post your thoughts on this. Any help regarding this would be great.

-- 
Gurjot Singh
Blog: http://bhattigurjot.wordpress.com

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
LMMS-devel mailing list
LMMS-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lmms-devel

Reply via email to