
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on git.opendesktop.org
Virtual Piano Keyboard (Qt Designer plugin)
This is only a component (a widget), not a full program. If you want a real program made with it, please see:
http://www.qt-apps.org/content/show.php/Virtual+MIDI+Piano+Keyboard?content=88233
10 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.
10 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.
plcl
9 years ago
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
9 years ago
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
plcl
9 years ago
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
10 years ago
Is Possible to make vpiano vertical?
Report
plcl
10 years ago
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