electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Articles  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links  |  Store
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
 Forum index » DIY Hardware and Software » ChucK programming language
Talking Guitar
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [8 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
Inventor
Stream Operator


Joined: Oct 13, 2007
Posts: 5978
Location: San Antonio, Tx, USA
Audio files: 258

PostPosted: Thu May 29, 2008 7:10 pm    Post subject: Talking Guitar
Subject description: that says "do you" and possibly more!
Reply with quote  Mark this post and the followings unread

I'm just beginning to get my guitar to talk. Attached is a program that synthesizes the vocal tract. It listens to the microphone for guitar input, then wah-filters it in x and y dimensions under mouse control. I pluck the low E string and move the mouse and it says "do you", just like Peter Frampton did with a voice box when he played "do you feel like i do".

For now I'm limited to the "d" consonant and o, u, ou type vowels, but I hope to expand it once the accelerometer is on the guitar. I think a muffled strum might make a good "t" or "th" sound. Also the vocal formants include "i" and "oi" vowels when accessed properly.

In addition, I am using wah to learn but dual band-pass is the correct model, perhaps I will try that next.

Anyway, if you don't have a guitar, an amp, and ChucK set up to play the attached source code, then just listen to the attached mp3. If you listen creatively, some of the attempts really sound like "do you"! Cheers!


Guitar_Mouse1.ck
 Description:
The source code for the guitar mouse wah program

Download
 Filename:  Guitar_Mouse1.ck
 Filesize:  3.94 KB
 Downloaded:  200 Time(s)


Guitar_Mouse1.mp3
 Description:
"Do you" spoken by the guitar!

Download
 Filename:  Guitar_Mouse1.mp3
 Filesize:  532.65 KB
 Downloaded:  399 Time(s)


_________________
"Let's make noise for peace." - Kijjaz
Back to top
View user's profile Send private message Send e-mail
Kassen
Janitor
Janitor


Joined: Jul 06, 2004
Posts: 7678
Location: The Hague, NL
G2 patch files: 3

PostPosted: Fri May 30, 2008 4:22 am    Post subject: Reply with quote  Mark this post and the followings unread

Very nice indeed!
_________________
Kassen
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Inventor
Stream Operator


Joined: Oct 13, 2007
Posts: 5978
Location: San Antonio, Tx, USA
Audio files: 258

PostPosted: Wed Jun 11, 2008 5:42 pm    Post subject: Reply with quote  Mark this post and the followings unread

Kassen wrote:
Very nice indeed!


Thanks Kassen, I'd like to add the following reference which was provided by elektro80:

http://www.geofex.com/article_folders/wahpedl/voicewah.htm

That page shows a chart from Bell Labs with vowel formants. Now that I'm understanding my guitar a little better and playing some chords, I hope to make a better attempt at the concept. Does anyone have any comments on a good way to go about this? Hmmm, I think I'll code something up tonight.

_________________
"Let's make noise for peace." - Kijjaz
Back to top
View user's profile Send private message Send e-mail
Inventor
Stream Operator


Joined: Oct 13, 2007
Posts: 5978
Location: San Antonio, Tx, USA
Audio files: 258

PostPosted: Thu Jun 12, 2008 2:25 am    Post subject: Reply with quote  Mark this post and the followings unread

I just spent a whole lot of time going nowhere fast with this whole talking guitar thing. I decided the mouse was hard to use while plucking the guitar, so I tried to automate the process of switching between different spots on the vocal formants chart. Tried everything, got nowhere. Some days you get the bear, some days the bear gets you.
_________________
"Let's make noise for peace." - Kijjaz
Back to top
View user's profile Send private message Send e-mail
Inventor
Stream Operator


Joined: Oct 13, 2007
Posts: 5978
Location: San Antonio, Tx, USA
Audio files: 258

PostPosted: Thu Jun 12, 2008 3:23 am    Post subject: Reply with quote  Mark this post and the followings unread

Looks like I spoke too soon. After hours and hours of failure I decided to google vocal chord frequencies. A human male has a vocal chord fundamental frequency of about 125 Hz (200 for females, 300 for children). This turns out on my handy frequency chart to be string 5, fret 2. So I reasoned that I should play that note and enhance the harmonics somehow.

Well, what have we been playing with recently but comb filters, which have a gain of about 10 when their feedback gain is set to 0.9, so 10x on all harmonics should help. I sent that into the parallel vocal chord formants and had the computer switch from vowel to vowel and got the attached audio sample. Source code is attached as well.

When you listen, first there are two seconds of silence and then "oo ou ee ae i oo", which models Peter Frampton's "Do you feel like I do?" that he did with a talk box. The example occurs three times. It's still not as good as his version (I'm playing it on iTunes now), but it's definitely some good progress. There are some clicks and pops in the recording due to the sudden switching of the band pass filters as well. Yay, I did it (almost)!


Peter_Frampton4.ck
 Description:
Peter Frampton source code

Download
 Filename:  Peter_Frampton4.ck
 Filesize:  1.71 KB
 Downloaded:  153 Time(s)


Peter_Frampton4.mp3
 Description:
Peter Frampton audio file

Download
 Filename:  Peter_Frampton4.mp3
 Filesize:  360.41 KB
 Downloaded:  376 Time(s)


_________________
"Let's make noise for peace." - Kijjaz
Back to top
View user's profile Send private message Send e-mail
Inventor
Stream Operator


Joined: Oct 13, 2007
Posts: 5978
Location: San Antonio, Tx, USA
Audio files: 258

PostPosted: Thu Jun 12, 2008 6:46 am    Post subject: Reply with quote  Mark this post and the followings unread

I've been playing with the talking guitar program some more this morning. I thought it might sound better if I used a different pitch for the fundamental of each word. The pitches are (low, medium, high, medium, high, low) to correspond with the words (Do you feel like I do). The attached audio sample is the result, a bit awkward as my fingering is poor being a guitar newbie, but try to imagine it done properly. Which is better, the previous example or this new one?

p.s. I had to cook up a whole complex 12-comb filter with auto normalizer to get it to work, too. What fun!


Peter_Frampton5.mp3
 Description:
New version with pitch change for each word

Download
 Filename:  Peter_Frampton5.mp3
 Filesize:  360.41 KB
 Downloaded:  426 Time(s)


_________________
"Let's make noise for peace." - Kijjaz
Back to top
View user's profile Send private message Send e-mail
Inventor
Stream Operator


Joined: Oct 13, 2007
Posts: 5978
Location: San Antonio, Tx, USA
Audio files: 258

PostPosted: Fri Jun 13, 2008 6:51 am    Post subject: Reply with quote  Mark this post and the followings unread

I got tired of having to time my playing according to the computer's time delay for each word, so I created a shred that auto-detects the note being played and applies a corresponding vowel to it. In this way whenever you pluck a string you get a corresponding vowel sound, so the pitch and the word go together.

This is nice because it is kind of automatically synced to the guitar playing so that the performer is free to make whatever sentences are desired from the vowels. The source code an an audio sample are attached.


Peter_Frampton8.mp3
 Description:
Do you feel like I do under guitar strumming control, occurs twice

Download
 Filename:  Peter_Frampton8.mp3
 Filesize:  469.79 KB
 Downloaded:  409 Time(s)


Peter_Frampton8.ck
 Description:
Source code for this effect

Download
 Filename:  Peter_Frampton8.ck
 Filesize:  3.33 KB
 Downloaded:  158 Time(s)


_________________
"Let's make noise for peace." - Kijjaz
Back to top
View user's profile Send private message Send e-mail
Inventor
Stream Operator


Joined: Oct 13, 2007
Posts: 5978
Location: San Antonio, Tx, USA
Audio files: 258

PostPosted: Fri Jun 13, 2008 12:38 pm    Post subject: Reply with quote  Mark this post and the followings unread

I reallized that the human throat and mouth muscles shape the sound in a gradual fashion, not suddenly with jumping motions. This led me to imagine that if I added smooth sweeping to the code, the sounds would be improved. And boy are they!

Have a listen to the attached *.mp3 file. It has "do you feel like I do" three times, done with the new code. Not all of the words are quite recognizable, but some of them are pretty good! Progress!


Peter_Frampton11.mp3
 Description:
Latest and greatest, with smoothly changing vowel sounds.

Download
 Filename:  Peter_Frampton11.mp3
 Filesize:  469.79 KB
 Downloaded:  420 Time(s)


_________________
"Let's make noise for peace." - Kijjaz
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [8 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software » ChucK programming language
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
e-m mkii

Please support our site. If you click through and buy from
our affiliate partners, we earn a small commission.


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use