[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-users] Demand bug?
- To: sc-users@xxxxxxxxxxxxxxxx
- Subject: Re: [sc-users] Demand bug?
- From: James Harkins <jamshark70@xxxxxxxxx>
- Date: Wed, 6 May 2009 11:50:26 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=iOl8qhb3kSeXxfusSFZdr85OB/YwDZXQ6hqZUwZRdBE=; b=P6rsUFjiu+UZDWijLrCQwKCbTKgtsdeic+ssuX7XIzNvYLXckj/UXWIb+PuftY+VIY rAbKUse29o9SkKZKuVGzszZ52xeySLted3jNX3D1xl08ybZ59VvgBNZ4d60pMbN4IRjJ 0KzqCj3VUGR+chVYudUAJX0Yhdir29Efco4YU=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:content-type:content-transfer-encoding; b=wxQ6qJJs/o/9osrSoC8HAdV5bHt9MaavtaZCUcxrYhYevuusQ9zJRb82/ruMRn9iOy CRk3VV0huet4qWzigoC4jgDb7wxao9eON7VbVi3uD+SLFtn5cfLao8SgLcxHqfS82XQD c/g17CLVMKeK1pF1JBBAO7Ggd5cJ7b+OPO63E=
- In-reply-to: <2EB271F7-C99B-4845-BE9A-3CA6C8DF089A@xxxxxxxxxx>
- List-id: SuperCollider users mailing list <sc-users.create.ucsb.edu>
- References: <2EB271F7-C99B-4845-BE9A-3CA6C8DF089A@xxxxxxxxxx>
- Reply-to: sc-users@xxxxxxxxxxxxxxxx
- Sender: owner-sc-users@xxxxxxxxxxxxxxxx
Interesting. 'round' is a binary operator while 'neg' and 'squared'
are unary ops.
I don't know why binary vs unary would make a difference. You're
right, it shouldn't.
hjh
On Wed, May 6, 2009 at 6:48 AM, Newton Armstrong
<newton.armstrong.1@xxxxxxxxxx> wrote:
> There seems to be an inconsistency in the behaviour of Demand:
>
> // fine
> (
> {
> var seq = { Dseq([1, 2, 3], inf) };
> t = Impulse.kr(1);
> Demand.kr(t, 0, [seq, seq.round]).poll(t)
> }.play;
> )
>
> // not fine -- neg is called on the next element in the stream
> (
> {
> var seq = { Dseq([1, 2, 3], inf) };
> t = Impulse.kr(1);
> Demand.kr(t, 0, [seq, seq.neg]).poll(t);
> }.play;
> )
--
James Harkins /// dewdrop world
jamshark70@xxxxxxxxxxxxxxxxx
http://www.dewdrop-world.net
"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal." -- Whitman
_______________________________________________
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/