[sc-users] despair

Andrew Beck abeck99 at gmail.com
Sun Mar 11 19:42:59 PST 2007


Ok something else that's very strange about this -

(
{
               var trig, gate, env, amp, play, output, play2;
               trig            = Impulse.kr( 1/8 );
               gate    = Trig1.kr( trig, 4 );
               env             = Env.asr( 2, 1, 2, \lin );
               amp     = EnvGen.kr( env, gate );
               play            = PinkNoise.ar( 0.1 ) ! 2;
    play2 = play * (1.0 - amp);
    play = play * amp;
//    PrintVal.kr( play[0], 1, 1);
//    play[0] = play[0] + 0.00000001;
               output  = play + play2;

               Out.ar( 0, output[0] );
}.play
)

If you comment out play[0] = play[0] + 0.000001; and the PrintVal.kr line
then it won't work, however if you uncomment either of them it will.

This is out my league, since I've only being using SC for a short time - but
hopefully that will help you and I'm interested in the final answer.

On 3/11/07, Andrew Beck <abeck99 at gmail.com> wrote:
>
> Happening with me on a g4 as well -> I noticed that it was cutting out
> while the envelope was at it's highest, and that it has something to do with
>
> env             = Env.asr( 2, 1, 2, \sin );
>
> setting it to
> env             = Env.asr( 2, 0.99, 2, \sin );
> works fine, I poked around Env.asr for some reason why that would happen,
> but don't know enough.
>
> Anyway - fixing bugs is the only way to fully know something, though
> sometimes I'd rather not know something at all and never encounter bugs!
>
> On 3/11/07, Sciss <contact at sciss.de> wrote:
> >
> > reduced to absolute minimum:
> >
> > (
> >         SynthDef.new( \gaga4, {
> >                 var trig, gate, env, amp, play, output;
> >                 trig            = Impulse.kr( 1/8 );
> >                 gate    = Trig1.kr ( trig, 4 );
> >                 env             = Env.asr( 2, 1, 2, \lin );
> >                 amp     = EnvGen.kr( env, gate );
> >                 play            = PinkNoise.ar( 0.1 ) ! 2;
> >                 output  = (play * amp) + (play * ( 1.0 - amp));
> >
> >                 Out.ar( 0, output );
> > }).send( s );
> > )
> >
> > x = Synth( \gaga4 );
> > x.free;
> >
> >
> > try ! 3 instead of ! 2 and you'll hear that the first two channels
> > get cut away!
> >
> >
> > that's recent SVN build on mac intel.
> > _______________________________________________
> > sc-users mailing list
> > sc-users at create.ucsb.edu
> > http://www.create.ucsb.edu/mailman/listinfo/sc-users
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.create.ucsb.edu/pipermail/sc-users/attachments/20070311/1769aa63/attachment-0001.htm


More information about the sc-users mailing list