Orangutan plays Gershwin...or not

Support for the Orangutan family of robot controllers.

Re: Orangutan plays Gershwin...or not

Postby Jim Remington on Tue Jun 17, 2008 11:19 am

Nice work! I noticed that the Pololu music routines for the X2 also use only one timer, based on the same idea.

Now, if there were an easy way to generate a music array from an arbitrary tune,
life would be even better. Maybe just scan in a score? Finally, we need polyphonic output for our robots!

Jim
Jim Remington
 
Posts: 110
Joined: Mon Aug 21, 2006 11:32 pm
Location: Eugene,OR

Re: Orangutan plays Gershwin...or not

Postby nexisnet on Tue Jun 17, 2008 12:05 pm

I totally agree. That midi-decompiling program you found is great, and the source file I used to generate the note array only had three tracks. I'm really tempted to wire up two more buzzers...

-Adam
User avatar
nexisnet
 
Posts: 1215
Joined: Mon Mar 21, 2005 9:29 pm
Location: Boston, Massachusetts

Re: Orangutan plays Gershwin...or not

Postby Jim Remington on Tue Jun 17, 2008 6:36 pm

Adam:
Try this (it is more suitable for the range of buzzer pitch)

OCR1A=(pgm_read_word(tune_index)>>2);//read note frequency and transpose up two octaves

Still seem to be a few flaky notes, but well worth the effort!

Finally, you do a divide by zero (OCR1A) at the end of the tune. I wonder what happens then?

Jim
Jim Remington
 
Posts: 110
Joined: Mon Aug 21, 2006 11:32 pm
Location: Eugene,OR

Re: Orangutan plays Gershwin...or not

Postby nexisnet on Wed Jun 18, 2008 7:58 pm

Just stumbled on this, it really makes you appreciate the power of modern computers and microcontrollers to do all sorts of things, from factoring primes to playing Baa Baa Black Sheep:
'Oldest' computer music unveiled

-Adam
User avatar
nexisnet
 
Posts: 1215
Joined: Mon Mar 21, 2005 9:29 pm
Location: Boston, Massachusetts

Re: Orangutan plays Gershwin...or not

Postby paul on Mon Jul 21, 2008 9:12 pm

Hi, I just wanted to mention in this thread that our new play() function and the handy get_free_ram() function are included in the C/C++ libraries that we released this week, in case you want to try them out.
User avatar
paul
Site Admin
 
Posts: 912
Joined: Sun Nov 30, 2003 12:06 am
Location: Las Vegas, NV

Previous

Return to Orangutan Robot Controllers

Who is online

Users browsing this forum: MSN [Bot] and 2 guests