Sure,
PD doesn't give you a way to connect an outlet to an inlet of the same object, which is what's needed here to populate the first list with the numbers from 1-180 (it's one way to do it anyway). In this case, I'm using a counter to count up to 180, and on each bang from the [until] the new number goes into the [list prepend], which adds the number to the end of the last list -- but we need to store the last list as the thing to prepend, so it has to go back into the right inlet, and the only good way of doing that is [t a] (you could just use a [list] object, too, but [t a] seems more reliable and what people use most).
There are probably plenty of other ways of doing the same thing.
Matt
On Sun, Mar 27, 2011 at 6:12 PM, J bz jbeezez@gmail.com wrote:
Hey Matt,
Whoo-Hoo. That's splendid.
Can I ask you what the [t a] is doing that's looping with the [list prepend]? Just for my own understanding.
Bloody marvellous though.
All good wishes,
Julian
On 27 March 2011 16:19, Matt Barber brbrofsvl@gmail.com wrote:
Here's another approach using only list abs stuff (sorry for the messy -- I threw it together quickly). Could use as an abstraction with two inlets -- one on the right which receives a bang to initialize and one on the left that takes incoming numbers from the sensor, and one outlet (the outgoing numbers).
Matt