[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] MacPerl sings 'Camptown Races'



I have MacPerl set to 5241 K.

One problem I'm having is that it seems different voices default to
different song keys.  It would be easy to change keys that the selected
voice sings in.  For example if a particular voice is singing in the key of
'C' then simply add 2 to each pitch and the voice will sing in the key of
'D'.

  $newPitch = $pitch{$note} + 2;
  SetSpeechPitch $channel, $newPitch;

I wish I could have my program adjust the tempo automatically according to
the processor speed of the computer it is running on. Perhaps I could put
tempo controls in a menu or detect a certain keyDown event to control tempo
during playback, say '+' for faster and '-' for slower. Maybe there's a
better way to control the length of the note than a 'for loop'. Any
suggestions?

"Camptown Races" was written by Stephen Foster in 1849 during the
California gold rush. I don't think Foster ever made it to California.
Foster also wrote "Swanee River" but never saw it. I never knew "Camptown
Races" was considered racist. My apologies if I offended anyone. I picked
it since it only uses notes that are in a one actave range.

I hear Larry Wall is a quite the fiddler. So's my wife. I'd sure love to
jam with him someday.  In the meantime this is as close as I can get.

Thanks for the feedback!

David Seay
Folk Musician/Computer Programmer
http://www.mastercall.com/g-s



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch