[chuck-users] one of the two sX.freq() in a same while doesn't seem to get changed

2g electriclightheads at gmail.com
Fri Aug 10 08:32:54 EDT 2007


ah yes!
i didn't test it that way.
(i also forgot to check that Blit .. i will after this)
so i  did that testing ..and found out that the long never moving long
tone was given by
SinOsc s3 => PRCRev g3 => dac.left;
SinOsc s4 => PRCRev g4 => dac.right;
which i left as is buy comment outing the funcs related to those
(the sum came in the middle so that was confusing)

so
as i asked in other thread
i learned that the initiation of the SinOsc is important
if i want everything go correct from in the beginning

am now even nervous to the order of this in the code

SinOsc s1 => Gain g1 => dac;
SinOsc s2 => g1;
SinOsc s3 => PRCRev g3 => dac.left;
SinOsc s4 => PRCRev g4 => dac.right;

and resulted into this(too nervous?):

.5::second => dur T;
T - (now % T) => now;
SinOsc s1 => Gain g1;
SinOsc s2 => g1;
SinOsc s3 => PRCRev g3;
SinOsc s4 => PRCRev g4;
.25 => g1.gain;
.25 => g3.gain;
.25 => g4.gain;
27.5 * Math.pow(2.0,(3.0/12.0)) => float oilroot;
2 * oilroot => s2.freq;
s2.freq() * Std.rand2(16, 32) / 16.0 => s3.freq;
s2.freq() * Std.rand2(16, 32) / 16.0 => s4.freq;
g1 => dac;
g3 => dac.left;
g4 => dac.right;

fun void ri()
{
while(true)
        {
        300::ms => now;
        s2.freq() * Std.rand2(16, 32) / 16.0 => s3.freq;
        }
}

fun void ga()
{
while(true)
        {
        330::ms => now;
        s2.freq() * Std.rand2(16, 32) / 16.0 => s4.freq;
        }
}

spork ~ ri();
spork ~ ga();

while( true ) {
        Std.rand2(32, 64) * oilroot / 32.0 => s1.freq;
        <<<"s1 changed", s1.freq()>>>;
        //1000::ms => now;
        3::T => now;
        s1.freq() * Std.rand2(8, 16) / 4.0 => s2.freq;
        <<<"s2 changed", s2.freq()>>>;
        //250::ms => now;
        1::T => now;
}

On 8/10/07, Kassen <signal.automatique at gmail.com> wrote:
> 2g;
>
> >
> > but nothing seemed to be working properly
> > so comment outed a lot
> > and went into the debug mode
>
> It looked fine to me, I listened to it and it sounded fine as well. Then, to
> make sure s1 was working properly I disconected everything but s1 from the
> DAC and listened to just s1. s1 does change it's pitch but it's very, very
> low. At times I couldn't hear it and needed to place my hand on the woofer
> to be sure it was playing as it was so low-pitched. In fact, I think many
> normal speakers would have a problem with playing sines of such a low
> frequency.
>
> I think that's where your issue is; the tones are very low and likely hidden
> because of higher overtones. Perhaps you would like to try the "Blit" or a
> similar band-limited Ugen. With those you can controll the amount of
> harmonics in the wave so you can still have a very low tone but you'll have
> more controll to make sure it has at least a few audible harmonics.
>
> Yours,
> Kas.
>
> _______________________________________________
> chuck-users mailing list
> chuck-users at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
>
>


-- 
2g
http://micro.ispretty.com


More information about the chuck-users mailing list