| Reply | « Previous Thread | Next Thread » |
|
hi there,
i have a new app idea on accelerometer. i saw a video on youtube there is an iphone an it was creating different sounds by the rotation of the phone like a theremin. (iphone was probably doing it over the pc via bluetooth.) is it possible to make smt. like this with an accelerometer capable phone(n95) with python programming(without computer).i search around tutorials and code examples for creating sound but i couldn't found any script example or a module for creating noise with python? |
| McLightning34 |
| View Public Profile |
| Find all posts by McLightning34 |
|
hi mclightning bro
![]() pls give a link to youtube video, to see the video ![]() |
| JimmPooJimmPoo |
| View Public Profile |
| Find all posts by JimmPooJimmPoo |
|
Join Date: Oct 2007
Posts: 2,845
Location: Deva, Romania
Offline
Forum Nokia Champion
|
|
Here are some ways to play sounds:
http://wiki.forum.nokia.com/index.ph...y_a_tone_sound http://wiki.forum.nokia.com/index.ph...lay_midi_notes http://wiki.forum.nokia.com/index.ph...ultimedia_file It depends on what you're most confortable with. |
|
You could try using smidi which will generate midi tones through your phone using python.
Take a look here for smidi.py http://wiki.opensource.nokia.com/pro...python_modules All the best Dinnerdog |
|
Quote:
|
| McLightning34 |
| View Public Profile |
| Find all posts by McLightning34 |
|
Code:
import appuifw
import axyz
import e32
import audio
import math
from smidi import play
import key_codes
rn=1
gx=1
def cn(x,y,z):
global gx
gx=x
def cal1():
global gx
gx=(25/10)*gx
while(rn==1):
play([(gx,192)])
e32.ao_sleep(1)
axyz.connect(cn)
canvas=appuifw.Text(u"Gx: %d" % (gx))
canvas.bind(key_codes.EKeyUpArrow,cal1)
appuifw.app.body=canvas
def quit():
app_lock.signal()
appuifw.app.exit_key_handler=quit
app_lock=e32.Ao_lock()
app_lock.wait()
|
| McLightning34 |
| View Public Profile |
| Find all posts by McLightning34 |
|
Quote:
check it out |
| McLightning34 |
| View Public Profile |
| Find all posts by McLightning34 |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Changing App Mgr settings from J2ME app | ddbhasin | Mobile Java General | 6 | 2007-09-21 08:18 |
| why my app is not shown in emulator?....due to i have change UID | bharats | Symbian Tools & SDKs | 3 | 2007-09-12 07:49 |
| renaming app, how?? | Audun Holme | General Symbian C++ | 2 | 2007-05-13 13:10 |
| Dialog's clipping area (again). Nokia experts, please help | synov | Symbian User Interface | 0 | 2004-06-26 15:35 |
| 7650 - go back, close my app not closing the container app | geran | Digital Rights Management & Content Downloading | 1 | 2002-12-05 10:58 |