Music keyboard example in Qt
hamishwillee
(Talk | contribs) m (Hamishwillee - Bot change of template (Template:CodeSnippet) - now using Template:ArticleMetaData) |
hamishwillee
(Talk | contribs) m (Hamishwillee - Fix categories) |
||
| (4 intermediate revisions by one user not shown) | |||
| Line 1: | Line 1: | ||
| − | [[Category:Qt]][[Category:Qt | + | [[Category:Qt Mobility]][[Category:Symbian]][[Category:Code Examples]][[Category:Qt]][[Category:Qt C++ UI]][[Category:S60 5th Edition]] |
| − | {{ArticleMetaData | + | {{ArticleMetaData <!-- v1.2 --> |
| − | | | + | |sourcecode= [[Media:Keyboard.zip]] |
| − | | | + | |installfile= <!-- Link to installation file (e.g. [[Media:The Installation File.sis]]) --> |
|devices= Nokia 5800 XpressMusic, Nokia N97 mini | |devices= Nokia 5800 XpressMusic, Nokia N97 mini | ||
| − | + | |sdk= <!-- SDK(s) built and tested against (e.g. [http://linktosdkdownload/ Nokia Qt SDK 1.1]) --> | |
| − | + | |platform= S60 5th Edition | |
| − | + | |devicecompatability= <!-- Compatible devices (e.g.: All* (must have GPS) ) --> | |
| − | + | |dependencies= <!-- Any other/external dependencies e.g.: Google Maps Api v1.0 --> | |
| − | + | |signing= <!-- Empty or one of Self-Signed, DevCert, Manufacturer --> | |
| − | + | |capabilities= ReadDeviceData | |
| − | + | |keywords= Qt Resource System, Animation Framework, GraphicsView, Orientation | |
| − | |sdk=<!-- SDK(s) built and tested against (e.g. [http://linktosdkdownload/ Nokia Qt SDK 1.1]) --> | + | |language= <!-- Language category code for non-English topics - e.g. Lang-Chinese --> |
| − | |devicecompatability=<!-- Compatible devices (e.g.: All* (must have GPS) ) --> | + | |translated-by= <!-- [[User:XXXX]] --> |
| − | |signing=<!-- Empty or one of Self-Signed, DevCert, Manufacturer --> | + | |translated-from-title= <!-- Title only --> |
| − | |capabilities=<!-- | + | |translated-from-id= <!-- Id of translated revision --> |
| − | |author=[[User:Axeljaeger]] | + | |review-by= <!-- After re-review: [[User:username]] --> |
| + | |review-timestamp= <!-- After re-review: YYYYMMDD --> | ||
| + | |update-by= <!-- After significant update: [[User:username]]--> | ||
| + | |update-timestamp= <!-- After significant update: YYYYMMDD --> | ||
| + | |creationdate= 20100406 | ||
| + | |author= [[User:Axeljaeger]] | ||
}} | }} | ||
| − | + | == Introduction == | |
| − | =Introduction= | + | |
The keyboard demo shows a music keyboard that can play tones in either square, saw or triangle sound wave. | The keyboard demo shows a music keyboard that can play tones in either square, saw or triangle sound wave. | ||
In portrait mode, the user can choose a waveform and adjust the volume. A small keyboard for sound-test is provided in the bottom. In landscape mode, the whole screen is filled with a keyboard to be used for actual playing of a song. | In portrait mode, the user can choose a waveform and adjust the volume. A small keyboard for sound-test is provided in the bottom. In landscape mode, the whole screen is filled with a keyboard to be used for actual playing of a song. | ||
| − | The whole user interface is implemented with QGraphicsWidgets in a QGraphicsScene. Animated transitions between portrait and landscape are provided. Switching modes by rotating the device is provided using the QOrientationSensor. | + | The whole user interface is implemented with {{Icode|QGraphicsWidgets}} in a {{Icode|QGraphicsScene}}. Animated transitions between portrait and landscape are provided. Switching modes by rotating the device is provided using the {{Icode|QOrientationSensor}}. |
Sound playback is provided when compiled for S60 using native code. As soon as the is a backend for Qt multimedia for Symbian is available, the example will be ported to use the Qt audio system. Playback will then on both mobile and desktop using the same code path. | Sound playback is provided when compiled for S60 using native code. As soon as the is a backend for Qt multimedia for Symbian is available, the example will be ported to use the Qt audio system. Playback will then on both mobile and desktop using the same code path. | ||
| − | Because the sensor framework from QtMobility needs ReadDeviceData capability the example cannot be self signed. Use Symbian Signed online for your own testing. | + | Because the sensor framework from QtMobility needs {{Icode|ReadDeviceData}} capability the example cannot be self signed. Use Symbian Signed online for your own testing. |
| − | =Planned updates= | + | == Planned updates == |
| − | As soon as a solution is found for | + | As soon as a solution is found for http://bugreports.qt.nokia.com/browse/QTMOBILITY-999 a version with a Qt-based backend will be released |
As soon as nokia provides a qt-ish way to lock the screen orientation, this will be added as well | As soon as nokia provides a qt-ish way to lock the screen orientation, this will be added as well | ||
| − | =History= | + | == History == |
{| border="1" | {| border="1" | ||
|6 April 2010 | |6 April 2010 | ||
| − | |Initial version that was submitted to the QtMobility-contest. This one was actually not using QtMobility but the so called "[[ | + | |Initial version that was submitted to the QtMobility-contest. This one was actually not using QtMobility but the so called "[[Mobile Extensions|Qt Mobile Extensions]]" |
|- | |- | ||
|21 September 2010 | |21 September 2010 | ||
| − | |Use QtMobility instead of Qt Mobile Extensions - Remove own emulator in favor of NokiaQtSDK's new | + | |Use QtMobility instead of Qt Mobile Extensions - Remove own emulator in favor of NokiaQtSDK's new emulator |
|} | |} | ||
| − | =Screenshot= | + | == Screenshot == |
[[File:Keyboard-composition.png]] | [[File:Keyboard-composition.png]] | ||
| − | =Download= | + | |
| + | ==Download== | ||
[[File:Keyboard.zip]] | [[File:Keyboard.zip]] | ||
Revision as of 09:34, 13 August 2012
Article Metadata
Code Example
Tested with
Compatibility
Platform Security
Article
Contents |
Introduction
The keyboard demo shows a music keyboard that can play tones in either square, saw or triangle sound wave.
In portrait mode, the user can choose a waveform and adjust the volume. A small keyboard for sound-test is provided in the bottom. In landscape mode, the whole screen is filled with a keyboard to be used for actual playing of a song.
The whole user interface is implemented with QGraphicsWidgets in a QGraphicsScene. Animated transitions between portrait and landscape are provided. Switching modes by rotating the device is provided using the QOrientationSensor.
Sound playback is provided when compiled for S60 using native code. As soon as the is a backend for Qt multimedia for Symbian is available, the example will be ported to use the Qt audio system. Playback will then on both mobile and desktop using the same code path.
Because the sensor framework from QtMobility needs ReadDeviceData capability the example cannot be self signed. Use Symbian Signed online for your own testing.
Planned updates
As soon as a solution is found for http://bugreports.qt.nokia.com/browse/QTMOBILITY-999 a version with a Qt-based backend will be released As soon as nokia provides a qt-ish way to lock the screen orientation, this will be added as well
History
| 6 April 2010 | Initial version that was submitted to the QtMobility-contest. This one was actually not using QtMobility but the so called "Qt Mobile Extensions" |
| 21 September 2010 | Use QtMobility instead of Qt Mobile Extensions - Remove own emulator in favor of NokiaQtSDK's new emulator |


