Forum

Instrinsic slice number

Is there a simple way to have with a slice value, the slice number.

For example, using a Select with two ioBoxes, one that holds values and the other that hold a progression (0,1,2,3…) it is possible, but I want to know if it is a simple way.

Thanks

???.. no text …

Sorry, I will try to explain in other words.

Picture this spread:

1,2,3,5,8,13,21

each value (slice) has his position on the spread.

val - slice#
1-----0
2-----1
3-----2
5-----3
8-----4
13----5
21----6

If I want to extract some values with his slice position I can use a second ioBox to represent the slice number,then use a Select node to get the same slices from both spreads, and put them on two ioBox(es) that will represent Value and Slice “Old” position.

For example using Select node with a condition just over the Values ioBox, like >8, I will get:

val - slice#
13-----5
21-----6

Now my question is: Is there a node that automatically gives me (besides the slice value) the value’s position on the spread (aka slice#)?

Thanks

didn’t you notice the ‘Former Slice’-outlet of the Select (Value) ?

zzelekt.v4p (4.8 kB)

didn’t you notice the ‘Former Slice’-outlet of the Select (Value) ?

No until you told me, thanks :)