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

Re: [sc-users] Demand bug?



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/