[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sc-users] simple programming/syntax problem
- To: sc-users@xxxxxxxxxxxxxxxx
- Subject: [sc-users] simple programming/syntax problem
- From: Lewis Bates <bateslewis@xxxxxxxxx>
- Date: Tue, 31 Dec 2013 18:09:43 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:content-transfer-encoding:subject:date:message-id :to:mime-version; bh=dt7lDfv4rol5RBhOI9AIXnV0z2GQFeqI3cDzRCX2lbE=; b=IJaVFcOP/u3kIcVCtGWgLqpQTiSWYB0th9YVaFFZWXxYpFQgrWHy+wIbt+9SJvCmaW 0OQy+MJzszDIdwnEBN20PkzgZ2LHyztKETLhfS8iS5lza4+P8TAWcB2wmo5hb5u2vYgd 17DzDGhmtjMUhlq8Csx1smkENvbKDqK9GZk3JSGGmOyp0i4+OhNG1TqU4tSz5UwpLkEl GiAyoFKA9szCUWP57rzvgO9blSkOCzwRFDQh2M9YaozOrDfhbKEd441V0AJzLu8HX5Xi smqn5SxW2lvskVJqw4oeEJWn1UXGGK/V5/vgZ+9G7hJ5e6/t4k2rErs/Y3tDqDLW6zq5 +n+w==
- List-id: SuperCollider users mailing list <sc-users.create.ucsb.edu>
- Reply-to: sc-users@xxxxxxxxxxxxxxxx
- Sender: owner-sc-users@xxxxxxxxxxxxxxxx
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/