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

[sc-users] Demand bug?



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;
)

// not fine -- squared 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.squared]).poll(t);
}.play;
)

_______________________________________________
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/