[jsyn] hello, can you please help me?

jsyn at music.columbia.edu jsyn at music.columbia.edu
Wed Apr 11 16:42:47 EDT 2007


Hello Antonio,

 > but how? do you mean to build fixed values EnvPlayer with wire and then

You can build circuits either with Wire, or by hand. Wire helps you keep 
track of the connections.

 > save as java and modify the code just by adding some math.rand?
 > would this be possible?

Once you have a circuit with the envelope player then you can queue() 
parts of the envelope whenever you want.

You can create random envelope. A description of envelope usage is here:

http://www.softsynth.com/jsyn/tutorial/envelopes.html

An even easier way might be to use a LinearLag unit.
You can set() the time value to control how fast you want it to change.

Then set the input port to the target value. The output will slowly 
change to match the input.

http://www.softsynth.com/jsyn/docs/autodocs/com/softsynth/jsyn/LinearLag.html

Something like the following:

LinearLag lag = new LinearLag();
lag.output.connect( whatever.input );
lag.start();

double duration = Math.random() * 5.0;
lag.time.set( duration );

double target = Math.random();
lag.input.set( target );


Thank you,
Phil Burk
---------------------------------------
SoftSynth, Audio Research and Development
http://www.softsynth.com/
75 Pleasant Lane, San Rafael, CA, 94901 USA
Phone/FAX: 1-415-453-4320
---------------------------------------


jsyn at music.columbia.edu wrote:
> Thank you Phil,
> but how? do you mean to build fixed values EnvPlayer with wire and then 
> save as java and modify the code just by adding some math.rand?
> would this be possible?
> 
> 
> Antonio
> 
> Il giorno 07/apr/07, alle ore 18:48, jsyn at music.columbia.edu ha scritto:
> 
>>
>>
>> Wire is primarily for designing audio rate circuits.  Your random 
>> ramps are more of a control rate process. That would be easy to do in 
>> Java but not so easy in Wire.
>>
>> In Java you could create an EnvelopePlayer and then simply queue up 
>> your random segments as needed.
>>
>> Thank you,
>> Phil Burk
>>
>>> fade-in duration (random range from 1. - 20 seconds)
>>> sustain duration (random range from 1. - 20 secs)
>>> fade-out duration (random range 1. - 20 secs)
>>> silence duration (random 1. - 20 secs)
>>> again from the beginning with new random values


More information about the JSyn mailing list