Re: [Bluemusic-users] [OT] seed for AthenaCL
Brought to you by:
kunstmusik
From: Steven Yi <ste...@gm...> - 2015-09-20 23:00:26
|
Hi Menno, Just a fair warning, adding controlled randomness may take some work. Blue's JMask data class implementation lies in: https://github.com/kunstmusik/blue/tree/master/blue-core/src/blue/soundObject/jmask Essentially, what I did was convert calls to Random.nextDouble() to instead use a passed-in Random object. That allows the Random object to be created once at the very top of the JMask hierarchy, then that object is passed to every one of the sub-classes. That way, when you seed the Random object, the same one is used everywhere and the values come out the same. For AthenaCL, you'd have to do something similar in Python. I'd search for the word random instead of seed. That assumes it's using the random package and not something else. After that, you'd have to look up seeding and random in Python and work from there. Hope that helps! steven On Fri, Sep 18, 2015 at 3:48 AM, Menno Knevel <mag...@gm...> wrote: > Hi Steven, > > you have given JMask a seed, an important feature that is not found in the > original program CMask. > > I always wanted to have such a seed option in the Python-based AthenaCL > program. I'd like to copycat your addition regarding a seed implementation > but now for AthenaCL. > > I was looking in all of the AthenaCL modules for the word "seed" but until > now found them only in the Omde module. As i understand it, Omde is part of > CMask so i would like to look at what you did to add the seed feature to > AthenaCL. > > How can i get to read the text of the blue module? > What is the name of this blue module? > > > > -- > View this message in context: http://csound.1045644.n5.nabble.com/OT-seed-for-AthenaCL-tp5743695.html > Sent from the Csound - Blue - User mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > _______________________________________________ > Bluemusic-users mailing list > Blu...@li... > https://lists.sourceforge.net/lists/listinfo/bluemusic-users |