NeKro_Phyl
Joined: Jan 29, 2008 Posts: 11 Location: Berlin
|
Posted: 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... |
 |
|
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 ), 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 |
|
NeKro_Phyl
Joined: Jan 29, 2008 Posts: 11 Location: Berlin
|
Posted: Mon Feb 04, 2008 4:23 pm Post subject:
|
 |
|
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...  |
|