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
Some questions concerning IO
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [2 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
NeKro_Phyl



Joined: Jan 29, 2008
Posts: 11
Location: Berlin

PostPosted: Mon Feb 04, 2008 5:43 am    Post subject: Some questions concerning IO
Subject description: Well, even though I tried do unse args.ck it didn't worked well...
Reply with quote  Mark this post and the followings unread

Well, some new questions from your humble chuck novice...

As I count myself to the people who don't completely hate music like Power Electronics and because a Noise Generator is not the most complicated thing to encode (and because you can always need some noise Wink ), my first chuck Program was a tunable noise - gen, based on an example prog in the chuck tutorial:

// make our patch
SinOsc s => dac;
30.0 => float l_f;
1000.0 => float h_f;
// time-loop, in which the osc's frequency is changed every 100 ms
while( true ) {
1::ms => now;
Std.rand2f(30.0, 1000.0) => s.freq;
}

Ok, the idea is that you can control l_f and h_f. One attempt could be from the command line. So, lets name our Program Noize.ck. One cool thing would be if you could control the frequencies with sth like

+ Noize.ck::30.0:1000.0

but there's my prob that Chuck doesn't accept the strings as floats. So, is there a function like string -> float?

Another Idea would be that you specify in the cmd Line the Keys with wich you can Modify the difference between and/or the absolute values of l_f and h_f. So, my Plan is that if you type:

+ Noize.ck::30.0:a:s:1000.0:b:f

the Program starts generating a Noise with l_f=30.0 and h_f=1000.0, but with a & s you can modify l_f and with d & f h_f.

Any tips how I have 2 implement it?

Thx
Back to top
View user's profile Send private message
NeKro_Phyl



Joined: Jan 29, 2008
Posts: 11
Location: Berlin

PostPosted: Mon Feb 04, 2008 4:23 pm    Post subject: Reply with quote  Mark this post and the followings unread

Answers can be found so easily...

Why don't use the on the fly-concept? So rigt now I change everything I want in the code and load the updated version in the VM...

So now my Prob changes to tune emacs a little bit, but that has to be discussed on another Forum... Wink
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 [2 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