Virtual Piano Keyboard
Qt Widgets
Score 61%
Last changelog:

9 years ago

2010-09-25 0.9 Velocity Tint

Translate note velocity into key pressed color tint
Custom note names

2009-09-23 0.8 Raw & Black Keys

Raw keyboard events support.
SVG graphics giving black keys a nice 3D effect.

2009-08-03 0.7 Note Names

New properties: showLabels, useFlats and transpose.

2008-10-05 0.6 Reasonable limits

minNote and maxNote properties to limit the note numbers.
selectedColor property renamed to keyPressedColor.
keyboardMap fixes, mouse handling enhanced.

2008-09-05 0.5 Hash smoke

Speed optimisation and fixes

2008-08-31 0.4 Fashion keys

New highlight color property

2008-07-20 0.3 New rotation property

The new property allows to change, while working in the designer, the
rotation of the keyboard to show it vertical, or with any angle.

2008/07/13 0.2 bugs fixed.

2008/07/12 0.1 first release.

C

plcl

7 years ago

Hi,

If you are trying to compile the widget sources in Mac OSX with Qt 4.6, please add the following lines to both demo.pro and plugin.pro:

Quote:
macx {
LIBS += -framework Carbon
}


This is not needed with Qt 4.5 or older.

Report

am75

7 years ago

really nice widget you've created there!

Though, i ran into a small problem when compiled under linux the first time (ubuntu 8.04).

Quote:
rawkeybdapp.o: In function `RawKeybdApp::x11EventFilter(_XEvent*)':
rawkeybdapp.cpp:(.text+0x152): undefined reference to `XCheckIfEvent'


adding

Quote:
unix {
LIBS += -lX11
}


to the end of the plugin.pro file fixed the problem for me. I was just wondering how it could have been working for others using X11 without explicitly linking against libX11...
anyways. I like it alot.
Thanks for your great work!

Report

C

plcl

7 years ago

Hi,

Thanks, I'm glad you like it!

I'm using openSUSE here. The link command generated by qmake/make in my system looks like this:

Quote:g++ -Wl,-O1 -shared -o libvpianokeybd.so pianoscene.o pianokey.o pianokeybd.o plugin.o keylabel.o rawkeybdapp.o moc_pianoscene.o moc_pianokeybd.o moc_plugin.o qrc_pianokeybd.o -L/usr/lib -lQtScript -L/usr/lib -pthread -pthread -lQtSvg -L/usr/X11R6/lib -pthread -pthread -pthread -pthread -pthread -pthread -pthread -pthread -lQtXml -pthread -pthread -lQtGui -pthread -lpng -lfreetype -lSM -lICE -pthread -pthread -lXrender -lXrandr -lXfixes -lXcursor -lXinerama -lfontconfig -lXext -lX11 -lQtCore -lz -lm -pthread -lgthread-2.0 -lrt -lglib-2.0 -ldl -lQtDesigner -lpthread


As you can see, "-lX11" has been automatically added. I guess that Ubuntu's Qt4 or something in your environment is broken.

Report

van4dium

9 years ago

Hi.

Is Possible to make vpiano vertical?

Report

C

plcl

9 years ago

Hi,

Yes, it is easy. Use the rotate() method inherited from QGraphicsView. For instance, change the demo program in the VPiano class constructor, adding one line:

m_piano = new PianoKeybd(4, 3, this);
m_piano->rotate(270); // sets it vertical

You can use any transformation allowed by QGraphicsView like transform(), rotate(), scale(), shear(), and translate().

Regards,
Pedro

Report

9 years ago

2010-09-25 0.9 Velocity Tint

Translate note velocity into key pressed color tint
Custom note names

2009-09-23 0.8 Raw & Black Keys

Raw keyboard events support.
SVG graphics giving black keys a nice 3D effect.

2009-08-03 0.7 Note Names

New properties: showLabels, useFlats and transpose.

2008-10-05 0.6 Reasonable limits

minNote and maxNote properties to limit the note numbers.
selectedColor property renamed to keyPressedColor.
keyboardMap fixes, mouse handling enhanced.

2008-09-05 0.5 Hash smoke

Speed optimisation and fixes

2008-08-31 0.4 Fashion keys

New highlight color property

2008-07-20 0.3 New rotation property

The new property allows to change, while working in the designer, the
rotation of the keyboard to show it vertical, or with any angle.

2008/07/13 0.2 bugs fixed.

2008/07/12 0.1 first release.

product-maker mmj Sep 27 2010

product-maker kinch27 Sep 25 2010

product-maker 12 20

File (click to download) Version Description Filetype Packagetype License Downloads Date Filesize OCS-Install DL
Details
version
0.9
updated Sep 25 2010
added Jul 12 2008
downloads today
0
page views today 0