Revision as of 01:41, 13 October 2007 by hartti (Talk | contribs)

Archived:How to generate and play MIDI notes in PySymbian

From Nokia Developer Wiki
Jump to: navigation, search

You can play any sound file (including midi) with Python. But for generating a midi file you have to use another way.

A pure Python midi file library exists but a few changes are necessary for adapting to Python for S60.

With it, you can play a single note with the following code.

from smidi import play
play([(64,192), (32, 192)])
51 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.