×
Namespaces

Variants
Actions
(Difference between revisions)

Music keyboard example in Qt

From Nokia Developer Wiki
Jump to: navigation, search
axeljaeger (Talk | contribs)
(Add screenshot and download link.)
jimgilmour1 (Talk | contribs)
m (minor spelling)
Line 12: Line 12:
  
 
=Introduction=
 
=Introduction=
The keyboard demo shows a music keyboard that can play tones in either square, saw or traingle 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 soundtest 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 lanscape are provided. Switching modes by rotating the device is provided using the XQDeviceOrientation-mobile-extension.
+
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 XQDeviceOrientation-mobile-extension.
  
The whole project can be compiled also for the desktop. The UI is surrounded by a device skin then and a controll panel to give the device orientation is provided.
+
The whole project can be compiled also for the desktop. The UI is surrounded by a device skin then and a control panel to give the device orientation is provided.
  
 
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 of XQDeviceOrienation, the example uses ReadDeviceData and thus cannot be self signed. Use symbian signed online for your own testing.
+
Because of XQDeviceOrientation, the example uses ReadDeviceData and thus cannot be self signed. Use symbian signed online for your own testing.
  
 
=Screenshot=
 
=Screenshot=

Revision as of 21:52, 16 April 2010

Article Metadata
Tested with
Devices(s): Nokia 5800 XpressMusic, Nokia N97 mini
Compatibility
Platform(s): S60 5th Edition
Symbian
S60 5th Edition
Article
Keywords: Qt Resource System, Animation Framework, GraphicsView, Orientation
Created: (06 Apr 2010)
Last edited: jimgilmour1 (16 Apr 2010)

Underconstruction.pngUnder Construction: This article is under construction and it may have outstanding issues. If you have any comments please use the comments tab.

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 XQDeviceOrientation-mobile-extension.

The whole project can be compiled also for the desktop. The UI is surrounded by a device skin then and a control panel to give the device orientation is provided.

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 of XQDeviceOrientation, the example uses ReadDeviceData and thus cannot be self signed. Use symbian signed online for your own testing.

Screenshot

Keyboard-composition.png

Download

File:Keyboard.zip

134 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×