You are here

gpsgamelan.py is ok, but i want real music - use 12 major keys with 10 chords

Submitted by Roland on Tue, 2010-07-06 00:13

Continuing to have a great time with Python on the N900. I'll have to post later about how awesome it is to run N900 Python aka PyMaemo scripts  from a Terminal.app window on my Mac edited in Aquamacs using ange-ftp (or whatever it's called in the 21st century).

Anyhow came up with gpsgamelan.py which is a modification of the script from latlongsound.py to play gamelan (indonesian scale) music (using the code from PyGSoundTestTest_3.py from Matthew Brown, thanks!) based on the jitter from GPS Lat/Long (10 different sounds based on latitude and another 10 different gamelan sounds based on longitude)

Here's what it sounds like (short video from flickr):

Not so great sound. My next idea is to play more pleasing music

  • e.g. for each neighbourhood, pick a major key (there are twelve possible major keys in Western music AFAIK)
  • based on the latitude, play a major chord (one of 10 possible)
  • based on the longitude, play a minor chord (one of 10 possible)

My guess is this will produce more melodic and pleasing sound

Comments

Glad you're having fun with my program!

But this is funny, I didn't expect it to be used on a mobile phone mounted on a bike . . .

(  And by the way, gamelan is real music. Haha ;)  )

Very awesome post , i am really impressed with it a lot

<a href="http://www.zecrosoft.com/2014/09/Benefits-of-Ginger.html">فوائد الزنجبيل</a>  <a href="http://www.zecrosoft.com/2014/09/Pomegranate-benefits-for-diet.html">فوائد الرمان</a>  <a href="http://www.zecrosoft.com/2014/09/Benefits-of-the-ring.html">فوائد الحلبة</a>  <a href="http://www.zecrosoft.com/2014/09/Onion-benefits.html">فوائد البصل </a>  <a href="http://www.zecrosoft.com/2014/09/Benefits-thyme.html">فوائد الزعتر</a>  <a href="http://www.zecrosoft.com/2014/09/benefits-sesame-oil.html">فوائد زيت السمسم </a>  <a href="http://www.zecrosoft.com/2014/10/hemorrhoids-treatment.html">علاج البواسير</a> <a href="http://www.zecrosoft.com/2014/10/Benefits-of-anise.html">فوائد اليانسون</a>  <a href="http://www.zecrosoft.com/2014/09/turmeric-benefits-for-hair.html">فوائد الكركم</a> <a href="http://www.zecrosoft.com/2014/10/joha-stories.html">قصص جحا</a>  <a href="http://www.zecrosoft.com/2014/10/hemorrhoids-treatment.html">صور يوم الجمعه</a>  <a href="http://www.zecrosoft.com/2014/10/Signs-of-Pregnancy.html">علامات الحمل</a>  <a href="http://www.zecrosoft.com/2014/10/Definition-of-Love.html">تعريف الحب</a>  <a href="http://www.zecrosoft.com/2014/10/life-of-isthmus.html">حياة البرزخ</a>  <a href="http://www.zecrosoft.com/2014/10/Benefits-of-Raisins.html">فوائد الزبيب</a>

Add new comment