Example: Playing percussion sounds by tapping the screen

Description

This example MIDlet shows you how to use the multimedia and touch features of the Series 40 platforms to create a virtual drumkit that allows the user to play percussion sounds. The sounds are implemented with Player objects that are triggered when touch events are registered on the circular pads ("drums") on the screen. The user can also record their beats and play them back later.

Figure: Drumkit main view

Prerequisites

You need the following to develop and test this MIDlet:

  • Nokia SDK 1.0 for Java or newer

  • Series 40 6th Edition Feature Pack 1 device or newer

Development

For more information about the MIDlet, see:

  • Design for information about the design and functionality of the MIDlet

  • Implementation for information about implementing the MIDlet

You can download the project files for the MIDlet from the download page.