Archived:How to generate and play MIDI notes in PySymbian

From Nokia Developer Wiki
Jump to: navigation, search

Archived.pngAquivado: Este artigo foi arquivado, pois o conteúdo não é mais considerado relevante para se criar soluções comerciais atuais. Se você achar que este artigo ainda é importante, inclua o template {{ForArchiveReview|escreva a sua justificativa}}.

All PySymbian articles have been archived. PySymbian is no longer maintained by Nokia and is not guaranteed to work on more recent Symbian devices. It is not possible to submit apps to Nokia Store.

Article Metadata
Created: cyke64 (19 Mar 2007)
Last edited: hamishwillee (14 Jun 2013)

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 PySymbian.

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

from smidi import play
play([(64,192), (32, 192)])
This page was last modified on 14 June 2013, at 08:04.
49 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.