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

Re: [sc-users] Re: Plea for help in unpacking Nathan's genius feedback sctweets



Thanks Bion.

A


On 30 Dec 2013, at 09:15, Bion <bionjohnson@xxxxxxxxx> wrote:

++ is used for concatenation. In this case it is concatenating the result of the function 'a' with the output of Splay.ar. Looking at it expended and with some debug posts will help clear that up:

play{
a = {|i|
InFeedback.ar(i + [-1, 1] % 6 + 2).sum.abs.lag(1e-3) < 1e-4, 8e-3
),
{ 2**10.rand * 20 } ! 4, 1e-3, 0s).mean.sin
} ! 6,
0.5).debug("first") ++ a
};
a.debug("the variable 'a'");

Those debug statements will give us:

first: [ a BinaryOpUGen, a BinaryOpUGen ]
the variable 'a': [ an UnaryOpUGen, an UnaryOpUGen, an UnaryOpUGen, an UnaryOpUGen, an UnaryOpUGen, an UnaryOpUGen ]

Cheers,
Bion



On Mon, Dec 30, 2013 at 1:05 AM, ecila <alice@xxxxxxxxx> wrote:
Aha, now I see that the first arg of feedback is setting up input-output
relations ...
InFeedback.ar(i+[-1,1]%6+2)
But info on role of ++ still gratefully received.

Cheers,
A



--
View this message in context: http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/Plea-for-help-in-unpacking-Nathan-s-genius-feedback-sctweets-tp7606429p7606430.html
Sent from the SuperCollider Users New (Use this!!!!) mailing list archive at Nabble.com.

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


... alice eldridge ...............
... alice@xxxxxxxxx ...........
... skype: eecilaa .............
... +44(0)1273 608158 ...
... +44(0)7545 149159 ...