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

[sc-users] simple programming/syntax problem



Hi list,

I'm having a problem with some basic programming/syntax concepts.

a = {
var fir;
fir = { RandSeed.kr(1); (LFNoise0.kr(14)).varlag(0.01,5) };
};

a.value.plot(2);

Plotting the function gives expected result,
but if I try to combine functions (thus creating a BinaryOpFunction) 
I get an error, something like:

a = {
var fir, sec, sum;
fir = { RandSeed.kr(1); (LFNoise0.kr(14)).varlag(0.01,5) };
sec = { RandSeed.kr(2); (LFNoise0.kr(4)).varlag(0.01,5) };
sum = fir + sec;
};

a.value.plot(2);

Is there another operation (or diff way of doing things)
I can do so that plot will work on the result of fir + sec?

Many thx,
L.

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/