electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links
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
Microphone values input
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [3 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
mochabear



Joined: Mar 11, 2008
Posts: 2
Location: Cambridge-UK

PostPosted: Tue Mar 11, 2008 4:03 pm    Post subject: Microphone values input Reply with quote  Mark this post and the followings unread

Hello I am new in Chuck programming and I am trying several codes to create interesting result. Shocked

I am trying but with no success to make the frequency of an oscillator change according to the microphone input values. I have used the audio input code combine with other codes but I cannot figure out how to do it. I have problems getting the numeric values from a microphone input. Any help is extremely welcomed and appreciated.


Many thanks
Back to top
View user's profile Send private message
Inventor
Stream Operator


Joined: Oct 13, 2007
Posts: 6221
Location: near Austin, Tx, USA
Audio files: 267

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

From the SinOsc unit generators reference page:

.sync - ( int , READ/WRITE ) - (0) sync frequency to input, (1) sync phase to input, (2) fm synth

So try something like this

Code:

adc => Gain g => SinOsc osc => dac;
g.gain (1000);
osc.sync (0);
day => now;


Hope that does what you want it to. I tried different gains. At 1000 it sounds very similar to the input voice, but at 5000 it sounds more distorted... and welcome aboard!
Back to top
View user's profile Send private message Send e-mail
mochabear



Joined: Mar 11, 2008
Posts: 2
Location: Cambridge-UK

PostPosted: Wed Mar 12, 2008 3:01 am    Post subject: Reply with quote  Mark this post and the followings unread

thank you very much it was really helpful.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [3 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


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