[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-dev] SCGraph and Rand()



On Tuesday 09 December 2008, Holger Ballweg wrote:

> Hi Flo,

>

> both with the newest version of scgraph and with 0.12 I get a segfault

> when trying to play a SynthDef, which contains Rand():

>

> e. g. try this[1]:

Does this tarball fix this problem for you?

http://tapas.affenbande.org/scgraph_osx_10.4_12.12.2008.tgz

Regards,

Flo

> standard view from helpfile + a cube which should have some more random

> values, but even if I use only one Rand() - segmentation fault

> But not until the synth is stopped. Without doneAction[2] scgraph runs

> until you somehow stop that synth...

>

>

> I used sc svn 8088 & 8049 & sc 3.2 all with the same results...

>

> Hope you can reproduce this, if not, i can send you more debug info etc.

>

> MfG,

>

>

> Holger

>

>

> [1]:

> (

> {GGLRenderer.gr(

> in: In.gr(0),

> texturing: 1,

> transparency: 1,

> lighting: 1

> )}.play

> )

>

> (

> SynthDef(\cube2, {

> var cube,move,glow,shine,size;

>

> move = Rand(5,10);

> shine = 3;//Rand(3,6);

> glow = 1;//Rand(0,1);

> size = 1;// Rand(0.1,1);

> cube =

> GTranslate.gr(

> GMaterial.gr(

>

> GCube.gr(size:EnvGen.kr(Env.new([size,size,size/2,size*4],[move,shine,glow]

>))), shinyness: 0,

> diffuse: Line.kr(0.3,0,move+glow+shine).dup(3) ++ 0.002,

> ambient: EnvGen.kr(

> Env.new(

> [0.0,0.1,0.4,0.6],

> [move,shine,glow]),

> doneAction:2 // [2]

> ).dup(3) ++ 0.001

> ),

> [0,0,0]

> );

> Out.gr(0, cube);

> }).play;

> )

>

> _______________________________________________

> sc-dev mailing list

>

> info (subscription, etc.):

> http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml archive:

> https://listarc.bham.ac.uk/marchives/sc-dev/

> search: https://listarc.bham.ac.uk/lists/sc-dev/search/

--

Palimm Palimm!

http://tapas.affenbande.org