You Are Here:

Community: Developer Discussion Boards

#1 Old App idea:accelerometer theremin but how? - 2008-10-29, 12:50

Join Date: Sep 2008
Posts: 35
McLightning34
Offline
Registered User
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?
Reply With Quote

#2 Old Re: App idea:accelerometer theremin but how? - 2008-10-29, 13:57

Join Date: Sep 2008
Posts: 21
JimmPooJimmPoo
Offline
Registered User
hi mclightning bro

pls give a link to youtube video, to see the video
Reply With Quote

#3 Old Re: App idea:accelerometer theremin but how? - 2008-10-29, 14:30

Join Date: Oct 2007
Posts: 2,845
Location: Deva, Romania
bogdan.galiceanu's Avatar
bogdan.galiceanu
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.
Reply With Quote

#4 Old Re: App idea:accelerometer theremin but how? - 2008-10-29, 15:49

Join Date: Jul 2008
Posts: 15
dinnerdog
Offline
Registered User
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
Reply With Quote

#5 Old Re: App idea:accelerometer theremin but how? - 2008-10-29, 15:50

Join Date: Sep 2008
Posts: 35
McLightning34
Offline
Registered User
Quote:
Originally Posted by dinnerdog View Post
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
yep.i'm already working on it but it's a bit slower for using with acce.
Reply With Quote

#6 Old Re: App idea:accelerometer theremin but how? - 2008-10-29, 15:56

Join Date: Sep 2008
Posts: 35
McLightning34
Offline
Registered User
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()
im still working on it
Reply With Quote

#7 Old Re: App idea:accelerometer theremin but how? - 2008-10-29, 16:01

Join Date: Sep 2008
Posts: 35
McLightning34
Offline
Registered User
Quote:
Originally Posted by JimmPooJimmPoo View Post
hi mclightning bro

pls give a link to youtube video, to see the video
http://www.youtube.com/watch?v=c5PEsGSEAQg
check it out
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
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

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia